Marco,

I tested this rule with local mashine and community.languagetool.org:

<!-- HÁ n SEGUNDOS/MINUTOS/HORAS/DIAS/SEMANAS/MESES/ANOS ATRÁS (remove "ATRÁS") 
-->
   
    <rule id="HÁ-ATRÁS" name="há n tempo atrás">
      <pattern>
        <token>há</token>
        <token min="1" max="3" regexp="yes">[a-záãêéçôłę]{1,6}</token>
        <token 
regexp="yes">segundos?|minutos?|horas?|dias?|semanas?|mês|meses|anos?</token>
        <token>atrás</token>
      </pattern>
      <message>Com o verbo haver não é necessário usar "atrás": 
<suggestion><match no="1"/> <match no="2" include_skipped="all"/> <match 
no="3"/></suggestion>.</message>
      <example correction="Há n segundos"><marker>Há n segundos 
atrás</marker>.</example>
    </rule>

You may extend regexp in         <token min="1" max="3" 
regexp="yes">[a-záãêéçôłę]{1,6}</token>




>Среда, 17 августа 2016, 21:49 +03:00 от "Marco A.G.Pinto" 
><marcoagpi...@mail.telepac.pt>:
>
>Hello!
>
>I sent a private message to Yakov but maybe he didn't receive it,
      so I am sending it to the mailing list:
>
>The rule still gives an error:
>
>    <!-- HÁ n
          SEGUNDOS/MINUTOS/HORAS/DIAS/SEMANAS/MESES/ANOS ATRÁS (remove
          "ATRÁS") -->
>    <rule id="HÁ-ATRÁS" name="há n tempo atrás">
>      <pattern>
>        <token>há</token>
>        <token min="1" max="3"/>
>        <token
regexp="yes">segundos?|minutos?|horas?|dias?|semanas?|mês|meses|anos?</token>
>        <token>atrás</token>
>      </pattern>
>      <message>Com o verbo haver não é necessário usar
          "atrás": <suggestion><match no="1"/> <match
          no="2" include_skipped="all"/> <match no="3"
          include_skipped="none"/></suggestion>.</message>
>      <example correction="Há n
          segundos"><marker>Há n segundos
          atrás</marker>.</example>
>    </rule>
>
>TESTRULES PT says:
>
>
>What shall I do?
>
>Thanks!
>
>Kind regards from your friend,
>     >Marco A.G.Pinto
>       -----------------------
>
>
>-- 
>------------------------------------------------------------------------------
>_______________________________________________
>Languagetool-devel mailing list
>Languagetool-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/languagetool-devel


-- 

Yakov Reztsov
------------------------------------------------------------------------------
_______________________________________________
Languagetool-devel mailing list
Languagetool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-devel

Reply via email to