Notes

Morpheme

"Unhappiness" is one word carrying three separate pieces of meaning: "un-", "happy", "-ness". Each piece is a morpheme — the smallest unit of language that still contributes meaning of its own.

Free, bound, and what they do

  • Free morphemes stand alone as words: "happy", "book", "run".
  • Bound morphemes cannot: "un-", "-ness", "-ed", "-s".
  • Derivational morphemes build a new word, often in a new class — "-ness" turns an adjective into a noun.
  • Inflectional morphemes mark grammar without changing the class — plural "-s", past tense "-ed".

A morpheme is neither a syllable nor an arbitrary letter sequence: "butter" has two syllables and one morpheme, while "cats" has one syllable and two.

Why it matters in practice
A word-level vocabulary treats "walk", "walks", "walked" and "walking" as four unrelated symbols, and has no entry at all for a form it never saw. Morphemes are where the shared meaning actually sits, so every technique that fights vocabulary explosion works at or near that level: stemming and lemmatization strip affixes to collapse the variants, and subword tokenization — BPE, WordPiece, SentencePiece — learns frequent character sequences that often land close to real morpheme boundaries. That is why a transformer copes with "unhappiness" having never seen it: the word arrives assembled from pieces the model knows.

Beyond English
English hides how much this matters. In Finnish or Turkish a single word packs what English spreads across a clause, so the morpheme, not the whitespace-delimited word, is the unit with stable meaning. spaCy and NLTK both expose morphological tools for exactly this reason.

A morpheme is the smallest unit of language that carries meaning: "unhappiness" contains three — "un-", "happy" and "-ness". Some stand alone as words, others only attach to them, and they divide into derivational morphemes that create new words and inflectional ones that mark grammar. Morphemes are the level at which stemming, lemmatization and subword tokenization operate, which is how a system relates an unseen word form to ones it knows.

Words are often built out of smaller parts, like beads threaded on a string. Take "unhappiness": there is "happy" in the middle, "un-" in front flipping it to its opposite, and "-ness" on the end turning it into a thing you can have. Each of those parts is a morpheme — the smallest piece of a word that still means something by itself.

This matters because software constantly meets words nobody taught it. Faced with "unfriendliness", a program that recognises the parts can work out roughly what the word means, instead of treating it as a complete stranger.