How to write a spelling corrector

by Peter Norvig