languagetool
languagetool copied to clipboard
[pt] Another disambiguator enhancement
Hello @jaumeortola
I have been working on the pt-PT rulegroup: POSSESSIVE_WITHOUT_ARTICLE
But the disambiguator turns AQ.+ into NC.+.
For example: “Meus queridos amigos!”
“queridos” is turned into a noun, so my new antipattern doesn't work.
Could you enhance the disambiguator for DP.+?
Here is the antipattern I was trying to code:
<!-- MARCOAGPINTO 2022-07-31 (Checked/Enhanced) (25-JUL-2022+) *START* -->
<antipattern>
<token postag='SENT_START'/>
<token min="0" max="2" postag='CC|_PUNCT' postag_regexp='yes'/>
<token postag='DP1.+' postag_regexp='yes'/>
<token postag='AQ.+' postag_regexp='yes'/>
<token min="0" max="2" postag='AQ.+|NC.+|NP.+' postag_regexp='yes'/>
<token postag='SENT_END|_PUNCT|CC' postag_regexp='yes'/>
</antipattern>
<!-- MARCOAGPINTO 2022-07-31 (Checked/Enhanced) (25-JUL-2022+) *END* -->
Thanks!