Jaume Ortolà i Font <jaumeort...@gmail.com> wrote:

Marco,
>
> You have a token with vela/velas and then another with bandeira/bandeiras.
> The rule expects a sentence like "arrrear a vela bandeira".
>
> Instead of
>
>          <token regexp="yes">vela|velas</token>
>          <token regexp="yes">bandeira|bandeiras</token>
>
> Use
>
>          <token regexp="yes">vela|velas|bandeira|bandeiras</token>
>
>
The regexp here can be made more efficient using:

  <token regexp="yes">velas?|bandeiras?</token>

? means that the letter before it is present 0 or 1 time.

Regards
Dominique
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Languagetool-devel mailing list
Languagetool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-devel

Reply via email to