# Text Lemmatizer API

> Text Lemmatizer reduces inflected words in submitted text down to their dictionary base forms. It confirms when valid lemmas exist, while paid plans return each lemma with its occurrence count.

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

## Overview

A text lemmatizer API that reduces words to their dictionary base form. Lemmatizer looks up each word in the text and returns its dictionary base form: plurals become singular (geese to goose), verbs become their base form (went to go, running to run) and comparatives their root (better to good). Common short words such as "the" and "of" are skipped.

Lemmatization is a standard text normalization step in NLP work. Grouping "run", "runs" and "running" under one lemma gives cleaner keyword counts, better search matching and tidier features for classifiers and topic models than raw word counts, and unlike crude suffix stemming it keeps real words, so "fences" becomes "fence" rather than "fenc".

The response counts how many distinct lemmas were found. On the Free plan you receive only that count. Paid plans also receive the lemmas themselves, each mapped to how many times it occurs in the text, which is what you need to build a word-frequency table or index documents by root form.

## 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/lemmatizer" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"The cats ran from door to door"}'
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `text` | string | Yes | The text to lemmatize |

## Response fields

- `found` — number · The number of lemmas found in the input text
- `lemmas` — object · Each dictionary base form found in the text, mapped to how many times it occurs: "dogs" and "dog" both count toward dog, "went" toward go · (premium)
  - `lemmas.cat` — number · (premium)
  - `lemmas.ran` — number · (premium)
  - `lemmas.door` — number · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "found": 3,
    "lemmas": {
      "cat": 1,
      "ran": 1,
      "door": 2
    }
  }
}
```

## Use cases

- **Search Query Normalization** — Search engines convert user queries into root words to match plural or conjugated variations against indexed product titles.
- **Customer Feedback Clustering** — Group incoming support tickets by topic after reducing verbs and nouns to base forms for cleaner text classification.
- **Vocabulary Learning Systems** — Language learning platforms detect inflected verb forms across reading exercises and map them back to headwords in student flashcards.
- **SEO Content Auditing** — Before scanning articles for keyword density, content marketing platforms strip grammatical suffixes to measure true term frequencies across drafts.

## SDKs

- **npm** — `npm install @apiverve/lemmatizer` (https://www.npmjs.com/package/@apiverve/lemmatizer)
- **NuGet** — `dotnet add package APIVerve.API.TextLemmatizer` (https://www.nuget.org/packages/APIVerve.API.TextLemmatizer)
- **Source** — https://github.com/apiverve/lemmatizer-api

## More

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