http://qs321.pair.com?node_id=186596


in reply to Re: Spell Check Logic
in thread Spell Check Logic

you could speed this up a bit by maintaining a list of the words themselves in a separate hash, and checking that before you calculate the phonetic code (step 2). that way, you only have to calculate the code for words that are not in the list. of course, that only helps if most words are spelled correctly :)