languagetool icon indicating copy to clipboard operation
languagetool copied to clipboard

[pt] Another disambiguator enhancement

Open marcoagpinto opened this issue 2 years ago • 0 comments

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!

marcoagpinto avatar Aug 01 '22 03:08 marcoagpinto