Examples of Japanese


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

Examples of org.languagetool.language.Japanese

import org.languagetool.language.Japanese;

public class JapaneseConcurrencyTest extends AbstractLanguageConcurrencyTest {
  @Override
  protected Language createLanguage() {
    return new Japanese();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.