Using an aspell dictionary in Eclipse

Eclipse has built-in support for spell checking but it only includes two platform dictionaries: English (United Kingdom) and English (United States). Fortunately it is possible to use any aspell dictionary in Eclipse.

Here's how I enabled the Dutch aspell dictionary in Eclipse (on Ubuntu):

  1. Execute
    sudo apt-get install aspell aspell-nl gawk
  2. Execute
    aspell dump master nl | awk -F/ '{print $1}' >dictionary.txt
  3. In Eclipse's preferences, open the page "General > Editors > Text Editors > Spelling".
  4. Enter the path to your dictionary.txt file in the field User defined dictionary.
  5. Restart Eclipse.

Based on this.

Topic: 

8 Comments

Hi. To get a dump with all

Hi. To get a dump with all word variants, you need to expand the dictionary first:

aspell -l nl dump master | aspell -l nl expand | sed "s/ /\n/g" > dictionary_expanded.txt

Regards,

MValdez

I made a dictionary as

I made a dictionary as above, converted it to dos file line endings and then pointed eclipse helios to the location. Nothing happens. No spell checking at all. Tried txt, dictionary and no extenstion. Any hints?

If you press f1 while

If you press f1 while focused on the user dictionary field you will get some friendly help telling you to set the platform dictionary to none. This is wrong. You must have a platform dictionary selected or no spelling check will occur. Unfortunately this meas you will be validating spelling on both English and whatever your user dictionary is (Dutch in my case).