Stem Text API

The Text Stemming API is used to get the root form of a word. It is useful for searching and natural language processing.

GET
https://api.apileague.com/stem-text
Example Request and Response
GET
https://api.apileague.com/{{ examples.getStemText }}
{
    "original": "The laziest dogs are jumping over the quicker brown foxes",
    "stemmed": "The laziest dog are jump over the quicker brown fox"
}
cURL
Java
Javascript
Python
Go
C#
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}

Frequently Asked Questions

What is stemming?

Stemming is the process of reducing a word to its base or root form. For example, "fishing", "fished", and "fisher" all stem to "fish".

Does it handle irregular verbs?

The API uses algorithmic stemming which handles many common cases, but it may not always perfectly handle all irregular verbs compared to lemmatization.

Is it useful for search engines?

Yes, stemming is commonly used in search engines to match queries with documents containing different variations of the same word.

How is the Stem Text API different from the Word Singularization/Pluralization API?

The Stem Text API reduces words to their root form (e.g., "running" to "run"), while the Word Singularization/Pluralization API specifically converts words between singular and plural forms.

Questions? Need Help? Ask Away