Notes

Lexicon

Every system that works with language carries a list of the words it knows something about. That list, together with what it knows about them, is the lexicon — the inventory of a language's words and their properties, as distinct from the rules for combining them.

What sits in an entry
A lexical entry is more than a spelling. It holds the word's base form, its possible parts of speech, its inflected variants, and whatever the application needs: pronunciation, sense definitions, a sentiment polarity, a semantic category. WordNet is the best-known example, grouping words into sense sets linked by relations such as is-a and part-of; sentiment lexicons such as VADER instead attach polarity scores to individual words.

Lexicon against vocabulary

  • A vocabulary is the set of word types some model or corpus happens to contain — derived from data, carrying no knowledge beyond identity.
  • A lexicon is curated and informative: it says something about each word, and usually exists before the data does.
  • A word missing from the vocabulary is out-of-vocabulary; a word missing from the lexicon simply gets no properties, and whatever depended on them falls back silently.

Why it matters
Lexicons are where human linguistic knowledge enters a pipeline that otherwise only counts. A WordNet lemmatizer, a rule-based sentiment scorer and a named-entity gazetteer all work because somebody wrote the entries down. They also show that approach's edge: coverage ends where the list ends, so fresh slang, product names and domain jargon stay invisible until an entry exists — exactly the pressure that pushed the field toward representations learned from text.

A lexicon is the inventory of words a language or a system knows, together with the information attached to each one — base form, possible parts of speech, inflections, senses, or scores such as sentiment polarity. It differs from a vocabulary, which is merely the set of word types present in data. Lexicons such as WordNet are how curated human knowledge about words enters a processing pipeline, and coverage ends where the list ends.

Think of the dictionary on your shelf. It does not teach you grammar — it lists words and tells you things about each one: what it means, how it is said, whether it is a noun or a verb. In language software, that list is called the lexicon.

Programs lean on it constantly. A spell checker needs to know which words exist. A tool that judges whether a review is positive may hold a list of words marked cheerful or grumpy. The catch is the same as with a printed dictionary: anything not in it — new slang, a brand name, a technical term from your job — might as well not exist.