Skip to content

Commit

Permalink
[pt] Tiago Santos fixes + new rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco A.G.Pinto committed Oct 19, 2016
1 parent 5041bed commit 3db4169
Showing 1 changed file with 199 additions and 77 deletions.
Expand Up @@ -22,7 +22,7 @@ You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
$Id: grammar.xml,v 1.185 2016-10-18 06:38:00 marcoagpinto Exp $
$Id: grammar.xml,v 1.186 2016-10-19 09:13:00 marcoagpinto Exp $
-->
<rules lang="pt" xsi:noNamespaceSchemaLocation="../rules.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema">

Expand All @@ -35,6 +35,204 @@ $Id: grammar.xml,v 1.185 2016-10-18 06:38:00 marcoagpinto Exp $

<category id="MISC" name="Gramática Geral">

<!-- TIAGO F. SANTOS *START* -->
<!-- *********************** -->
<!-- *********************** -->


<!-- Concordance error plural - OS > O -->
<!-- Created by Tiago F. Santos, Portuguese rule, 2016-10-19 -->
<rule id="ERRO_DE_CONCORDNCIA_DO_MASCULINO_PLURAL_OS_O" name="Erro de concordância do masculino plural">
<pattern>
<marker>
<token postag='D[ADIP][0123]MP[0P]|NC[MC]P000|AQ0[MC]P0' postag_regexp='yes'>
<exception postag='CC|CS|RG|RN|SPS00' postag_regexp='yes'></exception>
<exception regexp="yes">[IDMVX]|[IDMVX][IDMVX]|[IDMVX][IDMVX][IDMVX]</exception>
</token>
<token postag='NC[MC]S000|AQ0[MC]S0' postag_regexp='yes'>
<exception postag='P[ID][0123][CFM][SP]000|CC|CS|RG|RN|SPS00' postag_regexp='yes'></exception>
<exception regexp="yes">há|são|ser</exception></token>
</marker>
</pattern>
<message>Erro de concordância do plural.
<suggestion><match no="1" postag="(D[ADIP][0123]MS[0S]|NC[MC]S000|AQ0[MC]S0)" postag_regexp="yes"/> <match no="2"/></suggestion> ou <suggestion><match no="1"/> <match no="2" postag="(NC[MC]P000|AQ0[MC]P0)" postag_regexp="yes"/></suggestion>.
</message>
<example correction='O cão|Os cães|Os cãos'><marker>Os cão</marker> está no pasto.</example>
</rule>



<!-- Concordance error plural - O > OS -->
<!-- Created by Tiago F. Santos, Portuguese rule, 2016-10-19 -->
<rule id="ERRO_DE_CONCORDNCIA_DO_PLURAL_O_OS" name="Erro de concordância do plural O-OS">
<pattern>
<marker>
<token postag='D[ADIP][0123]MS[0S]|NC[MC]S000|AQ0[MC]S0' postag_regexp='yes'>
<exception postag='CC|CS|RG|RN|SPS00' postag_regexp='yes'></exception>
<exception regexp="yes">há|são|ser</exception></token>
<token postag='NC[MC]P000|AQ0[MC]P0' postag_regexp='yes'>
<exception postag='P[ID][0123][CFM][SP]000|CC|CS|RG|RN|SPS00' postag_regexp='yes'></exception>
<exception regexp="yes">[IDMVX]|[IDMVX][IDMVX]|[IDMVX][IDMVX][IDMVX]</exception></token>
</marker>
</pattern>
<message>Erro de concordância do plural.
<!-- <suggestion><match no="1" postag="(D[ADIP][0123]MP[0P]|NC[MC]P000|AQ0[MC]P0)" postag_regexp="yes"/> <match no="2"/></suggestion> ou <suggestion><match no="1"/> <match no="2" postag="(NC[MC]S000|AQ0[MC]S0)" postag_regexp="yes"/></suggestion>. -->
</message>
<example correction=''><marker>O cães</marker> estão no pasto.</example>
</rule>



