languagetool icon indicating copy to clipboard operation
languagetool copied to clipboard

[pt-BR] do not give suggestions like 'provámos'

Open jaumeortola opened this issue 2 years ago • 3 comments

In the rule TESE_PHD_PROCURAR_PROVAR_PROVARA, or in any other rule.

@susanaboatto I open a new issue because this is a specific problem. I will provide a solution for that.

jaumeortola avatar Jul 28 '22 13:07 jaumeortola

@susanaboatto Could you send me some sentence where "provámos" is synthesized as a suggestion in this or any other rule?

If the accent is in the original sentence, it seems correct to give suggestions with accent:

2.) Line 1, column 1, Rule ID: TESE_PHD_PROCURAR_PROVAR_PROVARA[3] premium: false
Message: Se for uma tese de doutoramento, verifique se o ‘tom’ de redação é o apropriado.
Suggestion: provámos; visámos provar; (ter) em vista provar
procurámos provar 
^^^^^^^^^^^^^^^^^

See the tagging. "Provámos" has one more letter at the end (P = Portugal Portuguese). It is easy to exclude these forms from the suggestions.

provámos provar VMIS1P0P
provamos provar VMIS1P0
provamos provar VMIP1P0

jaumeortola avatar Jul 28 '22 14:07 jaumeortola

I wrote this new rule. Please check the message and the rule name. @susanaboatto https://github.com/languagetool-org/languagetool/commit/13048ad8638971d116ab6d374b1825af67e5dfef

It is not indispensable because the Brazilian speller already detects the error, but it can be useful.

jaumeortola avatar Jul 28 '22 14:07 jaumeortola

Thanks @jaumeortola, the "Portuguese" tag is not included in our tagset description, so I didn't know that. It looks like this rule will fix it in case the spelling does not 😄

susanaboatto avatar Jul 29 '22 06:07 susanaboatto