I am looking for an open source Java spell checking library which has dictionaries for at least the following languages: French, German, Spanish, and Czech. Any suggestion?
On the Word menu, click Preferences > Spelling & Grammar. In the Spelling & Grammar dialog box, under Spelling, check or clear the Check spelling as you type box. Under Grammar, check or clear the Check grammar as you type box. Close the dialog box to save your changes.
To turn spell check on or off on Android, you need to go to Settings > System > Languages and input > Virtual keyboard > Gboard > Text correction > Spell check and flick the toggle into the desired position.
Another good library is JLanguageTool http://www.languagetool.org/usage/ It has a pretty simple api and does both spelling and grammar checking/suggestions.
JLanguageTool langTool = new JLanguageTool(Language.AMERICAN_ENGLISH); langTool.activateDefaultPatternRules(); List<RuleMatch> matches = langTool.check("Hitchhiker's Guide tot he Galaxy"); for (RuleMatch match : matches) { System.out.println("Potential error at line " + match.getEndLine() + ", column " + match.getColumn() + ": " + match.getMessage()); System.out.println("Suggested correction: " + match.getSuggestedReplacements()); }
You can also use it to host your own spelling and grammar web service.
You should check out Jazzy its used in some high profile Java applications. Two problems with it:
There are some third party dictionaries floating around. I had one for French, last time I used jazzy.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With