use of org.languagetool.language.Catalan in project languagetool by languagetool-org.
the class ReplaceOperationNamesRuleTest method testPositions.
@Test
public void testPositions() throws IOException {
final AccentuationCheckRule rule = new AccentuationCheckRule(TestTools.getEnglishMessages());
final RuleMatch[] matches;
final JLanguageTool langTool = new JLanguageTool(new Catalan());
matches = rule.match(langTool.getAnalyzedSentence("Són circumstancies extraordinà ries."));
assertEquals(4, matches[0].getFromPos());
assertEquals(18, matches[0].getToPos());
}
use of org.languagetool.language.Catalan in project languagetool by languagetool-org.
the class ReplaceOperationNamesRuleTest method setUp.
@Before
public void setUp() throws IOException {
rule = new ReplaceOperationNamesRule(TestTools.getEnglishMessages());
langTool = new JLanguageTool(new Catalan());
}
use of org.languagetool.language.Catalan in project languagetool by languagetool-org.
the class SimpleReplaceRuleTest method setUp.
@Before
public void setUp() throws Exception {
rule = new SimpleReplaceRule(TestTools.getMessages("ca"));
langTool = new JLanguageTool(new Catalan());
}
use of org.languagetool.language.Catalan in project languagetool by languagetool-org.
the class SimpleReplaceVerbsRuleTest method setUp.
@Before
public void setUp() throws Exception {
rule = new SimpleReplaceVerbsRule(TestTools.getMessages("ca"));
langTool = new JLanguageTool(new Catalan());
}
use of org.languagetool.language.Catalan in project languagetool by languagetool-org.
the class CatalanDisambiguationRuleTest method setUp.
@Before
public void setUp() {
tagger = new CatalanTagger();
tokenizer = new CatalanWordTokenizer();
sentenceTokenizer = new SRXSentenceTokenizer(new Catalan());
disambiguator = new MultiWordChunker("/ca/multiwords.txt", true);
}
Aggregations