• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to implement spell checker in Java

 
Nitin Nigam
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anybody tell me how can we implement a spell checker(English) in my application.
Requirement:
I will pass a string, and it should tell me if it is a valid English dictionary word.

For this i need a English dictionary loaded in my JVM. May be in form of some jar.

There is a Dictionary implementation of Collection that implements HashMap. But it has to be populated before i can use it.

Please help!!!
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmm. While the JDK does contain a Dictionary interface I think you've missunderstood its intention. You should note that the JavaDocs do say this about it:

This class is obsolete. New implementations should implement the Map interface, rather than extending this class.

There are lots of Spell Checker APIs out there. Try googling for "java spell checker" and you should find plenty to get you going.

All that aside, this is not really an advanced question. Moving...
[ January 17, 2007: Message edited by: Paul Sturrock ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic