Texmaker cannot load dictionary

I had the same problem but the .dic files that I used didn't work.

Texmaker Error : Can’t open the dictionary

To solve this error you need to install the spell-checker

  • Use: sudo apt-get install myspell-de-de myspell-en-us or use sudo apt-get install myspell-*

  • Then find the dictionary: locate *.aff

There were two directories that contained dictionary files in my computer; /usr/share/hunspell/ and /usr/share/myspell/. Only one of the "myspell" dictionaries worked, while all the "hunspell" dictionaries worked (so far) .

Probably the .dic file from "myspell" doesn’t work without a corresponding .aff file...

  • Chose the .aff file that you want and enter its path into texmaker at options --> configure texmaker --> editor --> spelling dictionary then click ok.

  • Right click on your "code" and click on check spelling to make sure it's working.


/usr/share/hyphen are not the right directory for spelling dictionaries. The spelling dictionaries are in the /usr/share/myspell directory and spell dictionaries are in fact always composed of 2 files: the .dic (which must be selected) and the .aff file.


Inside /usr/share/myspell/dicts you should have links to both the .dic AND the .aff file of the language (e.g. en_US or en_GB).

/usr/share/myspell/dicts$ ls -og |  grep /en_US
lrwxrwxrwx 1 24 Jan 30 11:21 en_US.aff -> ../../hunspell/en_US.aff
lrwxrwxrwx 1 24 Nov  3 13:03 en_US.dic -> ../../hunspell/en_US.dic

Then from configuration, make TexMaker "Spelling dictionary" point to the .dic file:

/usr/share/myspell/dicts/en_US.dic

This is the description/explanation from MySpell Wikipedia entry:

The spell checking is done using the .aff file for the locale together with the .dic file. The .dic file is a list of words along with a group of letters which refer to the affixes found in the .aff file. This saves space because instead of having include all forms of a word, like jump (jumping, jumps, jumped), the .dic file will include the word once and the references to the affixes in the .aff file allow the construction of all the other forms.

If you don't have an .aff file, you can get one the en_US .dic/.aff for Hunspell from wordlist.sourceforge.net.