3 ms·
The Peter Norvig spellchecker: https://norvig.com/spell-correct.html https://norvig.com/spell-correct.html I like it because it's so clearly coded - there are
by nl 4y ago
The Peter Norvig spellchecker: https://norvig.com/spell-correct.html https://norvig.com/spell-correct.html
I like it because it's so clearly coded - there are no crazy syntax tricks or hacks - it's just obviously the right way to write it. And yet it is compact, elegant and non-obvious if you are writing it yourself.