This weekend I created PoC code for "exclusive" flag on rule group and
it worked just fine, but I realized that the rule check is run on the
whole sentence so if the same mistake is occurring more than once in a
sentence by triggering different rules in a rule group the latter
mistakes won't be caught.
I guess I have to scrap this idea...

Andriy

2014-11-14 16:45 GMT-05:00 Andriy Rysin <ary...@gmail.com>:
> Thanks I looked at the code and I think SameRuleGroupFilter did not
> take care of the case as in my rules markers were different (depending
> on a case either first or second word was marked).
>
> Andriy
>
> 2014-11-14 16:37 GMT-05:00 Daniel Naber <daniel.na...@languagetool.org>:
>> On 2014-11-14 19:35, Andriy Rysin wrote:
>>
>>> Currently it looks like all rules are being matched which
>>> a) forces me to add conditions to prevent those rules from overlapping
>>> b) slows down the check
>>
>> SameRuleGroupFilter should take care of a), i.e. it should remove
>> duplicate matches. The only reason I know that prevents it from working
>> is if all rules actually have their own ID, instead of the same one
>> inherited from the <rulegroup>.
>>
>> 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://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Languagetool-devel mailing list
>> Languagetool-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/languagetool-devel

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Languagetool-devel mailing list
Languagetool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-devel

Reply via email to