Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Ulmo2112 opened this issue May 23, 2024 · 2 comments
Open

Comments

@Ulmo2112
Copy link

Ulmo2112 commented May 23, 2024

CURRENT SETTINGS:

  • Using Notepad++ v8.6.5 (64-bit)
  • Using DSpellCheck version: 1.5.0.0
  • DSpellCheck is set to Check Document Automatically, Multiple Languages.
  • In the "Choose Languages" dialog (after clicking the "Set Multiple Languages" menu command), two dictionaries are selected: English (United States) and French - see the first attached image further down.

BEHAVIOR:

  • The Automatic spell checking works well, it will detect a word that is not in both dictionaries.
  • BUG : The suggestions only select words from one dictionary instead of both dictionaries. In my case, from the English (United States) dictionary.

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

@Ulmo2112 Ulmo2112 changed the title Multiple languages suggest words from only one language dictionary Multiple Languages mode suggests words from only one language dictionary May 23, 2024
@Predelnik
Copy link
Owner

There is a very similar issue about this already:
#21
It's more than 10 year old sadly but doesn't mean I can't improve on this part.

@Ulmo2112
Copy link
Author

Ulmo2112 commented Aug 13, 2024

There is a very similar issue about this already: #21 It's more than 10 year old sadly but doesn't mean I can't improve on this part.

Thanks for your reply, and for your efforts in providing such a useful plugin to the community!

Unlike #21's OP, the Joined English-French dictionary validates correct words, in both languages, it works well. But yes, further down the #21 thread, I get the same issue if a word is not validated by any language: the plugin then only lists those from the dictionary having the most suggestions, or the 1st one in the dictionary list if those suggestions are of equal number.

My context - Since I often write texts that can mix both languages (a common occurrence in our countries - and I'd guess in many others whatever the selected languages), when quoting some author of the other language for instance, or when writing a bilingual/multilingual reference, then using multiple dictionaries is very useful (if not of utter importance for spell checking).

The problem rises when a word isn't validated by all the selected dictionaries... Instead of comparing the number of suggestions, since it checks all dictionaries anyways, wouldn't it be feasible to simply add all the occurrences it found in all dictionaries to the suggestion list? It would then be for me to select the correct word in the correct language: since my text uses both languages, I would know which one pertains to the correct context of the multiple-language text at hand (there would be no need for the plugin to guess which language is in current use within the sentence nor about my intention in that sense).

The issue about the "Add to Dictionary" user dictionary is a secondary issue, although your suggestion of choosing to which one via a sub-menu would be great: in the meantime and for a quick intermediate version, I wouldn't mind at all if the "Add to Dictionary" functionality is disabled when using multiple dictionaries (or when more than one dictionary is checked within the dictionary list).

Again, thank you for your time and best regards :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants