[Tex/LaTex] TeXworks: How to add a word to the spell checker dictionary

dictionariesspellingtexworks

I use TeXworks to write my documents. The spell checker tool works nice, but I'd like to add some words to the dictionary, but I can't find a function for that.

So how can I do that?

Best Answer

TeXworks uses a spell checker called Hunspell, an engine which is also used e.g. by OpenOffice:

Each dictionary consists of two files with the extensions .dic and .aff. Where these are located depends on your TeXworks installation, on my system (TeX Live 2010, Windows), they are in the directory

C:\Users\<user name>\.texlive2010\texmf-config\texworks\dictionaries

Adding words to the dictionary is quite simple: As the .dic file is a plain word list, you can just add new lines with your own words. If you want the system to recognize different word forms, too, you have to deal with the .aff file - see this explanation for more details. However, simply changing the word list should be enough in most cases.