Hello!

How do I create a rule that asks to remove the word "atrás" when "há" is used since it is redundant?

The rule in English for example would be:
"10 days ago" -> "há 10 dias atrás"

The verb "há" in Portuguese removes the need to use "atrás".

I triggered here the plural and singular forms of time.

I just need to know how to make the rule suggest the removal of "atrás".


<!-- HÁ n SEGUNDOS/MINUTOS/HORAS/DIAS/MESES/ANOS ATRÁS (remove "ATRÁS") -->
    <rule id="HÁ-ATRÁS" name="há n tempo atrás">
      <pattern>
        <token>há</token>
        <token></token> ; HOW TO MAKE IT ACCEPT ANY WORD HERE?
<token regexp="yes">segundos?|minutos?|horas?|dias?|mês|meses|anos?</token>
        <token>atrás</token>
      </pattern>
<message>O verbo haver remove a necessidade de usar "atrás".</message>
      <example correction="???????????">?????????????</example>
    </rule>


Thanks!

Kind regards,
      >Marco A.G.Pinto
        ----------------------


--
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Languagetool-devel mailing list
Languagetool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-devel

Reply via email to