Java检查拼写的方法
Possible Duplicate:
Looking for Java spell checker library
Is there any method for checking spelling of english words.
I have word game where I have to select letters to form a word and then check it for spelling, if correct then show on the panel.
the methods and the use of these methods, please.
thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要一本包含已接受单词的词典,然后进行比较。如果您想识别相似的单词,那么您需要从前缀和后缀开始,然后继续使用 levenstein(?) 距离
...或者您可以使用 String.equals()
You need a dictionary of accepted words, and compare against that. If you want to recognize similar words then you'll want to start with prefixes and suffixes and move on to levenstein(?) distances
... Or you can use String.equals()