Back to LanguageTool Homepage - Privacy - Imprint

Words in spelling.txt doesn't appear in suggesting list


(Oleg) #1

Hi Daniel,

Not long ago I wrote question at the stackoverflow: http://stackoverflow.com/questions/41090141/add-words-to-languagetool-suggesting-list

I'd like to add words to LanguageTool suggestiong list.

You recommend as one variant add target words to spelling.txt, and it will cause to add these words to suggesting list on initialization phase.

Ok, I used LanguageTool with Russian language. Let me provide example of issue.
Word Антихреза is not in a dictionary. If we'll run LanguageTool (I use command-line mode), we'll see on screen:

Антихреза

1.) Line 1, column 1, Rule ID: MORFOLOGIK_RULE_RU_RU
Message: Найдена орфографическая ошибка
Suggestion: Антитеза; Антифраза; Антифриза
Антихреза  
^^^^^^^^^

After it I add this word to spelling.txt (ru/hunspell/spelling.txt), and add with according to alphabet sort.

After it, enter word will not cause any warnings:

Антихреза

But, if I write this word with mispelling, e.g. Антихрезо, word "Антихреза" (that already in spelling.txt) will not appear in suggesting list. Example:

Антихрезо

1.) Line 3, column 1, Rule ID: MORFOLOGIK_RULE_RU_RU
Message: Найдена орфографическая ошибка
Антихрезо  
^^^^^^^^^

(Daniel Naber) #2

I can reproduce this, but only with Cyrillic words, not with Latin words (ignoreToken needs to be adapted to even test this). This might be a bug in Morfologik. Maybe @Yakov can debug this?


(Yakov) #3

I can confirm it for Russian.