Aspel dictionaries for Jazzy libraires in Java

989 Views Asked by At

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.

1

There are 1 best solutions below

9
On

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);