WordStem["word"]
gives a stemmed form of word, removing plurals, inflections, etc.
WordStem
WordStem["word"]
gives a stemmed form of word, removing plurals, inflections, etc.
Examples
open all close allBasic Examples (2)
Scope (1)
WordStem automatically threads over lists:
WordStem[{"dogs", "cats", "crying", "running"}]Applications (2)
Find the most commonly occurring stem words in a piece of text:
Take[SortBy[Tally[WordStem[ToLowerCase[StringSplit[ResourceData["The Arrow of Gold"], WhitespaceCharacter]]]], Last], -20]Construct the stemmed forms of random English words and find which of them are recognized dictionary words:
Short[words = RandomWord[30]]Short[wordstems = WordStem[words]]Remove the words that are identical to their stemmed forms:
list = DeleteCases[Transpose[{words, wordstems}], {w_, w_}];Emphasize in blue the stemmed forms that are recognized English dictionary words:
list = Replace[list, {w_, sw_ ? DictionaryWordQ} :> {w, Style[sw, Blue]}, {1}]Visualize each pair in a text grid:
TextGrid[Prepend[Partition[Flatten@list, UpTo[4]],
{Style["Word", Bold, Italic], Style["Stemmed Form", Bold, Italic],
Style["Word", Bold, Italic], Style["Stemmed Form", Bold, Italic]}],
Spacings -> {2, 1}, Dividers -> {{1 -> True, 3 -> True, 5 -> True}, {1 -> True, 2 -> True, -1 -> True}}]Possible Issues (1)
WordStem does not always return a proper English word:
WordStem["irritating"]WordStem["apples"]See Also
WordData DictionaryLookup TextWords RemoveDiacritics PrintableASCIIQ
Function Repository: WordPrefix PrefixQ
Related Guides
History
Text
Wolfram Research (2015), WordStem, Wolfram Language function, https://reference.wolfram.com/language/ref/WordStem.html.
CMS
Wolfram Language. 2015. "WordStem." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/WordStem.html.
APA
Wolfram Language. (2015). WordStem. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/WordStem.html
BibTeX
@misc{reference.wolfram_2026_wordstem, author="Wolfram Research", title="{WordStem}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/WordStem.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_wordstem, organization={Wolfram Research}, title={WordStem}, year={2015}, url={https://reference.wolfram.com/language/ref/WordStem.html}, note=[Accessed: 13-June-2026]}