<!-- Concordance error plural - A > AS -->
<!-- Created by Tiago F. Santos, Portuguese rule, 2016-10-19 -->
<rule id="ERRO_DE_CONCORDNCIA_DO_FEMININO_PLURAL_A_AS" name="Erro de concordância do feminino plural">
<pattern>
<marker>
<token postag='D[ADIP][0123]FS[0S]|NC[FC]S000|AQ0[FC]S0' postag_regexp='yes'>
<exception postag='CC|CS|RG|RN' postag_regexp='yes'></exception></token>
<token postag='NC[FC]P000|AQ0[FC]P0' postag_regexp='yes'>
<exception postag='P[ID][0123][CFM][SP]000|CC|CS|RG|RN|SPS00' postag_regexp='yes'></exception></token>
</marker>
</pattern>
<message>Erro de concordância do plural:
<suggestion><match no="1" postag="(D[ADIP][0123]FP[0P]|NC[FC]P000|AQ0[FC]P0)" postag_regexp="yes"/> <match no="2"/></suggestion> ou <suggestion><match no="1"/> <match no="2" postag="(NC[FC]S000|AQ0[FC]S0)" postag_regexp="yes"/></suggestion>.
</message>
<example correction='As vacas|A vaca'><marker>A vacas</marker> são malhadas.</example>
</rule>



<!-- Concordance error plural - AS > A -->
<!-- Created by Tiago F. Santos, Portuguese rule, 2016-10-19 -->
<rule id="ERRO_DE_CONCORDNCIA_DO_FEMININO_PLURAL_AS_A" name="Erro de concordância do feminino singular">
<pattern>
<marker>
<token postag='D[ADIP][0123]FP[0P]|NC[FC]P000|AQ0[FC]P0' postag_regexp='yes'>
<exception postag='CC|CS|RG|RN|SPS00' postag_regexp='yes'></exception></token>
<token postag='NC[FC]S000|AQ0[FC]S0' postag_regexp='yes'>
<exception postag='P[ID][0123][CFM][SP]000|CC|CS|RG|RN|SPS00' postag_regexp='yes'></exception></token>
</marker>
</pattern>
<message>Erro de concordância do plural.
<suggestion><match no="1" postag="(D[ADIP][0123]FS[0S]|NC[FC]S000|AQ0[FC]S0)" postag_regexp="yes"/> <match no="2"/></suggestion> ou <suggestion><match no="1"/> <match no="2" postag="(NC[FC]P000|AQ0[FC]P0)" postag_regexp="yes"/></suggestion>.
</message>
<example correction='A vaca|As vacas'><marker>As vaca</marker> são malhadas.</example>
</rule>



<!-- Concordance error person - I + Verb -->
<!-- Created by Tiago F. Santos, Portuguese rule, 2016-10-16 -->
<rule id="ERRO_DE_CONCORDNCIA_DO_NMERO_DO_VERBO_1S" name="Erro de concordância do número do verbo">
<pattern>
<marker>
<token>eu</token>
<token min="0" max="2" postag='CS|RG|RN' postag_regexp='yes'/>
<token postag='VM[CIS][CFIMPS][23]S0|VM[CIS][CFIMPS][123]P0' postag_regexp='yes'>
<exception postag='VM[CIS][CFIMPS]1S0' postag_regexp='yes'></exception></token>
</marker>
</pattern>
<message>Erro de concordância verbal.</message>
<url>http://www.infoescola.com/portugues/concordancia-verbal/</url>
<example correction=''><marker>Eu passeiam</marker> na praia.</example>
</rule>


<!-- Concordance error person - You (Singular) + Verb -->
<!-- Created by Tiago F. Santos, Portuguese rule, 2016-10-16 -->
<rule id="ERRO_DE_CONCORDNCIA_DO_NMERO_DO_VERBO_2S" name="Erro de concordância do número do verbo">
<pattern>
<marker>
<token>tu</token>
<token min="0" max="2" postag='CS|RG|RN' postag_regexp='yes'/>
<token postag='VM[CIS][CFIMPS][13]S0|VM[CIS][CFIMPS][123]P0' postag_regexp='yes'>
<exception postag='VM[CIS][CFIMPS]2S0' postag_regexp='yes'></exception></token>
</marker>
</pattern>
<message>Erro de concordância verbal.</message>
<url>http://www.infoescola.com/portugues/concordancia-verbal/</url>
<example correction=''><marker>Tu passeiam</marker> na praia.</example>
</rule>



<!-- Concordance error person - He/She/It + Verb -->
<!-- Created by Tiago F. Santos, Portuguese rule, 2016-10-16 -->
<rule id="ERRO_DE_CONCORDNCIA_DO_NMERO_DO_VERBO_3S" name="Erro de concordância do número do verbo">
<pattern>
<marker>
<token regexp="yes">ele|ela|você</token>
<token min="0" max="2" postag='CS|RG|RN' postag_regexp='yes'/>
<token postag='VM[CIS][CFIMPS][12]S0|VM[CIS][CFIMPS][123]P0' postag_regexp='yes'>
<exception postag='VM[CIS][CFIMPS]3S0' postag_regexp='yes'></exception></token>
</marker>
</pattern>
<message>Erro de concordância verbal.</message>
<url>http://www.infoescola.com/portugues/concordancia-verbal/</url>
<example correction=''><marker>Ela passeiam</marker> na praia.</example>
</rule>



