Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where to find dictionaries for other languages for IntelliJ?

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.

like image 639
nraynaud Avatar asked Dec 22 '09 23:12

nraynaud


People also ask

What is Cspell?

cspell is a command line tool and library for spell checking code.

Where do I find typos in Intellij?

By default, the Typo inspection checks all text including code elements, string literals, and comments in all scopes. Press Ctrl+Alt+S to open the IDE settings and select Editor | Inspections. Expand the Proofreading node and click Typo in the central pane.

How do I get rid of Typo error in Intellij?

-> Uncheck the options that you want to disable. 2: File>>Settings>>Inspections>>Spelling>>Typo but File>>Settings and search "spelling" is better! :) Just to be clear, the options you can disable will be in the right-hand column after you click on "Typo". Checking the "Typo" checkbox disables them all.


2 Answers

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 
like image 182
CrazyCoder Avatar answered Oct 01 '22 16:10

CrazyCoder


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/

like image 36
Troglo Avatar answered Oct 01 '22 15:10

Troglo