Where to find dictionaries for other languages for IntelliJ?

DictionaryIntellij IdeaSpell Checking

Dictionary Problem Overview


IntelliJ spellchecker comes with only English and Arabic bundled (strange, I think it is made in east Europe, they didn't even bundle their language?).

My customer is German so all my code is mixed English (code)/German (interface) and I can't find a German dictionary for IntelliJ.

Dictionary Solutions


Solution 1 - Dictionary

Current IDEA versions load dictionaries in UTF-8, you don't need to convert them to the platform encoding, ignore the iconv step below.

The dictionary can be produced using aspell for Unix/Mac OS X or under Cygwin. You need to have aspell and appropriate dictionary installed.

Here is the example for Russian dictionary I've used:

aspell --lang ru-yeyo dump master | aspell --lang ru expand | tr ' ' '\n' > russian.dic

For German it would be:

aspell --lang de_DE dump master | aspell --lang de_DE expand | tr ' ' '\n' > de.dic

Solution 2 - Dictionary

I downloaded the ASCII spanish dictionary from this page, copied the included .dic file and it worked without any change: http://www.winedt.org/dict.html

There are many other languages.

OUTDATED: I get this info from this page (now this link is dead), who included additional details and format conversions that I didn't need: http://blog.novoj.net/2010/11/07/how-to-add-your-own-dictionary-to-intellij-idea-spellchecker/

Solution 3 - Dictionary

This is based on all answers from here but including all the steps. I'm on Mac OS X (I think it will work on linux as well, except aspell installation) and I want the spanish dic

> Only execute on terminal those lines that start with $ symbol

  1. Install aspell:

     $ brew update
     $ brew install aspell
    
  2. Download Aspell dic from their official repo

  3. Extract tar.bz2 file

  4. Go to extracted directory using terminal

     $ cd Downloads/aspell6-es-1.11-2
    
  5. Compile and install dic.

     $ ./configure
     Finding Dictionary file location ... /usr/local/Cellar/aspell/0.60.6.1/lib/aspell-0.60
     Finding Data file location ... /usr/local/Cellar/aspell/0.60.6.1/lib/aspell-0.60
     $ make
     /usr/local/bin/prezip-bin -d < es.cwl | /usr/local/bin/aspell  --lang=es create master ./es.rws
     $ make install
     mkdir -p /usr/local/Cellar/aspell/0.60.6.1/lib/aspell-0.60/
     cp es.rws castellano.alias es.multi espanol.alias spanish.alias /usr/local/Cellar/aspell/0.60.6.1/lib/aspell-0.60/
     cd /usr/local/Cellar/aspell/0.60.6.1/lib/aspell-0.60/ && chmod 644 es.rws castellano.alias es.multi espanol.alias spanish.alias
     mkdir -p /usr/local/Cellar/aspell/0.60.6.1/lib/aspell-0.60/
     cp es.dat es_affix.dat /usr/local/Cellar/aspell/0.60.6.1/lib/aspell-0.60/
     cd /usr/local/Cellar/aspell/0.60.6.1/lib/aspell-0.60/ && chmod 644 es.dat es_affix.dat
    
  6. Create the .dic file using:

     $ aspell -l es dump master | aspell -l es expand | tr ' ' '\n' > es.dic
    

Solution 4 - Dictionary

Download a .dic from wherever you want(example). Then go to File > Settings > Spelling. There open the Dictionaries tap and add the path to the folder where you have saved the .dic in. It will auto-detect any .dic inside that folder. Apply.

Solution 5 - Dictionary

Converting a Unicode dict to UTF-8 did the trick for me (sample for German / Linux computer):

NOTE: the converted german-dict can be downloaded here (<- already working).

If you need an other language please follow these steps:

  1. (Just in case) If you have already linked .dic-files in IntelliJ, please remove them temporary by pressing the red minus in the settings.

  2. Get your UNICODE(!) dictionary from here.

  3. Now convert it to UTF-8, so IntelliJ will accept it:

    ~/Downloads/de_neu $ iconv -f UNICODE -t UTF-8 de_neu.dic > de_neu_utf8.dic

  4. Go to File > Settings > type "dict" in the search and click Dictionaries > click the green plus and add the folder where "de_neu_utf8.dic" is stored.

  5. Click OK, and you should be good to go. :)

Solution 6 - Dictionary

Hunspell dictionaries support was added recently to Intellij platform.

You may install Hunspell plugin to your IDE and you will be able to add any hunspell dictionary to IntelliJ spellchecker as it is, no additional dictionary transformations are required in this case

Hunspell dictionaries can be found at:

  1. GitHub repos (https://github.com/wooorm/dictionaries, https://github.com/titoBouzout/Dictionaries)
  2. SCOWL collection: http://wordlist.aspell.net/dicts/
  3. OpenOffice extensions: http://extensions.services.openoffice.org/en/dictionaries

Solution 7 - Dictionary

My PyCharm came bundled with a plugin called "Grazie". ("Provides intelligent spelling and grammar checks for text that you write in the IDE.")

You could find (or install) it under:

Preferences -> Plugins.

With that you can setup your language under:

Preferences -> Editor -> Proofreading

Screenshot of the proofreading section to add languages

Solution 8 - Dictionary

I found some useful dictionaries here on WinEdt website. They need some reformatting :on my computer, I had to replace \r by \r\nin the .dicfile, then encode it in UTF-8 using Notepad++.

Solution 9 - Dictionary

  1. Install the Hunspell plugin to your IDE
  2. Find your language dictionary in https://github.com/LibreOffice/dictionaries
  3. Download the .dic file that contains the list of words, and the .aff file that's a list of language rules
  4. On your IDE Settings/Preferences dialog Ctrl+Alt+S, select Editor | Proofreading | Spelling
  5. Add both files at the custom dictionary list

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionnraynaudView Question on Stackoverflow
Solution 1 - DictionaryCrazyCoderView Answer on Stackoverflow
Solution 2 - DictionaryTrogloView Answer on Stackoverflow
Solution 3 - DictionarychachanView Answer on Stackoverflow
Solution 4 - DictionaryXharkView Answer on Stackoverflow
Solution 5 - DictionaryMartin PfefferView Answer on Stackoverflow
Solution 6 - DictionaryOlga StrizhenkoView Answer on Stackoverflow
Solution 7 - DictionaryTimboView Answer on Stackoverflow
Solution 8 - DictionaryBenjView Answer on Stackoverflow
Solution 9 - DictionaryZzaly OreoView Answer on Stackoverflow