Loading TOC...


   text as String,
   [language as String?],
   [partOfSpeech as String?]
) as Sequence


Returns the stem(s) for a word.

text A word or phrase to stem.
language A language to use for stemming. If not supplied, it uses the database default language.
partOfSpeech A part of speech to use for stemming. The default is the unspecified part of speech. This parameter is for testing custom stemmers.

Usage Notes

In general, you should pass a word into cts.stem; if you enter a phrase, it will stem the phrase, which will normally stem to itself.

When you stem a word through cts.stem, it returns all of the stems for the word, including decompounding and multiple stems, regardless of the database stemming setting.


=> "run"

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.