# Parts Of Speech API

> Parts Of Speech extracts words from text based on grammatical categories like nouns, verbs, and adjectives. Pass any text passage and a category to receive an array of matching words.

**Endpoint:** `POST https://api.apiverve.com/v1/partsofspeech`  
**Category:** Text Processing  
**Cost:** 2 credits per call  
**Canonical page:** https://apiverve.com/marketplace/partsofspeech

## Overview

A parts of speech API and checker that pulls nouns, verbs, adjectives or adverbs out of any passage. Parts Of Speech works by analyzing the text provided and extracting the words based on the part of speech specified. It uses advanced algorithms to extract the words and returns the extracted words.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl -X POST "https://api.apiverve.com/v1/partsofspeech" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"My friend from college hails from a small countryside village located at the heart of the state. During the last summer vacation, I had an opportunity to visit my friend in his village. I packed up my belongings and boarded the bus bound for the village","partofspeech":"verbs"}'
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `text` | string | Yes | The text to extract words from |
| `partofspeech` | string | No | The part of speech to extract. Defaults to nouns. default nouns. One of: nouns, verbs, adjectives, adverbs, pronouns, prepositions, conjunctions, superlatives |

## Response fields

- `partofspeech` — string · Part of speech that was extracted
- `result` — array · Array of extracted words matching the part of speech
- `count` — number · Number of words extracted · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "partofspeech": "verbs",
    "result": [
      "located",
      "had",
      "visit",
      "packed up",
      "boarded",
      "bound"
    ],
    "count": 6
  }
}
```

## Use cases

- **Adverb Density Checking** — Flag repetitive adverbs in draft articles by pulling extracted modifier lists into editorial review queues.
- **Vocabulary Quiz Generation** — Language learning apps isolate nouns and verbs from sample reading passages to generate fill-in-the-blank practice exercises.
- **Catalog Search Indexing** — To index product descriptions accurately, catalog pipelines extract nouns from customer submissions to build targeted search filters.
- **Urgent Feedback Detection** — When processing user feedback, customer support systems collect extracted superlatives to spot urgent complaints or glowing praise.

## SDKs

- **npm** — `npm install @apiverve/partsofspeech` (https://www.npmjs.com/package/@apiverve/partsofspeech)
- **PyPI** — `pip install apiverve-partsofspeech` (https://pypi.org/project/apiverve-partsofspeech/)
- **NuGet** — `dotnet add package APIVerve.API.PartsOfSpeech` (https://www.nuget.org/packages/APIVerve.API.PartsOfSpeech)
- **Source** — https://github.com/apiverve/partsofspeech-api

## More

- Full reference: https://docs.apiverve.com/ref/partsofspeech
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
