How to find all strings at a given edit distance from a given string

非 Y 不嫁゛ 提交于 2019-12-05 22:02:13

There is interesting article of Peter Norvig "How to Write a Spelling Corrector" talking about how "Do you mean" might work

This will of course be speculations, but sure, Google has a vast statistical foundation to do a guess of the correct word. Context can be another factor which depends on the other words.

So my guess is that the algorithm they use first determines probable context based on all words, and then statistically looking up typos variants for the correct word in the given context. If no context (single word) they probably look up anything they could be similar.

In addition, as Google uses a MySQL based database, they could also use the SOUNDS LIKE feature which list words that would sound similar based on vocals.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!