Package org.languagetool.language

Examples of org.languagetool.language.Slovak


public class SlovakVesRuleTest extends TestCase {

  public void testRule() throws IOException {
    final SlovakVesRule rule = new SlovakVesRule(null);
    RuleMatch[] matches;
    JLanguageTool langTool = new JLanguageTool(new Slovak());

    //correct
    matches = rule.match(langTool.getAnalyzedSentence("Navštívil Záhorskú Ves."));
    assertEquals(0, matches.length);
    matches = rule.match(langTool.getAnalyzedSentence("Aj v Karlovej Vesi sme doma."));
View Full Code Here


public class CompoundRuleTest extends CompoundRuleTestAbs {

  @Override
  protected void setUp() throws Exception {
    super.setUp();
    langTool = new JLanguageTool(new Slovak());
    rule = new CompoundRule(null);
  }
View Full Code Here

import org.languagetool.language.Slovak;

public class SlovakConcurrencyTest extends AbstractLanguageConcurrencyTest {
  @Override
  protected Language createLanguage() {
    return new Slovak();
  }
View Full Code Here

    tagger = new SlovakTagger();
    tokenizer = new WordTokenizer();
  }
 
  public void testDictionary() throws IOException {
    TestTools.testDictionary(tagger, new Slovak());
  }
View Full Code Here

public class CompoundRuleTest extends AbstractCompoundRuleTest {

  @Override
  protected void setUp() throws Exception {
    super.setUp();
    langTool = new JLanguageTool(new Slovak());
    rule = new CompoundRule(null);
  }
View Full Code Here

TOP

Related Classes of org.languagetool.language.Slovak

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.