WordStem

WordStem["word"]

gives a stemmed form of word, removing plurals, inflections, etc.

Details

  • WordStem may not always yield full words.
  • WordStem uses the Porter stemming algorithm.
  • WordStem preserves punctuation of words.

Examples

open allclose all

Basic Examples  (2)

Find the stemmed form of a word:

Stem a list of words:

Word stemming preserves case:

Scope  (1)

WordStem automatically threads over lists:

Applications  (2)

Find the most commonly occurring stem words in a piece of text:

Construct the stemmed forms of random English words and find which of them are recognized dictionary words:

Remove the words that are identical to their stemmed forms:

Emphasize in blue the stemmed forms that are recognized English dictionary words:

Visualize each pair in a text grid:

Possible Issues  (1)

WordStem does not always return a proper English word:

Wolfram Research (2015), WordStem, Wolfram Language function, https://reference.wolfram.com/language/ref/WordStem.html.

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_2024_wordstem, author="Wolfram Research", title="{WordStem}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/WordStem.html}", note=[Accessed: 05-October-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_wordstem, organization={Wolfram Research}, title={WordStem}, year={2015}, url={https://reference.wolfram.com/language/ref/WordStem.html}, note=[Accessed: 05-October-2024 ]}