Natural language processing
Morphology and Lexical Structure
Use stems, affixes, lemmas, inflection, derivation, compounds, and morphological features without assuming every language behaves like English.
By the end you can
- Distinguish inflection, derivation, compounding, stemming, and lemmatization
- Explain how morphological structure varies across languages and domains
- Choose lexical normalization that preserves task-relevant distinctions
- Evaluate morphology-aware features and analyses with downstream evidence
Example
One dictionary entry can produce many surface forms
A search or extraction system encounters related strings that share meaning imperfectly.
One of those affixes is not merely a linguist's category. It is an administered international standard, and it has been rewritten twice under load. The ending -mab had been used since the early 1990s to name over five hundred monoclonal antibodies. In May 2017 the WHO cut part of it away: the species infix — -zu-, -xi-, -u-, -o- and the rest — was discontinued because it was being used as a marketing tool. In November 2021 the WHO dropped the stem -mab as well, splitting it into four suffixes: -tug for unmodified immunoglobulins, -bart for engineered or artificial ones, -mig for bi- and multi-specific ones, -ment for fragments. The AMA's USAN Council adopted the new scheme effective December 2021 and said why: “Recognizing the need for continued revisions because of crowding in the -mab stem class (over 800 monoclonal antibody names have now been selected), the USAN Council and INN Experts have revised the nomenclature scheme for monoclonal antibodies.”
Names already published are not changed retroactively, so both schemes now coexist in the literature. That is the practical lesson for anyone who ships a suffix list. An affix inventory frozen before December 2021 does not merely miss the new drugs. It misclassifies every one of them, while continuing to work on the eight hundred named before. A morphological rule is dated evidence, not a fact about the language.
- Inflection: “connect,” “connects,” “connected,” and “connecting” differ in tense or agreement.
- Derivation: “predict,” “prediction,” and “predictive” belong to related but different lexical categories.
- Compounding: German and technical English can create long terms by joining several lexical units.
- Clitics: pronouns or articles can attach to neighboring words while retaining grammatical roles.
- Domain morphology: drug names are built from governed stems — an antibody ending in -mab was named under the scheme WHO used from the early 1990s, one ending in -tug, -bart, -mig or -ment under the scheme adopted in December 2021.
Comparison
Three operations that are often conflated
Their outputs may look similar. Their guarantees differ.
Stemming applies rules that strip or replace surface endings. It is a fast heuristic, its rules are language-specific, it may produce nonwords, and it is good enough for rough retrieval. Lemmatization maps an inflected form to a dictionary lemma using linguistic analysis. It needs part-of-speech context, it returns real lexical base forms, and it can be ambiguous. Morphological analysis describes a lemma plus grammatical or derivational features — tense, number, case, gender, person. It can return several competing analyses for one string, and it is rich but resource-intensive.
The difference is not a matter of degree, and the rest of this lesson measures it. The stemmer collapses seven distinct English words into a four-letter string that is not a word at all. Morphological analysis is not an ideal either: it is a published standard, with a fixed tag inventory and a versioned release history. Which one a pipeline needs is a question about the downstream task. It has been answered experimentally more than once.
Stemming
Apply rules that strip or replace surface endings.
- Fast heuristic
- May produce nonwords
- Language-specific rules
- Useful for rough retrieval
Lemmatization
Map an inflected form to a dictionary lemma using linguistic analysis.
- Needs part-of-speech context
- Produces lexical base forms
- Can be ambiguous
- Useful for analysis and search
Morphological analysis
Describe lemma plus grammatical or derivational features.
- Preserves tense, number, case, gender, or person
- Can return several analyses
- Rich but resource-intensive
- Useful for structured NLP
Visual
Layers inside a lexical form
Not every language expresses these layers with separate, easily visible pieces. The surface wordform is the exact string observed in context. Beneath it sits segmentation or construction: roots, stems, affixes, clitics, reduplication, or compounds. Then the lemma and lexical category. Then the morphosyntactic features — number, case, tense, aspect, mood, person, gender, or definiteness. Last, the contextual interpretation that surrounding syntax and meaning select.
Three of those layers are not a teaching device. They are a standard with version numbers. Universal Dependencies fixes the morphological layer at exactly three levels: a lemma, a part-of-speech tag drawn from a fixed list of 17 universal tags, and a set of universal morphological features. Release v2.5, of 15 November 2019, contains 157 treebanks representing 90 languages across 20 language families. The sizes are not comparable. Skolt Sámi has 36 sentences and 321 words. German has more than 200,000 sentences and nearly 4 million words. The people who built the collection state its limit themselves: “The selection is very heavily biased towards Indo-European languages (48 out of 90), and towards a few branches of this family”. A layer diagram that looks universal is, in the data you can actually download, mostly Indo-European.
The layers have been catalogued a second way. UniMorph publishes “broad-coverage instantiated normalized morphological inflection tables for hundreds of diverse world languages” under “a language-independent feature schema for rich morphological annotation”. Version 4.0, in 2022, amended that schema “to use a hierarchical structure that is needed for morphological phenomena like multiple-argument agreement and case stacking”, and “augmented the database with morpheme segmentation for 16 languages”. A feature schema that has to grow a hierarchy in order to record agreement is telling you something about the layer above the wordform. So is the number 16. That is how much of the second layer is annotated anywhere, by the project whose whole business is annotating it.
- 01
Surface wordform
The exact string observed in context.
- 02
Segmentation or construction
Roots, stems, affixes, clitics, reduplication, or compounds.
- 03
Lemma and lexical category
A conventional base entry and part of speech.
- 04
Morphosyntactic features
Number, case, tense, aspect, mood, person, gender, or definiteness.
- 05
Contextual interpretation
The analysis selected by surrounding syntax and meaning.
Morphological difficulty changes across languages
An isolating language may express grammatical relationships through word order and separate particles, while an agglutinative language can attach many relatively regular morphemes. Fusional systems may encode several features in one ending. Polysynthetic forms can express what other languages write as a clause.
The intuition that follows — richer morphology means a harder language to model — was measured, published, and then failed to replicate. In 2018 Cotterell and Mielke studied 21 Europarl languages and found “complex inflectional morphology to be a cause of performance differences among languages”. The next year the two of them, with three colleagues, extended the study to 69 languages from 13 language families over 106 Bible translations. It did not reproduce. Morphological counting complexity showed a Spearman's ρ of only .091 for the BPE model and .110 for the character model, with p > .6. WALS feature 26A, “Prefixing vs. Suffixing in Inflectional Morphology”, showed no significant difference between categories, at p > .3 and p > .7 for the two models. Their own figure caption says it: “MCC does not predict difficulty on Europarl”.
The non-replication went in the abstract rather than a footnote: “Trying to answer the question of what features difficult languages have in common, we try and fail to reproduce our earlier (Cotterell et al., 2018) observation about morphological complexity and instead reveal far simpler statistics of the data that seem to drive complexity in a much larger sample.” What did predict difficulty was not typology at all: “Our most predictive feature, however, is the size of the word inventory.” That association reached p < 1e-11, and only for the BPE model.
So the typological labels describe tendencies, not rigid boxes. Even the leading quantitative version of the claim did not survive a larger sample. Inspect the target languages. Do not assume that spaces, suffix lists, or English part-of-speech categories transfer unchanged, and do not assume a typological label tells you how hard the modeling will be.
Morphology-aware design begins with the language, not with an English preprocessing recipe.
Analogy
A modular device with parts that interact
Devices are assembled from a core module, optional extensions, and configuration switches. Examining the assembled device can reveal useful structure. Some functions emerge only when the modules operate together.
Modules attach at visible seams. Language often does not. Non-concatenative morphology, suppletion, irregularity, and context-sensitive interpretation each show that a word is not always a root with pieces snapped onto it. This is also why explicit morpheme segmentation is scarce. UniMorph, a project whose business is exactly this, ships it for 16 languages.
Morphemes can guide analysis without reducing every word to a clean sequence of independent blocks.
Key idea
Collapsing forms can erase the prediction target
The standard information-retrieval textbook does not warn that normalization might erase a distinction. It names the words, the collapsed string, and the queries that break. The Porter stemmer maps operate, operating, operates, operation, operative, operatives and operational all to one string: 'oper'. So 'operational and research', 'operating and system' and 'operative and dentistry' lose considerable precision. The query terms were destroyed on the way into the index. The textbook's verdict on the whole class of techniques is blunt: “Doing full morphological analysis produces at most very modest benefits for retrieval.” And on stemming in particular: “Stemming increases recall while harming precision”.
The underlying experiment is older. In 1991 Donna Harman compared an S-stemmer, the Porter stemmer and the SMART/Lovins stemmer on the CACM, MEDLARS and Cranfield collections. The change in retrieval performance was not significant. What did change was storage, as a later survey restates it: “The results show a non-significant increase of performance when using stemming, but an interesting benefit in terms of space, as the vocabulary is reduced by nearly 40%”. Nearly 40% of the vocabulary went away, and English retrieval quality did not move.
Treat normalization as a task hypothesis, not as a preprocessing default. Compare it against raw and subword baselines. Then inspect which distinctions disappear — because 'oper' is what the disappearance looks like when it is written down.
Related forms are not interchangeable merely because they share a root or lemma.
Steps
Add morphology only when it earns its complexity
Use controlled comparisons rather than assuming linguistic analysis always improves a learned model. First, identify a concrete failure: sparsity, inflection mismatch, compound variation, or feature-dependent errors. Second, choose the representation to test — lemma, stem, morpheme segments, morphological features, or character patterns. Third, preserve the surface form, keeping original text and alignment for names, evidence, and reconstruction. Fourth, evaluate by language and feature, measuring gains and regressions for tense, case, number, compounds, and rare forms. Fifth, keep a simpler baseline, because modern subword or character models may already capture enough structure.
Steps two and five are the ones with published evidence behind them, and it points both ways. After the 2019 non-replication the question was re-opened with more data. In March 2021 Park and Zhang, with four colleagues, compiled 145 Bible translations in 92 languages and 11 more WALS morphology features than the earlier study had used. Their conclusion: “BPE model surprisal is associated with 6 out of the 12 studied WALS morphology features, indicating that there are aspects of some languages’ morphology that BPE does not help mitigate.” Their abstract puts the same result in modeling terms: “We find that several morphological measures are significantly associated with higher surprisal when LSTM models are trained with BPE-segmented data.” They confirmed the earlier negative result on its own terms. Feature 26A, the single feature Mielke and colleagues had tested, indeed showed no correlation. Six of twelve features did.
That is what makes step two a measurement rather than advice. Park and colleagues also found that morphologically motivated segmentation — Morfessor, and FST-augmented BPE where available — both models the data better and weakens the association between a language's morphology and its modeling difficulty. So the simpler baseline in step five is a trade-off with a published head-to-head behind it, not a default to be assumed either way. Run the comparison on your languages and your task, and report which of the two the numbers favour.
1. Identify a concrete failure
Look for sparsity, inflection mismatch, compound variation, or feature-dependent errors.
2. Choose the representation
Test lemma, stem, morpheme segments, morphological features, or character patterns.
3. Preserve the surface form
Keep original text and alignment for names, evidence, and reconstruction.
4. Evaluate by language and feature
Measure gains and regressions for tense, case, number, compounds, and rare forms.
5. Keep a simpler baseline
Modern subword or character models may already capture enough structure.
Case
Suffix stripping from 1980 is still the baseline to beat
Stemming is older than most of the field's current vocabulary and is still in service. Porter published his suffix-stripping algorithm in 1980. The mechanism fits in a sentence: the algorithm “effectively works by treating complex suffixes as compounds made up of simple suffixes, and removing the simple suffixes in a number of steps”, and “in each step the removal of the suffix is made to depend upon the form of the remaining stem, which usually involves a measure of its syllable length”. No lexicon. No part-of-speech tagger. No training data. A rule cascade conditioned on what is left after each cut.
The reported result was modest and precise. The algorithm was “implemented as a short, fast program in BCPL”, and it “performs slightly better than a much more elaborate system with which it has been compared”. Slightly better than something much more elaborate, in a program short enough to describe in seven pages.
That is the shape of the whole trade-off this lesson is about. The same stemmer that has stayed in service since 1980 is the one that turns operate, operating, operates, operation, operative, operatives and operational into 'oper'. It is a baseline to beat, not a relic to patronise — and, on English retrieval, it has proved difficult to beat by much.
Diagnose a morphology-sensitive retrieval failure
Select twenty queries whose relevant documents use different inflections, compounds, or derivations. Compare word matching, stemming, lemmatization, subword retrieval, and character n-grams. Record improved matches and new false positives. A successful method should recover intended variation without merging opposites, names, or unrelated words.
This experiment has a published version with numbers you can measure yourself against, and it was run in a language where the answer differs from the English one. In 2004 Braschler and Ripplinger tested a spectrum of stemming and decompounding methods on a unified German collection: Frankfurter Rundschau and Der Spiegel articles from the CLEF 2000 and 2001 data, with the CLEF 2001 SDA newswire removed, and 85 of the 90 topics from the two years. Their headline: “Compared to a system without stemming, we obtained performance gains measured in mean average precision of up to 23% for short (T) and up to 11% for long queries (TDN).” Recall rose 12% and 4% respectively. Decompounding contributed more than stemming did — 16% to 34% for short queries and 9% to 28% for long ones — and the best decompounding runs came in 33% to 60% above the no-stemming baseline. The published abstract states the finding as a rule of thumb: “The main findings are that stemming is beneficial even when using a simple approach, and that carefully designed decompounding, the splitting of compound words, remarkably boosts performance.”
So the same operation that bought English retrieval a non-significant change bought German up to 23% in mean average precision, and splitting compounds bought more than that again. The IR textbook reports the pattern independently: “The situation is different for languages with much more morphology (such as Spanish, German, and Finnish). Results in the European CLEF evaluations have repeatedly shown quite large gains from the use of stemmers (and compound splitting for languages like German)”. Braschler and Ripplinger also record that the English literature never fully settled: “Where Harman (1991) reported that stemming gives no benefit, Frakes (1992) and Hull (1996) claim at least a small benefit.” Run your twenty queries, then ask which of those two worlds your language and collection resemble. The answer is a measurement, not a preference.
Morphological recall must be balanced against semantic over-collapsing.
Key takeaways
- Morphology links surface wordforms to roots, lemmas, lexical categories, constructions, and grammatical features — the middle three are fixed by Universal Dependencies as a lemma, a part-of-speech tag from a fixed list of 17 universal tags, and a set of universal morphological features.
- Stemming is heuristic reduction, lemmatization selects a lexical base, and morphological analysis preserves richer structure; the Porter stemmer of 1980 remains the baseline that must be beaten, not a relic.
- Inflection, derivation, compounding, clitics, and non-concatenative processes differ across languages, and even governed affix systems change: WHO replaced the -mab stem with -tug, -bart, -mig and -ment in November 2021.
- Normalization can improve lexical recall while erasing task-critical evidence — operate, operating, operates, operation, operative, operatives and operational all become 'oper', and Harman's 1991 comparison found a non-significant retrieval change for a vocabulary cut of nearly 40%.
- Morphology-aware features must be evaluated by language and phenomenon: stemming did nothing measurable for English but gave up to 23% mean average precision on German short queries, with decompounding adding more.
- The surface string and alignment remain necessary even when the model uses a normalized representation, and typological claims need re-testing — morphological complexity failed to replicate across 69 languages before 6 of 12 WALS features re-established a link at 92.