NLP (Concepts & Pipeline)
Lemmatisation and Stemming
In shortTwo ways to reduce words to a base form so variants count as one: stemming chops off endings, lemmatisation returns the dictionary form.
Lemmatisation and stemming are text preprocessing steps that reduce different forms of a word to a shared base, so “running”, “runs” and “run” can be counted as the same word. Stemming does this by cutting off word endings with rules. Lemmatisation uses vocabulary and grammar to return the proper dictionary form, called the lemma.
How it works
Stemming applies suffix-stripping rules. The classic Porter stemmer (1980) and its successor, Snowball, turn “studies” into “studi” and “marketing” into “market”. Stems need not be real words, and the rules know nothing about meaning, so irregular forms such as “ran” are left alone.
Lemmatisation looks words up in a lexicon and usually considers part of speech, which comes from syntax analysis. It maps “ran” to “run” and “studies” to “study”, and can keep “meeting” as a noun or reduce it to “meet” as a verb. It is slower but more accurate. spaCy and NLTK offer both approaches, and the Google Cloud Natural Language API returns a lemma for every token in its syntax analysis.
Both usually follow tokenisation and sit alongside stop word removal in a preprocessing pipeline.
How it’s used in SEO and marketing
- Grouping keyword variants before n-gram analysis, so “audit”, “audits” and “auditing” add up.
- Preparing text for TF-IDF, LDA and other bag-of-words models.
- Cleaner keyword extraction from page content or reviews.
- Understanding search engines: query expansion and synthetic query generation include lexical steps such as stemming, lemmatisation and spelling correction.
Example
In MLforSEO’s syntax analysis template, each token comes back with its lemma, the canonical form useful for text normalisation and keyword extraction. Running it over a set of product reviews lets you count “delivered”, “delivering” and “deliveries” together under “deliver” and “delivery” when you summarise what customers mention most.
Limitations and things to watch
- Stemming can merge words with different meanings (“marketing” and “market”) and split ones that belong together.
- Results vary by language. Morphologically rich languages need language-specific tools.
- Modern embedding and transformer models use subword tokenisation and learn from word forms directly, so they usually do not need stemming or lemmatisation, and applying it can remove useful signal.
- Keep the original text alongside the processed version so you can report real phrases.
Learn it on MLforSEO
Where Lemmatisation and Stemming shows up on MLforSEO
Learn it in a course
Read about it on the blog
Sources and further reading
Other terms from NLP (Concepts & Pipeline)
- Content ModerationUsing NLP to flag text that may be harmful or sensitive, such as toxic, insulting or violent content, so it ca…
- Emotion detection/analysisAn NLP task that labels text with specific emotions such as joy, anger, sadness, fear and disgust, going beyon…
- Entity Extraction (NER)Named entity recognition: finding names of people, organisations, places, products and other things in text an…
- Entity Sentiment AnalysisNLP that scores the sentiment expressed towards each entity in a text, so one review can be positive about one…
- Lexical or morphological analysisThe first phase of NLP: splitting text into words and analysing their structure (roots, prefixes, suffixes) so…
- N-gram (Unigram, Bigram, Trigram)A contiguous sequence of n words or characters from a text: unigrams (1), bigrams (2), trigrams (3) and so on,…
- Natural Language Processing (NLP)The field of AI that enables computers to process, analyse and generate human language, from tokenisation and…
- Natural Language Understanding (NLU)The part of NLP focused on working out what text means: its intent, entities, sentiment and relationships, rat…
- Part-of-Speech (POS) TaggingPart-of-speech tagging labels each word in a text with its grammatical role, such as noun, verb or adjective,…


