Predelnik / DSpellCheck

Notepad++ Spell-checking Plug-in
GNU General Public License v2.0
198 stars 32 forks source link

Multiple Languages mode suggests words from only one language dictionary #344

Open Ulmo2112 opened 2 months ago

Ulmo2112 commented 2 months ago

CURRENT SETTINGS:

BEHAVIOR:

EXAMPLES:

  1. Triggering the BUG - The word "tyranie" is misspelled in both French and English. However, when right-clicking the misspelled word, the only replacement suggestion I get (on top of the contextual menu) is the English word "tyrannize". _(note that in the sentence's context, the correct English word would be "tyranny", but since it's a French text it'd be irrelevant, and I guess that we're limited by the Hunspell library suggestions, which is not within the scope of the issue at hand)._

    The BUG pertains to getting suggestions taken out of only one dictionary from the list, even if more than one are checked and should suggest a replacement word in both languages, in this case (EN) "tyrannize" and (FR) "tyrannie".

DSpellCheck 1

  1. Verification - If I set DSpellCheck to the French language instead of Multiple Languages, OR if I select only the French dictionary from the "Choose Languages" dialog while in Multiple Languages mode, then the replacement suggestion is correct since it comes from the French Dictionary: "tyrannie"

    The spell check in both languages still takes place in both languages (FR + EN) given the current Multiple Languages mode, even though the English dictionary isn't checked, but is part of the Languages list: it doesn't throw errors on non-english words that are valid in French and vice-versa, which is all-right.

DSpellCheck 2

Predelnik commented 1 month ago

There is a very similar issue about this already: https://github.com/Predelnik/DSpellCheck/issues/21 It's more than 10 year old sadly but doesn't mean I can't improve on this part.