AI GLOSSARY · AI CONCEPTS

Lemmatization

Markdown version · Wikidata Q2554325

Definition

Lemmatization is a text preprocessing step that reduces each inflected word to its dictionary base form, called a lemma, so that forms such as 'is' and 'makes' map to 'be' and 'make'. It requires part-of-speech information.

Also called: lemmatisation, lemmatizer, lemmatization vs stemming, lemma.

In plain language

Lemmatization turns different forms of a word into one standard entry, the way a dictionary lists 'run' once even though text says 'runs', 'ran' and 'running'. Software that counts or searches words can then treat them as the same word. It is slower and needs more language knowledge than simply chopping off word endings, which is called stemming. The limit is that it depends on the tool's dictionary and on guessing a word's role in the sentence; a word it does not know may come back unchanged.

Technical definition

IBM describes lemmatization as reducing inflected words to a dictionary base form, with the output being an existing normalized form. It requires part-of-speech tagging and morphological analysis, and IBM says it requires more robust morphological analysis than stemming, which IBM describes as a heuristic, rule-based removal of characters. NLTK's WordNetLemmatizer looks words up in WordNet; its pos parameter defaults to noun, and words not in WordNet are returned unchanged. scikit-learn does not include lemmatizers but lets you supply one through a custom tokenizer.

Worked examples in this catalogue

Catalogue examples point at a skill, guide or coding tool listed on this site, with what to run and what you see. An example marked illustrative describes the item from its own documentation; it was not executed for this page. Platform Scores are our assessment under a published method, not a safety guarantee.

  1. Skill by Skill Almanac · Illustrative, not executed

    keyword-density-count 41/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    Counts how often each keyword or phrase appears in plain page text and reports case-insensitive, whole-word counts.
    Why it exercises the concept
    A contrast case. Whole-word counting treats 'walk' and 'walked' as different words.
  2. Skill by Skill Almanac · Illustrative, not executed

    stock-phrase-scanner 42/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    Scans a plain-text draft for stock filler phrases, hedges and repeated sentence openers, reporting each hit with its line numbers.
    Why it exercises the concept
    Another contrast case. It matches phrases as they are written.
  3. Skill by Skill Almanac · Illustrative, not executed

    text-redline-diff 42/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    Redlines two plain-text or Markdown versions of a document by paragraph, then by word, marking changed words.
    Why it exercises the concept
    It compares exact words, so a change from 'walk' to 'walked' shows as a change. That is the behaviour you want for editing and the opposite of what lemmatization is for.

How it shows up when you use agents

Lemmatization is a step in classic text pipelines, not something a coding agent does by default. It shows up when an agent writes or runs a text-analysis script: counting keywords, building a search index, or preparing text for a classifier. A common line in such scripts is a lemmatizer from NLTK. scikit-learn's guide says lemmatization is not in its codebase, but shows how to plug one into a vectorizer by customizing the tokenizer.

What breaks when this is misunderstood: people expect it to be exact. NLTK's lemmatizer assumes a noun unless told the part of speech, so a verb form can come back unchanged. The NLTK page says unknown words are returned as they are. The scikit-learn page also notes its example does not filter punctuation. Run the lemmatizer on twenty of your own words and read the output before applying it to a corpus.

Modern language models work on tokens produced by a tokenizer, and this page's sources do not say they need lemmatization. Check the pipeline you are using: a keyword counter may benefit from lemmatizing, while a model-based step may not need it. See also natural language processing.

Common confusions

  • Lemmatization versus stemming. IBM describes stemming as heuristic, rule-based removal of characters and lemmatization as returning an existing dictionary form. Stemming is simpler; lemmatization needs part-of-speech information and can be slower.
  • Lemma versus token. A lemma is a dictionary base form. A token is whatever unit a tokenizer produces, which may be a word, a word piece or a character.
  • Lemmatization versus spelling correction. It maps word forms to a base form.
  • Myth: a lemmatizer needs no dictionary. NLTK's WordNetLemmatizer looks words up in WordNet and returns unknown words unchanged, so its output depends on that resource.

More in AI concepts

Next steps

  1. keyword-density-count A skill that exercises it.
  2. Natural language processing (NLP) Related term.
  3. Tokenizer Related term.
  4. All glossary terms A to Z and by family.

Sources

Definitions are written by Skill Almanac from these sources and were checked against them on 2026-11-24. Wikipedia is never the only source.

Review record

Last verified

Drafted by claude-sonnet-5-5; sources and example targets checked by claude-haiku-5-5 source check; claude-sonnet-5-5 editor pass on 2026-11-24. Last verified .

This entry is still in review, so it is not listed in search engines yet.

Change log (2)
  • : First version.
  • : Verifier pass: removed a neighbouring-concept alias, aligned wording with IBM, trimmed examples and cut an unsourced claim.