<!-- Concordance error person - We + Verb -->
<!-- Created by Tiago F. Santos, Portuguese rule, 2016-10-16 -->
<rule id="ERRO_DE_CONCORDNCIA_DO_NMERO_DO_VERBO_1P" name="Erro de concordância do número do verbo">
<pattern>
<marker>
<token>nós</token>
<token min="0" max="2" postag='CS|RG|RN' postag_regexp='yes'/>
<token postag='VM[CIS][CFIMPS][23]P0|VM[CIS][CFIMPS][123]S0' postag_regexp='yes'>
<exception postag='VM[CIS][CFIMPS]1P0' postag_regexp='yes'></exception></token>
</marker>
</pattern>
<message>Erro de concordância verbal.</message>
<url>http://www.infoescola.com/portugues/concordancia-verbal/</url>
<example correction=''><marker>Nós passeiam</marker> na praia.</example>
</rule>



<!-- Concordance error person - You (Plural) + Verb -->
<!-- Created by Tiago F. Santos, Portuguese rule, 2016-10-15 -->
<rule id="ERRO_DE_CONCORDNCIA_DO_NMERO_DO_VERBO_2P" name="Erro de concordância do número do verbo">
<pattern>
<marker>
<token>vós</token>
<token min="0" max="2" postag='CS|RG|RN' postag_regexp='yes'/>
<token postag='VM[CIS][CFIMPS][13]P0|VM[CIS][CFIMPS][123]S0' postag_regexp='yes'>
<exception postag='VM[CIS][CFIMPS]2P0' postag_regexp='yes'></exception></token>
</marker>
</pattern>
<message>Erro de concordância verbal.</message>
<url>http://www.infoescola.com/portugues/concordancia-verbal/</url>
<example correction=''><marker>Vós passeiam</marker> na praia.</example>
</rule>



<!-- Concordance error person - They + Verb -->
<!-- Created by Tiago F. Santos, Portuguese rule, 2016-10-16 -->
<rule id="ERRO_DE_CONCORDNCIA_DO_NMERO_DO_VERBO_3P" name="Erro de concordância do número do verbo">
<pattern>
<marker>
<token regexp="yes">eles|elas|vocês</token>
<token min="0" max="2" postag='CS|RG|RN' postag_regexp='yes'/>
<token postag='VM[CIS][CFIMPS][12]P0|VM[CIS][CFIMPS][123]S0' postag_regexp='yes'>
<exception postag='VM[CIS][CFIMPS]3P0' postag_regexp='yes'></exception></token>
</marker>
</pattern>
<message>Erro de concordância verbal.</message>
<url>http://www.infoescola.com/portugues/concordancia-verbal/</url>
<example correction=''><marker>Eles passeia</marker> na praia.</example>
</rule>



<!-- TIAGO F. SANTOS *END* -->
<!-- ********************* -->
<!-- ********************* -->



<!-- Concordance error plural - QUALQUER + PLURAL -->
<rule id="QUALQUER_PLURAL" name="Erro de concordância do plural QUALQUER + PLURAL">
Expand Down Expand Up @@ -226,82 +424,6 @@ $Id: grammar.xml,v 1.185 2016-10-18 06:38:00 marcoagpinto Exp $
</rule>



<!-- Concordance error plural - AS > A -->
<!-- Created by Tiago F. Santos, Portuguese rule, 2016-10-15 -->
<rule id="ERRO_DE_CONCORDNCIA_DO_FEMININO_PLURAL_AS_A" name="Erro de concordância do feminino singular">
<pattern>
<marker>
<token postag='D[AI]0FP0|NCFP000|AQ0FP0' postag_regexp='yes'>
<exception postag='CC|CS|RG|RN|SPS00' postag_regexp='yes'></exception></token>
<token postag='NCFS000|AQ0FS0' postag_regexp='yes'>
<exception postag='P[ID][0123][CFM][SP]000|CC|CS|RG|RN|SPS00' postag_regexp='yes'></exception></token>
</marker>
</pattern>
<message>Erro de concordância do plural.
<suggestion><match no="1" postag="(D[AI]0FS0|NCFS000|AQ0FS0)" postag_regexp="yes"/> <match no="2"/></suggestion> ou <suggestion><match no="1"/> <match no="2" postag="(NCFP000|AQ0FP0)" postag_regexp="yes"/></suggestion>.
</message>
<example correction='A vaca|As vacas'><marker>As vaca</marker> são malhadas.</example>
</rule>



