public class MorfologikCatalanSpellerRuleTest {
@Test
public void testMorfologikSpeller() throws IOException {
MorfologikCatalanSpellerRule rule =
new MorfologikCatalanSpellerRule (TestTools.getMessages("ca"), new Catalan());
RuleMatch[] matches;
JLanguageTool langTool = new JLanguageTool(new Catalan());
// prefixes and suffixes.
assertEquals(0, rule.match(langTool.getAnalyzedSentence("S'autodefineixin com a populars.")).length);
//assertEquals(0, rule.match(langTool.getAnalyzedSentence("Redibuixen el futur.")).length);
assertEquals(0, rule.match(langTool.getAnalyzedSentence("L'exdirigent del partit.")).length);