[pt] False positive in "ao cometa"

@jaumeortola

Hello Jaume.

I was checking the morphologic information of:
“Isto aconteceu em 2007 ao cometa Marco. Cometa. Cometas.”
https://community.languagetool.org/analysis/analyzeText

“ao cometa” shows “cometa” as a feminine word (flagging a gender mistake) while the other two are shown correctly as masculine.

Could you make a disambiguation fix since I don’t know how to do it myself?

Thanks!

The tag for “cometa” is correct: NCMS000. The problem is in the rule GENERAL_GENDER_AGREEMENT_ERRORS[2]. Probably, some exception or antipattern is missing.

@jaumeortola

Here is a screenshot of the POS information:

Thanks!

Yes, you are right. There was a problem in disambiguation. Fixed here: [pt] fix: cometa + NP · languagetool-org/languagetool@f87fba1 · GitHub

Thank you!