Back to LanguageTool Homepage - Privacy - Imprint

[pt] False positives in "Contraction" rules


(Marco A.G.Pinto) #1

@tiagosantos

I was looking at the nightly diff and there are false positives with the contractions rules.

Please see the MS Word screenshot that shows that in certain cases the words can't be contracted.

:slight_smile:


(Marco A.G.Pinto) #2

@tiagosantos

The image was auto resized too much...

Here is a piece of it more visible:


(Tiago F. Santos) #3

Thank you for the report.

I have noticed it on the regression tests. There is an exception, when the pronoun of a regular contraction is followed by a verb in the infinitive, that I have not accounted for.
https://linguamodadoisec.blogspot.pt/2007/06/do-ou-de-o.html
Tomorrow, I will push a fix to this in accordance to the above as well as a few improvements to the reduncy rules.
I will also have to address 2nd token capital letters and the 'onde' cases. The remaining positives are legit positives.

While we are reviewing this, please, also review your 4 contraction rules I have commented.


(Marco A.G.Pinto) #4

I can't remember anything :frowning:

What 4 contraction rules?


(Tiago F. Santos) #5

Link in the description explains why.


(Marco A.G.Pinto) #6

ahhhh... change as you like :slight_smile:

When I created the "dum" e "duma" rules I thought that it was more correct to use "de um" and "de uma".