Every time you type "teh" and your phone silently fixes it to "the", a small probabilistic argument has just run in the background. The fix feels magical, but the logic behind it has a name: the noisy-channel model.
The idea comes from Claude Shannon's 1948 information theory. Imagine the word you intended to type passes through a noisy channel — your fingers — and arrives on screen as a garbled version. The corrector's job is to invert the channel: given the garbled output, find the intended word that most plausibly produced it.
Bayes' theorem turns that intuition into a formula. The best correction of a typed string is:
Two factors compete: , the error model (how likely you are to type when you meant ), and , the language model (how common is in ordinary text). The winner is whichever candidate word maximizes their product.
This solved version of autocorrect — combining an error model with a language model — was popularized in NLP by researchers at Bell Labs and IBM in the 1990s, and brought to wide attention by Peter Norvig's celebrated 2007 essay "How to Write a Spelling Corrector."
Comments
Loading comments...