Package org.languagetool.language

Examples of org.languagetool.language.Japanese


import java.io.IOException;

public class JLanguageToolTest extends TestCase {

  public void testJapanese() throws IOException {
    final JLanguageTool tool = new JLanguageTool(new Japanese());
    tool.activateDefaultPatternRules();
    assertEquals(0, tool.check("エラーを含まないテスト文です。").size());
    assertEquals(1, tool.check("エラーお含むテスト文です。").size());
  }
View Full Code Here


import org.languagetool.language.Japanese;

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

TOP

Related Classes of org.languagetool.language.Japanese

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.