Analyze morphology

The morphological analysis endpoint provides language-specific tools for returning part of speech, lemmas (dictionary form), compound components, and Han readings for each token in the input.

Append a morphoFeature to the morphology/endpoint to specify which feature you want returned, or complete to return all features.

morphoFeatureDescription
completeReturns all results for all features available for the language of the input text.
lemmasReturns the lemmas or dictionary forms.
parts-of-speechReturns the parts of speech where each language has its own set of POS tags.
compound-componentsDecomposes Chinese, Danish, Dutch, German, Hungarian, Japanese, Korean, Norwegian, and Swedish compounds, returning the lemmas of each of the components. This can improve recall for search engines.
han-readingsFor Chinese tokens in Han script, pinyin transcriptions are returned as the Han reading. For Japanese tokens in Han script (kanji), hiragana transcriptions are returned as the Han reading.

Path parameters

morphoFeatureenumRequired
Type of data to return
Allowed values:

Headers

X-RosetteAPI-KeystringRequired

Request

This endpoint expects an object.
contentstringRequired
optionsobjectOptional

Response

OK
compoundslist of lists of strings or null
list of compounds
hanReadingslist of lists of strings or null
list of Han Readings
lemmaslist of strings or null
list of lemmas
posTagslist of strings or null
list of part of speech tags