Hello, 
I tested this rule on community.languagetool.org, and it no display any error.
But   TESTRULES PT displays error if <suggestion> is not specified.

That is full example:


<!-- Concordance error plural - A + FEMALE PLURAL + SINGULAR VERB -->
    <rule id="A_FEMALE-PLURAL_SINGULAR-VERB" name="Erro de concordância do 
plural A + FEMALE PLURAL + SINGULAR VERB">
      <pattern>
        <token>a</token>
        <marker>
            <token postag="NCFP000"></token>
         </marker>
         <token postag="VMIP3S0"></token>
     </pattern>
     <message>Erro de concordância do plural: <suggestion><match no="2" 
regexp_match="(.*)(s)" regexp_replace="$1"/></suggestion></message>
     <example correction='vaca'>A <marker>vacas</marker> come no 
pasto.</example>   
    </rule> 


>Воскресенье, 17 января 2016, 12:26 UTC от "Marco A.G.Pinto" :
>
>Hello!
>
>I was messaging Yakov in private but decided to send it to the ML
      with more details.
>
>I was trying to create the following rule:
>" A  vacas  come  no pasto"
>
>So that it would suggest:
>" A  vaca  come  no pasto"
>
>"vacas" is a female plural noun and the error is to tell people to
      change the noun to singular "vaca" because it has a "a" (singular)
      before and a 3rd person singular verb after it.
>
>But, it must work with all female nouns, thus the  <token
        postag="NCFP000"></token> .
>
>There must a way of highlighting the plural noun and tell people
      to change it to singular.
>
>
>
>This is what I am trying to do.
>
>Based on this rule, I can then create other kind of important
      rules.
>
>The rule gives an error with  TESTRULES PT :
>
>    <!-- Concordance error plural - A + FEMALE PLURAL +
      SINGULAR VERB -->
>    <rule id="A_FEMALE-PLURAL_SINGULAR-VERB" name="Erro de
      concordância do plural A + FEMALE PLURAL + SINGULAR VERB">
>      <pattern>
>        <token>a</token>
>        <marker>
>            <token postag="NCFP000"></token>
>         </marker>
>         <token postag="VMIP3S0"></token>
>     </pattern>
>     <message>Erro de concordância do
      plural.</message>
>     <example>A <marker>vaca</marker> come no
      pasto.</example>    
>    </rule> 
>
>
>How can I fix it?
>
>Thanks!
>
>Kind regards,
>       >Marco A.G.Pinto
>          ----------------------
>
>
>-- 
>------------------------------------------------------------------------------
>Site24x7 APM Insight: Get Deep Visibility into Application Performance
>APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
>Monitor end-to-end web transactions and take corrective actions now
>Troubleshoot faster and improve end-user experience. Signup Now!
>http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
>_______________________________________________
>Languagetool-devel mailing list
>Languagetool-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/languagetool-devel


-- 

Yakov Reztsov
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Languagetool-devel mailing list
Languagetool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-devel

Reply via email to