Java method for checking spelling [duplicate]
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.
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()
精彩评论