How can I do spell checking and/or spell correction in a Java application?
Spell check and/or spell correction in Java
18.7k views Asked by Ronaldinho Learn Coding At
6
There are 6 answers
1
On
A good offline solution is Jazzy. Try this example and download the dictionary.
Here's the Maven dependency for library:
<dependency>
<groupId>net.sf.jazzy</groupId>
<artifactId>jazzy</artifactId>
<version>0.5.2-rtext-1.4.1-2</version>
</dependency>
0
On
If you want a simple and offline solution, based on Peter Norvig explanation of Google spell corrector, take a look here: http://raelcunha.com/spell-correct.php
0
On
Try Hunspell. It is a standard for spell check. You can use Java port of Hunspell which is Hunspell-c+ JNA
Google's Spell Checker http://code.google.com/p/google-api-spelling-java/
It's much like when you use Gmail or Google services (like translate.google.com or search) that gives you alternate suggestion if you have a typo.
Haven't tried though.
UPDATE:
Google might have started charging for this. I do not have time to code to check this. Someone can confirm. As far as Google is concerned, it seems that they have deprecated the old API for new and paid one.
Refer: Google Translate API FAQ