Package org.languagetool.language

Examples of org.languagetool.language.Breton


public class BretonRuleDisambiguator extends AbstractRuleDisambiguator {

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


public class MorfologikBretonSpellerRuleTest {

  @Test
  public void testMorfologikSpeller() throws IOException {
    final MorfologikBretonSpellerRule rule =
            new MorfologikBretonSpellerRule (TestTools.getMessages("Breton"), new Breton());

    RuleMatch[] matches;
    final JLanguageTool langTool = new JLanguageTool(new Breton());

    // correct sentences:
    assertEquals(0, rule.match(langTool.getAnalyzedSentence("Penaos emañ kont ganit?")).length);

    assertEquals(0, rule.match(langTool.getAnalyzedSentence("C'hwerc'h merc'h gwerc'h war c'hwerc'h marc'h kalloc'h")).length);
View Full Code Here

import org.languagetool.language.Breton;

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

public class MorfologikBretonSpellerRuleTest {

  @Test
  public void testMorfologikSpeller() throws IOException {
    final MorfologikBretonSpellerRule rule =
            new MorfologikBretonSpellerRule (TestTools.getMessages("br"), new Breton());

    RuleMatch[] matches;
    final JLanguageTool langTool = new JLanguageTool(new Breton());

    // correct sentences:
    assertEquals(0, rule.match(langTool.getAnalyzedSentence("Penaos emañ kont ganit?")).length);

    assertEquals(0, rule.match(langTool.getAnalyzedSentence("C'hwerc'h merc'h gwerc'h war c'hwerc'h marc'h kalloc'h")).length);
View Full Code Here

*/
public class TopoReplaceRuleTest extends TestCase {

  public void testRule() throws IOException {
    TopoReplaceRule rule = new TopoReplaceRule(null);
    JLanguageTool langTool = new JLanguageTool(new Breton());

    // Wrong sentences.
    assertEquals(1, rule.match(langTool.getAnalyzedSentence("France a zo ur vro.")).length);

    // Correct sentences.
View Full Code Here

TOP

Related Classes of org.languagetool.language.Breton

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.