Package org.languagetool.language

Examples of org.languagetool.language.Russian


public class RussianCompoundRuleTest extends CompoundRuleTestAbs {

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


  public void testRule() throws IOException {
    RussianSimpleReplaceRule rule = new RussianSimpleReplaceRule(TestTools.getMessages("ru"));

    RuleMatch[] matches;
    JLanguageTool langTool = new JLanguageTool(new Russian());
   
    // correct sentences:
    matches = rule.match(langTool.getAnalyzedSentence("Рост кораллов тут самый быстрый,"));
    assertEquals(0, matches.length);
   
View Full Code Here

public class RussianUnpairedBracketsRuleTest extends TestCase {

  public void testRulePolish() throws IOException {
    RussianUnpairedBracketsRule rule = new RussianUnpairedBracketsRule(TestTools
        .getEnglishMessages(), new Russian());
    RuleMatch[] matches;
    JLanguageTool langTool = new JLanguageTool(new Russian());
    // correct sentences:
    matches = rule.match(langTool
        .getAnalyzedSentence("(О жене и детях не беспокойся, я беру их на свои руки)."));
    assertEquals(0, matches.length);
    // correct sentences:
View Full Code Here

    tagger = new RussianTagger();
    tokenizer = new WordTokenizer();
  }

  public void testDictionary() throws IOException {
    TestTools.testDictionary(tagger, new Russian());
  }
View Full Code Here

public class RussianRuleDisambiguator extends AbstractRuleDisambiguator {

  @Override
  protected Language getLanguage() {
    return new Russian();
  }
View Full Code Here

    tagger = new RussianTagger();
    tokenizer = new WordTokenizer();
  }

  public void testDictionary() throws IOException {
    TestTools.testDictionary(tagger, new Russian());
  }
View Full Code Here

public class RussianCompoundRuleTest extends AbstractCompoundRuleTest {

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

  public void testRule() throws IOException {
    RussianSimpleReplaceRule rule = new RussianSimpleReplaceRule(TestTools.getMessages("ru"));

    RuleMatch[] matches;
    JLanguageTool langTool = new JLanguageTool(new Russian());

    // correct sentences:
    matches = rule.match(langTool.getAnalyzedSentence("Рост кораллов тут самый быстрый,"));
    assertEquals(0, matches.length);
View Full Code Here

public class RussianUnpairedBracketsRuleTest extends TestCase {

  public void testRuleRussian() throws IOException {
    RussianUnpairedBracketsRule rule = new RussianUnpairedBracketsRule(TestTools
        .getEnglishMessages(), new Russian());
    RuleMatch[] matches;
    JLanguageTool langTool = new JLanguageTool(new Russian());
    // correct sentences:
    matches = rule.match(Collections.singletonList(langTool
        .getAnalyzedSentence("(О жене и детях не беспокойся, я беру их на свои руки).")));
    assertEquals(0, matches.length);
    // correct sentences:
View Full Code Here

import org.languagetool.language.Russian;

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

TOP

Related Classes of org.languagetool.language.Russian

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.