<!-- Concordance error plural - A > AS -->
<!-- Created by Tiago F. Santos, Portuguese rule, 2016-10-15 -->
<rule id="ERRO_DE_CONCORDNCIA_DO_FEMININO_PLURAL_A_AS" name="Erro de concordância do feminino plural">
<pattern>
<marker>
<token postag='D[AI]0FS0|NCFS000|AQ0FS0' postag_regexp='yes'>
<exception postag='CC|CS|RG|RN' postag_regexp='yes'></exception></token>
<token postag='NCFP000|AQ0FP0' postag_regexp='yes'>
<exception postag='P[ID][0123][CFM][SP]000|CC|CS|RG|RN|SPS00' postag_regexp='yes'></exception></token>
</marker>
</pattern>
<message>Erro de concordância do plural:
<suggestion><match no="1" postag="(D[AI]0FP0|NCFP000|AQ0FP0)" postag_regexp="yes"/> <match no="2"/></suggestion> ou <suggestion><match no="1"/> <match no="2" postag="(NCFS000|AQ0FS0)" postag_regexp="yes"/></suggestion>.
</message>
<example correction='As vacas|A vaca'><marker>A vacas</marker> são malhadas.</example>
</rule>



<!-- Concordance error plural - OS > O -->
<!-- Created by Tiago F. Santos, Portuguese rule, 2016-10-15 -->
<rule id="ERRO_DE_CONCORDNCIA_DO_MASCULINO_PLURAL_OS_O" name="Erro de concordância do masculino plural">
<pattern>
<marker>
<token postag='D[AI]0MP0|NCMP000|AQ0MP0' postag_regexp='yes'>
<exception postag='CC|CS|RG|RN|SPS00' postag_regexp='yes'></exception></token>
<token postag='NCMS000|AQ0MS0' postag_regexp='yes'>
<exception postag='P[ID][0123][CFM][SP]000|CC|CS|RG|RN|SPS00' postag_regexp='yes'></exception></token>
</marker>
</pattern>
<message>Erro de concordância do plural.
<suggestion><match no="1" postag="(D[AI]0MS0|NCMS000|AQ0MS0)" postag_regexp="yes"/> <match no="2"/></suggestion> ou <suggestion><match no="1"/> <match no="2" postag="(NCMP000|AQ0MP0)" postag_regexp="yes"/></suggestion>.
</message>
<example correction='O cão|Os cães|Os cãos'><marker>Os cão</marker> está no pasto.</example>
</rule>



<!-- Concordance error plural - O > OS -->
<!-- Created by Tiago F. Santos, Portuguese rule, 2016-10-15 -->
<rule id="ERRO_DE_CONCORDNCIA_DO_PLURAL_O_OS" name="Erro de concordância do plural O-OS">
<pattern>
<marker>
<token postag='D[AI]0MS0|NCMS000|AQ0MS0' postag_regexp='yes'>
<exception postag='CC|CS|RG|RN|SPS00' postag_regexp='yes'></exception></token>
<token postag='NCMP000|AQ0MP0' postag_regexp='yes'>
<exception postag='P[ID][0123][CFM][SP]000|CC|CS|RG|RN|SPS00' postag_regexp='yes'></exception></token>
</marker>
</pattern>
<message>Erro de concordância do plural.
<!-- <suggestion><match no="1" postag="(D[AI]0MP0|NCMP000|AQ0MP0)" postag_regexp="yes"/> <match no="2"/></suggestion> ou <suggestion><match no="1"/> <match no="2" postag="(NCMS000|AQ0MS0)" postag_regexp="yes"/></suggestion>. -->
</message>
<example correction=''><marker>O cães</marker> estão no pasto.</example>
</rule>



<!-- Concordance error plural - A GENTE + PLURAL VERB > A GENTE + SINGULAR VERB -->
<rule id="A_GENTE-SINGULAR_PLURAL-VERB" name="Erro de concordância do plural A GENTE + SINGULAR VERB">
Expand Down

0 comments on commit 3db4169

Please sign in to comment.