-2

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.

Community
  • 1
  • 1
  • 1
    Have you done any research in to this yourself? – mdm Jun 29 '11 at 11:07
  • You need to be more specific. A fully functioning spell checker will find potential matches from a dictionary and the algorithms for this are complicated. Are you saying that the word to spell is already known and you are checking spelling of the user supplied word? – maple_shaft Jun 29 '11 at 11:09
  • an user supplied word which is to be checked. – Sunil Kumar Jun 29 '11 at 11:11

1 Answers1

0

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()