WIPIVERSE All articles

Stemming

Stemming is a text-processing technique in natural language processing (NLP) and information retrieval that reduces inflected (or sometimes derived) words to their word stem, base, or root form. The stem need not be identical to the morphological root of the word; it is generally sufficient that related words map to the same stem, even if that stem is not itself a valid word in the language. For example, a stemmer might reduce "argue," "argued," "argues," and "arguing" to the stem "argu." A computer program or subroutine that performs stemming is called a stemming program, stemming algorithm, or stemmer.

History

The first published stemmer was written by Julie Beth Lovins in 1968. Her paper, "Development of a Stemming Algorithm," was influential and referenced three earlier attempts: one by Professor John W. Tukey of Princeton University, one developed at Harvard University by Michael Lesk under Professor Gerard Salton, and a third by James L. Dolby. A later, highly influential stemmer was written by Martin Porter and published in the July 1980 issue of the journal Program. The Porter stemmer became the de facto standard for English stemming and earned Porter the Tony Kent Strix award in 2000. Porter later released an official implementation and developed Snowball, a framework for writing stemming algorithms, along with improved English and other-language stemmers. The Paice-Husk Stemmer, developed by Chris D. Paice at Lancaster University in the late 1980s, is an iterative stemmer using an externally stored set of rules.

Types of Algorithms

Several categories of stemming algorithms exist, differing in performance, accuracy, and how they handle morphological challenges:

  • Lookup (table-based) algorithms match inflected forms against a pre-compiled table of root-to-inflection relations. They are simple and fast but require explicit listing of all inflected forms and do not handle novel words.

  • Suffix-stripping algorithms apply a list of rules that remove or replace word endings (e.g., remove "ed," "ing," or "ly"). These are simpler to maintain than brute-force approaches but can perform poorly on irregular forms such as "ran" versus "run." Some variants use suffix substitution, replacing one ending with another (e.g., "ies" to "y"), or apply rules cyclically.

  • Lemmatisation algorithms determine the part of speech of a word and apply different normalization rules accordingly, producing linguistically valid base forms (lemmas) rather than arbitrary stems.

  • Stochastic algorithms use probabilistic models trained on root-to-inflected-form relations to identify the most likely stem.

  • n-gram analysis uses the n-gram context of a word to select the correct stem.

  • Hybrid approaches combine two or more methods, such as using a small lookup table for frequent exceptions (e.g., "ran" to "run") while applying suffix stripping to regular cases.

  • Affix stemmers remove both prefixes and suffixes.

  • Matching algorithms use a stem database and match candidate words against stored stems under constraints such as relative length.

Error Metrics

Stemming algorithms are evaluated by two error types: overstemming (two unrelated words incorrectly mapped to the same stem, a false positive) and understemming (two related words that should share a stem but do not, a false negative). Algorithms attempt to minimize both, although reducing one type can increase the other. For example, the Porter stemmer stems "universal," "university," and "universe" all to "univers," which is an instance of overstemming.

Language Challenges

While early work focused on English, stemmers have been developed for many languages. Languages with complex morphology present greater difficulty. Hebrew and Arabic are considered particularly challenging due to nonconcatenative morphology, writing systems without vowels, and prefix-stripping requirements. Italian, Russian, and other languages with extensive verb inflections or noun declensions also require more complex stemmers than English.

Applications

Stemming is used as an approximate method for grouping words with similar basic meanings. It is applied in web search engines (Google adopted word stemming in 2003), text mining, information retrieval systems, and domain analysis. Stemming effectiveness for English query systems has been found to be limited, leading some researchers to consider alternative approaches such as n-gram searching, but stemmers may provide greater benefits in other languages.

Browse

More topics to explore

    Browse all articles