Examples of Dutch


Examples of com.dawidweiss.carrot.util.tokenizer.languages.dutch.Dutch

          // carrot2-stemmer-lametyzator.jar, put it in classpath
          // and add new Polish() below.
          new Language[]
          {
            new English(),
            new Dutch(),
            new French(),
            new German(),
            new Italian(),
            new Spanish()
          }, defaults);
View Full Code Here

Examples of com.dawidweiss.carrot.util.tokenizer.languages.dutch.Dutch

          // carrot2-stemmer-lametyzator.jar, put it in classpath
          // and add new Polish() below.
          new Language[]
          {
            new English(),
            new Dutch(),
            new French(),
            new German(),
            new Italian(),
            new Spanish()
          }, defaults);
View Full Code Here

Examples of org.languagetool.language.Dutch

public class DutchRuleDisambiguator extends AbstractRuleDisambiguator {

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

Examples of org.languagetool.language.Dutch

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

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

Examples of org.languagetool.language.Dutch

  private GenericUnpairedBracketsRule rule;
  private JLanguageTool langTool;
 
  public void testDutchRule() throws IOException {
    setUpRule(new Dutch());
    // correct sentences:
    assertMatches("Het centrale probleem van het werk is de ‘dichterlijke kuischheid’.", 0);
    //this was a bug as there are several pairs that start with the same char:
    assertMatches(" Eurlings: “De gegevens van de dienst zijn van cruciaal belang voor de veiligheid van de luchtvaart en de scheepvaart”.", 0);
    assertMatches(" Eurlings: \u201eDe gegevens van de dienst zijn van cruciaal belang voor de veiligheid van de luchtvaart en de scheepvaart\u201d.", 0);
View Full Code Here

Examples of org.languagetool.language.Dutch

import java.io.IOException;

public class JLanguageToolTest extends TestCase {

  public void testDutch() throws IOException {
    final JLanguageTool tool = new JLanguageTool(new Dutch());
    tool.activateDefaultPatternRules();
    assertEquals(0, tool.check("Een test, die geen fouten mag geven.").size());
    assertEquals(1, tool.check("Een test test, die een fout moet geven.").size());
    assertEquals(1, tool.check("Dit is fout.!").size());
    //test uppercasing rule:
View Full Code Here

Examples of org.languagetool.language.Dutch

import org.languagetool.language.Dutch;

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

Examples of org.languagetool.language.Dutch

import java.io.IOException;

public class JLanguageToolTest extends TestCase {

  public void testDutch() throws IOException {
    final JLanguageTool tool = new JLanguageTool(new Dutch());
    tool.activateDefaultPatternRules();
    assertEquals(0, tool.check("Een test, die geen fouten mag geven.").size());
    assertEquals(1, tool.check("Dit is fout.!").size());
    //test uppercasing rule:
    /* 
View Full Code Here

Examples of org.languagetool.language.Dutch

public class MorfologikDutchSpellerRuleTest {
 
  @Test
  public void testSpeller() throws IOException {
    Dutch language = new Dutch();
    MorfologikDutchSpellerRule rule = new MorfologikDutchSpellerRule(TestTools.getEnglishMessages(), language);
    JLanguageTool langTool = new JLanguageTool(language);

    assertEquals(0, rule.match(langTool.getAnalyzedSentence("Amsterdam")).length);
    assertEquals(0, rule.match(langTool.getAnalyzedSentence("ipv")).length)// in ignore.txt
View Full Code Here

Examples of org.languagetool.language.Dutch

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

  public void testDictionary() throws IOException {
    TestTools.testDictionary(tagger, new Dutch());
  }
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.