• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

How to implement spell checker in Java

 
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!!!
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
I'm sure glad that he's gone. Now I can read this tiny ad in peace!
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic