-1

我正在开发一个字典应用程序,我想在我的 android 字典应用程序中实现拼写校正器(如谷歌搜索引擎:“你的意思是……”)。我可以这样做吗?如何编码?任何人都可以帮忙吗?提前致谢。

4

1 回答 1

0

You could use an algorithm such as Levenshtein distance to calculate how off a word is to other words in a pre-defined wordlist, if there is no exact match in the word list, you can propose the one that is closest (and add a word to it if the user still selects his/hers version/spelling).

http://en.wikipedia.org/wiki/Levenshtein_distance

于 2012-05-22T13:48:37.790 回答