languagetool-org / languagetool

Style and Grammar Checker for 25+ Languages
https://languagetool.org
GNU Lesser General Public License v2.1
12.03k stars 1.38k forks source link

[pt] Hunspell upper/lower case issues #6298

Open marcoagpinto opened 2 years ago

marcoagpinto commented 2 years ago

Hello!

Why can't LT work like Hunspell, detecting the case of words?

For example, if a letter is uppercase in a word, it should only accept as valid that word exactly as it is there or the whole word in uppercase: Master=Master|MASTER

Words in lowercase should accept all kinds of case: sensei=sensei|Sensei|SENSEI|SeNsEi

This is how Hunspell works and LT should follow its method so that we can remove tons of sentences from related files which have one line in lowercase and other line with uppercase words.

Also, why does "Sensei" in uppercase appear as a typo (Portuguese)?: LanguageTool_typo_20220204

Thanks!

jaumeortola commented 2 years ago

It seems that spelling.txt is strictly case-sensitive for Portuguese.

sensei|Sensei|SENSEI should be allowed, but not SeNsEi.