On 2015-12-10 00:41, Graeme West wrote: > testEnglish(org.languagetool.JLanguageToolTest) Time elapsed: 0.142 > sec <<< FAILURE! > junit.framework.AssertionFailedError: expected:<0> but was:<1>
It's not your rule that fails here but a test in JLanguageToolTest which has more than 25 words in a sentence: assertEquals(0, tool.check("And the few must win what the many lose, for the opposite arrangement would not support markets as we know them at all, and is, in fact, unimaginable.").size()); Usually XML rules don't interfere with other tests, but this is an exception, so you'll need to adapt the Java test. Actually, LT has a check for long sentences (LongSentenceRule, in the settings as "Readability: sentence over 40 words") but it's off by default and the number of words cannot be configured. Regards Daniel ------------------------------------------------------------------------------ _______________________________________________ Languagetool-devel mailing list Languagetool-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-devel