Package org.languagetool.language

Examples of org.languagetool.language.Esperanto


public class EsperantoRuleDisambiguator extends AbstractRuleDisambiguator {

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


public class EsperantoTest {
 
  @Test
  public void test() throws IOException {
    Esperanto language = new Esperanto();
    assertThat(language.getCountries().length, is(0));
    JLanguageTool languageTool = new JLanguageTool(language);
    String input = "La Mondaj Ludoj de 2013 estis plur-sporta evento...";
    List<RuleMatch> ruleMatches = languageTool.check(input);
    assertThat(ruleMatches.size(), is(1));
    assertThat(ruleMatches.get(0).getRule().getId(), is("HUNSPELL_NO_SUGGEST_RULE"));
View Full Code Here

import org.languagetool.language.Esperanto;

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

TOP

Related Classes of org.languagetool.language.Esperanto

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.