Where can I find dictionaries for other languages ​​for IntelliJ?

IntelliJ spellchecker comes with only English and Arabic (strange, I think this is done in Eastern Europe, they don’t even communicate their language?).

My client is German, so all my code is mixed English (code) / German (interface), and I can not find the German dictionary for IntelliJ.

+70
dictionary intellij-idea spell-checking
Dec 22 '09 at 23:58
source share
7 answers

UPDATE Current versions of IDEA load dictionaries into UTF-8, you do not need to convert them to platform encoding, ignoring the iconv step below.

The dictionary can be created using aspell for Unix / Mac OS X or under Cygwin. You must have aspell and the appropriate dictionary installed.

Here is an example of a Russian dictionary that I used:

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

For German, this will be:

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

Currently, IDEA reads the dictionary in the system encoding by default, so you may have problems if they differ from the locale of the dictionary, however, the next IDEA update will read the dictionary in UTF-8. When this happens, you can use iconv to convert.

If aspell creates a directory in UTF-8 on your system, you will need to convert it to cp1252 for the current version of IDEA:

 iconv -f utf-8 -t cp1252 de.dic > de-cp1252.dic 

However, if you build it on the same system where you run IDEA, the encoding should match (since aspell will produce it in the default system encoding, and IDEA will also read it in the default system encoding). I used Cygwin for Windows with cp1251 encoding, and it worked fine in Russian, but it would be difficult for the same system to use German until IDEA reads it in UTF-8

+81
Dec 23 '09 at 0:33
source share

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

There are many other languages.

INSTALLED: I received this information from this page (now this link does not work), which included additional information and format conversions that I do not need: http://blog.novoj.net/2010/11/07/how-to - Add-your own dictionary to IntelliJ-idea-spellchecker /

+48
Apr 29 '13 at 12:38 on
source share

This is based on all the answers from here, but includes all the steps. I am on Mac OS X (I think it will work with linux as well, with the exception of installing aspell), and I want the Spanish dic

Only execute on the terminal those lines that begin with the symbol $ symbol

  • Install aspell:

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

  • Extract tar.bz2 file
  • Go to the extracted directory using the terminal

     $ cd Downloads/aspell6-es-1.11-2 
  • 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 
  • Create a .dic file using:

     $ aspell -l es dump master | aspell -l es expand | tr ' ' '\n' > es.dic 
+14
May 30 '15 at 17:49
source share

Download .dic from anywhere ( example ). Then go to File> Preferences> Spelling. There, open "Dictionaries", click and add the path to the folder in which you saved the .dic file. It will automatically detect any .dic file inside this folder. Use.

+5
May 01 '14 at 9:22
source share

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

NOTE: a converted German-dict can be loaded here (<- already works).

If you need a different language, follow these steps:

  • (Just in case) If you have already linked .dic files in IntelliJ, delete them temporarily by clicking the red minus in the settings.

  • Get the UNICODE (!) Dictionary from here .

  • 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

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

  • Click OK and you should be fine. :)

+4
Dec 02 '15 at 19:36
source share

Recently, Intellij platform has added support for Hunspell dictionaries.

You can install the Hunspell plugin for your IDE, and you can add any hunspell dictionary to the IntelliJ spellchecker as it is, no additional dictionary transformations are required in this case

Hunspell Dictionaries can be found at:

  1. GitHub repositories ( 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
+1
Jan 18 '18 at 9:03
source share

I found some useful dictionaries here on the WinEdt website . They need some reformatting: on my computer I had to replace \r with \r\n in the .dic file and then encode it in UTF-8 using Notepad ++.

0
Jun 25 '15 at 9:29
source share



All Articles