Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>that could have been formed by hitting keys that were next to the ones you really hit wrong.

Google does this already and I would assume they aren't the only ones.

I once accidentally typed "cinnabd oatterb" into Google, yet it knew I wanted "Command Pattern". Still works today.



The Levenshtein distance, the standard metric for determining how different words are from each other, can easily be modified to change the penalty for different letter replacements. For example, you can say that the penalty for substituting an 'a' for 's' is 1, and 'a' for 'p' is 10 (or whatever).


Boom, there we go - that's the term I was looking for. Awesome!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: