Thanks, I will try it tomorrow :)

On 02-10-2012 23:27, Dominique Pellé wrote:
Hi Marco

To match any token is simple: just use <token/>.  I don't speak
Portuguese, but if I understood correctly from your example,
then the following rule should do what you want:

<rule id="A_XXX_DE_VOCES" name="a XXX de vocês -> a vossa XXX">
  <pattern>
    <token>a</token>
    <token/>
    <token>de</token>
    <token>vocês</token>
  </pattern>
  <message>Did you mean <suggestion>\1 vossa \2</suggestion>?</message>
  <example type="incorrect">A opinião de vocês</example>
  <example type="correct">a vossa opinião</example>
</rule>

No need for Java rules for this as the subject of the email suggested.

Regards
-- Dominique


--
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Languagetool-devel mailing list
Languagetool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-devel

Reply via email to