[pt] Help fixing concordance of number

Hello!

In the following sentences, I get a false positive in the infinitive verb “modelar”:
permitindo modelar pequenos conflitos com apenas alguns cliques, devido a uma centralização das opções de núcleo.
Isto permite modelar grandes conflitos.
Isto permite modelar enormes conflitos.
Isto permite modelar escassos conflitos.
Isto permite modelar diminutos conflitos.
Isto permite modelar reduzidos conflitos.
Isto permite modelar insignificantes conflitos.

The Portuguese rules that triggers it in grammar.xml is:

<rulegroup id='GENERAL_NUMBER_AGREEMENT_ERRORS' name="Concordância de Número: Geral">

I was making some tests with an antipattern but they all failed.

How do I do something like this?:

  <antipattern>
      <token>modelar</token>
      <token regexp='yes'>pequenos|escassos|diminutos|reduzidos|insignificantes|grandes|enormes</token>
  </antipattern>	

After I know how to fix it I will replace the words/verb with postags.

Thanks!

Using that antipattern works for me, i.e. I don’t get any errors anymore after having added it. Should I just commit it?

Yes, please commit it @dnaber, then I will know where it will be placed and will be able to replace normal words with postags.

I was testing it with the stand-alone tool but it still triggered the sentences.

Thank you!

<3

Done ([pt] add antipattern as suggested by Marco (https://forum.languagetoo… · languagetool-org/languagetool@dbb6de7 · GitHub)

@dnaber

Thank you!

I have added the postags and now it should work with all the infinite verbs followed by plural adjectives.