Reputation: 2144
I want to implement spell check into J2SE desktop application. To do this i use Jazzy (http://jazzy.sourceforge.net/). How to import and use aspel's dictionaries (from Aspel Dictionaries ftp://ftp.gnu.org/gnu/aspell/dict/0index.html), because I have only one dictionary - English, but I want more: French and Polish.
Upvotes: 2
Views: 996
Reputation: 4608
Jazzy uses a simple text file with one word a line, and a blank line in between - such as
Alaska
Alaska's
Albania
Albania's
You'll have to either:
Convert the aspel dictionaries to that format (see this answer);
Implement/find a java.io.Reader
that reads from the aspel format and returns a word each call to readLine()
, so you can use new SpellDictionaryHashMap(Reader yourAspelReader);
Upvotes: 1