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.
|morphoFeature|Description|
|-----|------|
|complete |Returns all results for all features available for the language of the input text.|
|lemmas|Returns the lemmas or dictionary forms.|
|parts-of-speech|Returns the parts of speech where each language has its own set of POS tags.|
|compound-components|Decomposes 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-readings|For 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
morphoFeature
Type of data to return
Allowed values:
Headers
X-RosetteAPI-Key
Request
This endpoint expects an object.
content
options
Response
OK
compounds
list of compounds
hanReadings
list of Han Readings
lemmas
list of lemmas
posTags
list of part of speech tags