use of org.languagetool.JLanguageTool in project languagetool by languagetool-org.
the class ReflexiveVerbsRuleTest method setUp.
@Before
public void setUp() throws IOException {
rule = new ReflexiveVerbsRule(TestTools.getEnglishMessages());
langTool = new JLanguageTool(new Catalan());
}
use of org.languagetool.JLanguageTool in project languagetool by languagetool-org.
the class AgreementRuleTest method testRegression.
@Test
public void testRegression() throws IOException {
JLanguageTool lt = new JLanguageTool(new GermanyGerman());
// used to be not detected > 1.0.1:
String str = "Und so.\r\nDie Bier.";
List<RuleMatch> matches = lt.check(str);
assertEquals(1, matches.size());
}
use of org.languagetool.JLanguageTool in project languagetool by languagetool-org.
the class AgreementRuleTest method setUp.
@Before
public void setUp() throws IOException {
rule = new AgreementRule(TestTools.getMessages("de"), new GermanyGerman());
lt = new JLanguageTool(new GermanyGerman());
}
use of org.languagetool.JLanguageTool in project languagetool by languagetool-org.
the class CompoundRuleTest method setUp.
@Before
public void setUp() throws Exception {
lt = new JLanguageTool(new German());
rule = new CompoundRule(TestTools.getMessages("de"));
}
use of org.languagetool.JLanguageTool in project languagetool by languagetool-org.
the class SimpleReplaceBalearicRuleTest method setUp.
@Before
public void setUp() throws Exception {
rule = new SimpleReplaceBalearicRule(TestTools.getMessages("ca"));
langTool = new JLanguageTool(new Catalan());
}
Aggregations