Lemmatization in NLP: What It Changes and When to Use It
What lemmatization does in NLP, how it differs from stemming, what information it removes, and when you should keep the original text instead.
Lemmatization (in Russian, лемматизация) is a text normalization step in natural language processing. It replaces each word form with its dictionary form, called the lemma. This review explains what the step actually changes, how it differs from stemming, and how to judge whether its output is suitable for your workflow.
Short answer: is lemmatization suitable for your use?
Lemmatization suits analysis tasks where different grammatical forms of a word should count as the same item. Examples include keyword counting, topic analysis, search indexing and building features for classical machine learning models. Its main benefit is that it groups word forms without creating the non-words that stemming often produces. The tradeoff is that it removes grammatical information permanently, and its accuracy depends on context and part-of-speech tagging. Keep plain, unlemmatized text for anything a person will read, quote, edit or share, and for tasks where tense, number, case or word form carries meaning.
What lemmatization actually changes
Lemmatization changes the stored text. It does not change how text is displayed. After the text is split into tokens, each token is replaced by a different string, its lemma. This is unlike visual effects such as mirrored or styled lettering, where the underlying words stay the same. Once a token has been lemmatized, the original form is gone unless you saved it separately.
Illustrative example (actual output depends on the tool and its tagger)
Input: The mice were running faster
Tokens: The | mice | were | running | faster
Lemmas: the | mouse | be | run | fast
Input: Кошки бежали по крышам
Lemmas: кошка | бежать | по | крыша
In the English example, plural, past tense, the progressive form and the comparative are all lost. In the Russian example, the lemmas no longer show case, number, tense or gender. Russian is heavily inflected, so one lemma can stand for many surface forms. This is a large part of why lemmatization is common in Russian-language NLP pipelines.
How lemmatization differs from stemming
People often confuse the two terms, but they work differently. Stemming applies rules that strip word endings, and the result does not have to be a real word. Lemmatization uses a vocabulary and morphological analysis, often with part-of-speech information, to return an actual dictionary form.
| Aspect | Stemming | Lemmatization |
| Method | Rule-based suffix removal | Dictionary lookup plus morphological analysis |
| Output | May be a non-word, such as "studi" from "studies" | A dictionary form, such as "study" |
| Irregular forms | Usually missed ("mice" and "mouse" stay separate) | Usually handled ("mice" becomes "mouse") |
| Needs context or part of speech | No | Often yes, for accurate results |
| Relative cost | Lighter | Heavier, because it needs a dictionary and often a tagger |
Where the transformation can go wrong
Ambiguity is the main risk. One surface form can belong to several lemmas, and the correct one depends on context. In English, "saw" can be a form of the verb "see" or the noun "saw". In Russian, "стали" can be a form of the verb "стать" or the noun "сталь". A lemmatizer that ignores context, or that receives the wrong part-of-speech tag, will merge words that should stay separate or pick the wrong lemma.
Defaults also matter. For example, the WordNet lemmatizer in NLTK is documented to treat words as nouns unless you pass a part of speech. With that default, "running" stays "running". When the word is tagged as a verb, it becomes "run". Before relying on any tool, check how it chooses a part of speech.
from nltk.stem import WordNetLemmatizer
lemmatizer = WordNetLemmatizer()
lemmatizer.lemmatize("running") # noun by default -> "running"
lemmatizer.lemmatize("running", pos="v") # verb -> "run"
lemmatizer.lemmatize("better", pos="a") # adjective -> "good"
Other things to check on your own sample: whether the tool handles words missing from its dictionary, such as names, slang and new terms; whether it changes letter case or normalizes characters such as the Russian ё; and how it treats punctuation, numbers and hyphenated words. No accuracy measurements were supplied for this review. Results vary by tool, language and domain, so test on text that resembles your real input.
Will the result stay readable and usable after copying or sharing?
Technically, yes. Lemmatized output is ordinary plain text, so it copies, pastes and searches like any other text. There are no special Unicode characters or display tricks that could break in another application. Linguistically, it is a different matter. Lemmatized text is ungrammatical and loses information, so it is not meant for human readers. A sentence such as "the cat be run" is harder to follow than the original. A screen reader will read it out exactly as written, which makes the problem worse for people using assistive technology.
- Practical rules for usability:
- Store the original tokens next to the lemmas so you can always rebuild or display the source text.
- Show readers the original text. Use lemmas only inside indexing, counting or model features.
- When you report results based on lemmas, such as word frequencies, say that forms were merged.
- Do not use lemmatized text where exact wording matters, such as quotations, legal text or user-facing content.
Search and editing considerations
In search, lemmatizing both the indexed documents and the queries helps a query match other forms of the same word. This usually improves recall, especially in inflected languages like Russian. It can lower precision, because distinctions some users care about, such as singular versus plural, disappear. Lemmatized text is also impractical to edit by hand. Make any corrections in the source text and run the lemmatizer again, rather than editing its output.
When to skip lemmatization
- Situations where plain or minimally processed text is usually the better choice:
- Any output that a person will read, quote or share.
- Tasks where inflection carries signal, such as tense in event analysis or grammatical analysis itself.
- Text generation, translation or summarization, where output must be grammatical.
- Pipelines built on modern transformer models with subword tokenizers. These models are designed to work with raw text, so lemmatizing their input is generally unnecessary and can remove useful context. Verify this for your specific model and task.
Bottom line
Lemmatization is a lossy but useful transformation for analysis. It keeps the core meaning of each word and removes its grammatical form. Use it when grouping word forms helps your task, and always keep the original text for display, sharing and anything that depends on exact wording. Because no benchmark data or tool-specific test results were available for this review, check accuracy and edge cases on a representative sample of your own text before committing to a tool.