There's a problem in portuguese:
An abbreviated word must end with a period ("."), and the longer the word, the more the possible abbreviations it can have, for this reason, it is not possible to provide a list of all possible abbreviations. Below are two examples:
Localização (means "localization")
Selecionar (means verb "to select")
Right now, the checking tool considers all periods as sentence periods, and cannot identify them as part of the abbreviation. Example:
Selecion. is reported as Selecion
Selec. is reported as Selec
Sel. is reported as Sel
To solve this issue, my suggestion is to create something like an IF function:
IF "ABCD" word is followed by a period, then, ignore the issue.
IF "ABCD" word is NOT followed by a period, then, it is an issue.
If these two measures are taken, the false positives will easily go down by 70%(!).
So, I want to add a rule in org/languagetool/resource/pt/disambiguation.xml
Can someone help me? does this work?
<rule id="ABBR" name="abbreviation"> <pattern> <token regexp="yes">\w*\.</token> </pattern> <disambig action="ignore_spelling"/> </rule>