On 2015-09-04 23:21, Dominique Pellé wrote:

> I wish I could write a rule pattern like this:
> 
>       <tokens>plein temps#chaque fois#rude épreuve#vol
> d’oiseau</tokens>

What about a more radical approach (which would be trickier to 
implement):

<token>a</token>
<regex>plein temps|chaque fois|rude épreuve|vol d’oiseau</regex>

Then you could even write:

<regex>a (plein temps|chaque fois|rude épreuve|vol d’oiseau)</regex>

But I'm not sure if this is a good idea.

I like your idea, just the "#" as a separator doesn't seem very natural. 
Maybe we can find a better one, I can't think of one yet. Also, your 
approach could be implemented like the <or>, i.e. internally expand a 
rule to many rules.

Regards
  Daniel


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

Reply via email to