How to Write a Spelling Corrector
This is a beautiful example of pithy high-level coding. I feel compelled to mention, however, that the example word, 'thew', is in fact a(n archaic) English word: <a href="https://www.google.com.au/#q=thew" rel="nofollow">https://www.google.com.au/#q=thew</a> :P