Andrei Alexandrescu wrote:
Daniel Keep wrote:
There's an interesting idea...
Instead of "No member 'foo'", you could have "No member 'foo'; did you
mean 'far' or 'fur'?"
Heh. The string kernels in std.numeric
(http://erdani.dreamhosters.com/d/web/phobos/std_numeric.html) are to
help with exactly that.
I remember, but can't find, some famous programmer posted to the net a
simple spell checking algorithm that worked by counting letter
additions, deletions, and transpositions to determine best matches.