Back to LanguageTool Homepage - Privacy - Imprint

[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: https://github.com/languagetool-org/languagetool/commit/f87fba17b7df5d2c507c3e1e0eaafbb10c92d116

Thank you!