Package org.languagetool.language

Examples of org.languagetool.language.Khmer


public class KhmerRuleDisambiguator extends AbstractRuleDisambiguator {

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


* @author Nathan Wells
*/
public class KhmerSpaceBeforeRuleTest extends TestCase {

    public void testSpaceBeforeRule() throws IOException {
        final Khmer language = new Khmer();
        KhmerSpaceBeforeRule rule = new KhmerSpaceBeforeRule(TestTools.getEnglishMessages(), language);
        JLanguageTool langTool = new JLanguageTool(language);
        // correct sentences:
        assertEquals(0, rule.match(langTool.getAnalyzedSentence("គាត់​បាន​ទៅ ដើម្បី​ទិញ​ម្ហូប។")).length);
        assertEquals(0, rule.match(langTool.getAnalyzedSentence("ខ្ញុំ និង​គាត់។")).length);
View Full Code Here

* @author Nathan Wells
*/
public class KhmerWordRepeatRuleTest extends TestCase {

    public void testWordRepeatRule() throws IOException {
        final Khmer language = new Khmer();
        KhmerWordRepeatRule rule = new KhmerWordRepeatRule(TestTools.getEnglishMessages(), language);
        JLanguageTool langTool = new JLanguageTool(language);
        // correct sentences:
        assertEquals(0, rule.match(langTool.getAnalyzedSentence("នេះ​ហើយៗ​នោះ។")).length);
        assertEquals(0, rule.match(langTool.getAnalyzedSentence("គាត់​ហើយ ហើយ​ខ្ញុំ។")).length);
View Full Code Here

* @author Nathan Wells
*/
public class KhmerSpaceBeforeRuleTest extends TestCase {

  public void testSpaceBeforeRule() throws IOException {
    final Khmer language = new Khmer();
    KhmerSpaceBeforeRule rule = new KhmerSpaceBeforeRule(TestTools.getEnglishMessages(), language);
    JLanguageTool langTool = new JLanguageTool(language);
    // correct sentences:
    assertEquals(0, rule.match(langTool.getAnalyzedSentence("គាត់​បាន​ទៅ ដើម្បី​ទិញ​ម្ហូប។")).length);
    assertEquals(0, rule.match(langTool.getAnalyzedSentence("ខ្ញុំ និង​គាត់។")).length);
View Full Code Here

* @author Nathan Wells
*/
public class KhmerWordRepeatRuleTest extends TestCase {

  public void testWordRepeatRule() throws IOException {
    final Khmer language = new Khmer();
    KhmerWordRepeatRule rule = new KhmerWordRepeatRule(TestTools.getEnglishMessages(), language);
    JLanguageTool langTool = new JLanguageTool(language);
    // correct sentences:
    assertEquals(0, rule.match(langTool.getAnalyzedSentence("នេះ​ហើយៗ​នោះ។")).length);
    assertEquals(0, rule.match(langTool.getAnalyzedSentence("គាត់​ហើយ ហើយ​ខ្ញុំ។")).length);
View Full Code Here

import org.languagetool.language.Khmer;

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

TOP

Related Classes of org.languagetool.language.Khmer

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.