Having done some further testing, I can confirm that using
two separate tokens with both min tags will not work, however they can be
combined into a single regexp, ie:
*<pattern>*
* <token postag="MD"/>*
* <token min="0" postag_regexp="yes" postag="PRP|TO"/>*
* <marker>*
* <token>of</token>*
* </marker>*
*</pattern>*
this appears to be a working solution to this.
Thanks for the help,
Jon.
*From: **Daniel Naber* <daniel.na...@languagetool.org>
Date: Wed, Oct 15, 2014 at 11:19 AM
Subject: Re: Using min attribute issue: fails to find match
To: development discussion for LanguageTool <
languagetool-devel@lists.sourceforge.net>
On 2014-10-15 11:53, Jonathon Churchill wrote:
> this will pick up the above grammatical error. Does anyone understand
> why this happens? I thought min="0" means that they don't have to be
> there and the rule will still work?
Does it work if only one token has the min="0" attribute? If so, then
this is probably a bug (unfortunately in a very convoluted part of the
code).
Regards
Daniel
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
Languagetool-devel mailing list
Languagetool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-devel