There's a really good article on writing a spell checker (with code) at <a href="http://norvig.com/spell-correct.html" rel="nofollow">http://norvig.com/spell-correct.html</a>.
<i>In 1918, Robert Russell and Margaret Odell devised and patented an algorithm for approximating and encoding the phonetic value of a word.</i><p>Nice to know that patent insanity isn't a new thing.