Natural Language Processing · TEE · papers

Q5b · Stemming and lemmatization tools

2025-02-21 · re-exam · recovered AI paper

Previous examination · complete worked answers

Question. Differentiate stemming and lemmatization, naming two approaches/tools for each. [4 marks]

Answer

Stemming applies string-based rules, often stripping suffixes, to reduce related forms to a stem. The result need not be a valid dictionary word. Lemmatization uses vocabulary and morphological analysis, often with POS information, to return a dictionary lemma.

CriterionStemmingLemmatization
BasisSurface form/suffix rulesLexicon and morphological/POS analysis
OutputMay be nonword, e.g. studiDictionary form, e.g. study
Context/POSUsually little or noneOften important
Irregular formsMay miss went→goCan map went→go with verb analysis
CostGenerally simplerUsually more linguistic processing

Porter applies a sequence of suffix-removal rules subject to conditions; Snowball provides related language-specific stemming algorithms; Lancaster is often more aggressive; regex stemming uses explicit patterns; Lovins is another established stemming approach. Exact output depends on the algorithm and implementation.

Three worked reductions

  1. studies, studying: an English stemmer may yield studi/study depending on the rule sequence; verb lemmatization aims at study. State the exact algorithm if exact outputs are asked.
  2. better: adjective-aware lemmatization can map it to good; naïve suffix removal cannot infer that irregular relation.
  3. saw: as a past-tense verb it can become see; as a cutting-tool noun it remains saw. POS and context matter.

Over-stemming merges forms that should remain distinct; under-stemming fails to merge related forms. Normalization can increase recall in search while losing useful distinctions, so it is a task-dependent choice.

Stem = rules se cut; lemma = dictionary form, meaning/POS ka dhyan.

Examples of stemmers: Porter and Lancaster (Snowball is another). Examples of lemmatization tools: WordNet lemmatizer with POS information and spaCy’s language-specific lemmatizer. Outputs depend on language and supplied POS; better→good requires lexical knowledge, unlike simple suffix cutting.