Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pt] Added/improved APs in rule ID:GENERAL_NUMBER_AGREEMENT_ERRORS #10872

Merged
merged 2 commits into from
Sep 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4248,20 +4248,27 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
<!--
MARCOAGPINTO inserted global antipatterns for all subrules on top using the logic (2-MAR-2023+)
-->
<antipattern>
<token>para</token>
<token regexp='yes'>tal|tanto</token>
<token postag='(SPS00:)?[DP]...[PN].+|VM...P.+' postag_regexp='yes'/>
<token postag="AQ..[PN].+|N..[PN].+|Z0.[PN].+|(SPS00:)?[DP]...[PN].+|VM...P.+" postag_regexp="yes"/>
<example>Quero para tal esses dois telemóveis.</example>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could also work with "para tanto"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

</antipattern>
<antipattern>
<token>a</token>
<token>nós</token>
<token postag="AQ..S.+|N..S.+" postag_regexp="yes"/>
<token postag='RM|RG|CS|CC|SPS00|(SPS00)?:[DP]...[SN].+|VM...S.+' postag_regexp='yes'/>
<token postag='RM|RG|CS|CC|SPS00|(SPS00:)?[DP]...[SN].+|VM...S.+' postag_regexp='yes'/>
<example>Assim que partimos, juntou-se a nós Jesus com pequeno grupo de seguidores.</example>
<example>A nós Jesus disse estar cansado de pregar.</example>
</antipattern>
<antipattern>
<token postag='VMI.3S.+' postag_regexp='yes'/>
<token postag='VM..3S.+' postag_regexp='yes'/>
<token>possível</token>
<token min='0' max='1' postag='CS|SPS00|(SPS00)?:[DP]...P.+' postag_regexp='yes'/>
<token min='0' max='1' postag='CS|SPS00|(SPS00:)?[DP]...P.+' postag_regexp='yes'/>
<token postag="AQ..P.+|NC.P.+" postag_regexp="yes"/>
<token postag='RM|RG|CS|CC|SPS00|(SPS00)?:[DP]...[SN].+' postag_regexp='yes'/>
<token postag='RM|RG|CS|CC|SPS00|(SPS00:)?[DP]...[SN].+' postag_regexp='yes'/>
<example>É possível alunos da mesma universidade e turma terem notas diferentes?</example>
<example>É possível que alunos da mesma universidade e turma tenham notas diferentes?</example>
<example>É possível a alunos da mesma universidade e turma terem notas diferentes?</example>
Expand Down