- Introduced by
- M.F. Porter (Porter stemmer)
- Year
- 1980
- Type
- Text-normalisation preprocessing task
What does it do?
Morphological analysis identifies the stem of a word and its affixes, so that different surface forms of the same word can be treated as one.
Two broad approaches are used: rule-based stemming, which removes suffixes by rule (Porter's 1980 algorithm is a well-known example), and dictionary-based lemmatization, which returns the dictionary form of a word. The method is used mainly as a text-normalisation step. Its value depends on the task and the language: normalisation matters most when the target language has rich morphology, such as Turkish, where one root can produce many surface forms.
The intuition behind the method
A reader knows that running, runs, and ran all point back to the verb run, but to a machine these are three unrelated strings. Morphological analysis strips the grammatical endings off a word to recover the underlying form, so the many ways a word can appear collapse into a single token. Stemming chops off suffixes by rule; lemmatization looks the word up to return its true dictionary form. Either way, the goal is to stop counting one concept as several different words.
History
Rule-based suffix stripping for English is associated with Porter (1980), whose algorithm removes suffixes in a number of steps, with each removal conditioned on the form of the remaining stem, usually a measure of its syllable length. Implementations of the algorithm are available in text-analysis software; for example, the bibliometrix R package applies the Porter stemming algorithm to extracted terms when stemming is enabled.
When to use it
Use morphological analysis as a normalisation step when your text is already tokenised and you have a morphology resource (rules or a model) for its language. It is most useful when merging inflected forms of a word does not harm your question, for example in indexing, retrieval, or word-count-based analysis. It is especially relevant for languages with rich morphology, such as Turkish, where one root produces many surface forms. Do not use it when the inflection itself is what you study, or when the output must be a real dictionary word; in those cases a lemmatizer, or no normalisation at all, is the safer choice. Porter-style English suffix stripping should not be applied to text in other languages.
Limitations and considerations
- Porter's algorithm was designed for English suffixes, so its rules do not transfer to other languages without a morphology resource built for them.
- Porter's suffix removal depends on the form of the remaining stem, usually a measure of its syllable length, so very short or unusual stems can be treated unexpectedly.
- Lemmatization depends on a lexicon or trained model for the language, and words missing from that resource are left unresolved.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Porter's algorithm was described in its original paper as a short, fast program, which makes rule-based stemming practical for large collections.
- Collapsing inflected variants into one token reduces vocabulary size. Stemming usually improves recall in document retrieval and usually enables higher-quality results in mining applications.
- Lemmatization returns actual dictionary forms, which stemming does not guarantee, so its output stays interpretable as words.
Applications
- Normalising text before indexing, search, or information retrieval.
- Reducing vocabulary size ahead of text classification or topic modelling.
- Preprocessing morphologically rich languages, such as Turkish, where surface forms multiply.
- Preparing English text for suffix-based term matching, the setting for which the Porter algorithm was designed.
- Stemming as an option in bibliometric term extraction, where the bibliometrix R package applies the Porter algorithm to extracted terms when enabled.
How it works
How it works
The text is first segmented into individual word tokens. Morphological analysis operates on words, so the corpus is normally tokenised before any stems or lemmas are extracted.
Each token is examined against the morphology of the target language to separate the stem from its affixes (prefixes, suffixes, inflections). This step requires that morphological rules or a model exist for the language at hand, which matters most in languages with rich morphology, such as Turkish.
The word is reduced to a canonical form. A stemming approach, such as Porter's algorithm, strips suffixes by rule to produce a stem that need not be a real word. A lemmatization approach returns the dictionary lemma, optionally guided by the word's part of speech.
The reduced forms are written back into the corpus so that variant surface forms map to one token. This normalisation shrinks the vocabulary and lets downstream text-mining steps treat inflected variants of a word as the same feature.
Common pitfalls
- Stemming can produce stems that are not real words; do not treat a stem as a dictionary form when a true lemma is needed.
- Applying an English stemmer to text in another language gives meaningless results; the morphology resource must match the corpus language.
- Skipping tokenisation feeds malformed tokens into the analyser and can corrupt the output.
- Over-stemming merges distinct words into one stem and under-stemming leaves variants apart. Check a sample of outputs for both before using them downstream.
- Stemming usually improves recall but can slightly worsen precision, because one stem can merge words with different meanings: hoping and hope share the stem hop, which is also a distinct word. Check both recall and precision on a sample of your data before relying on stemming.
Frequently asked questions
What is the difference between stemming and lemmatization?
Stemming strips suffixes by rule (as in Porter's algorithm) to yield a stem that need not be a real word, and it is fast. Lemmatization looks the word up, often using its part of speech, to return the actual dictionary lemma. It requires a lexicon or model for the language and is typically more resource-intensive.
Why does this matter for languages like Turkish?
Turkish is agglutinative: a single root can take many affixes and generate a large number of surface forms. Morphological analysis collapses those forms back to the root, which is helpful for text normalisation in such languages.
Do I need to tokenise the text first?
Yes. Morphological analysis operates on individual words, so the corpus is normally tokenised first.
What goes wrong if the morphology resource does not match the language?
The output becomes unreliable. The rules or model must be built for the target language; applying, for example, an English stemmer to non-English text produces incorrect stems.
Related methods
Sources
Porter, M.F. (1980). An Algorithm for Suffix Stripping. Program, 14(3), 130-137.
Open DOI referenceSchmid, H. (1994). Probabilistic Part-of-Speech Tagging Using Decision Trees. Proceedings of the International Conference on New Methods in Language Processing (NEMLAP).
Open publication reference2015_Book_DataMining, Chapter 13 'Mining Text Data', text-preprocessing section (page not recorded in the library item)
bibliometrix, termExtraction documentation (stemming argument), p. 85