org.languagetool.rules.km
Class KhmerWordCoherencyRule

java.lang.Object
  extended by org.languagetool.rules.Rule
      extended by org.languagetool.rules.km.KhmerRule
          extended by org.languagetool.rules.km.KhmerWordCoherencyRule

public abstract class KhmerWordCoherencyRule
extends KhmerRule

A Khmer rule that matches words or phrases which should not be used and suggests correct ones instead. Loads the relevant words from rules/km/coherency.txt, where km is a code of the language.

Author:
Andriy Rysin

Field Summary
 
Fields inherited from class org.languagetool.rules.Rule
messages
 
Constructor Summary
KhmerWordCoherencyRule(ResourceBundle messages)
           
 
Method Summary
 String getDescription()
           
 String getId()
           
 RuleMatch[] match(AnalyzedSentence text)
           
 void reset()
           
 
Methods inherited from class org.languagetool.rules.Rule
addRuleMatch, clearMatches, getCategory, getCorrectExamples, getIncorrectExamples, getLocQualityIssueType, getMatches, getMatchesIndex, getUrl, isDefaultOff, isInMatches, isInRemoved, isParagraphBackTrack, isSpellingRule, setAsDeleted, setCategory, setCorrectExamples, setDefaultOff, setIncorrectExamples, setLocQualityIssueType, setParagraphBackTrack, setUrl, supportsLanguage, toRuleMatchArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KhmerWordCoherencyRule

public KhmerWordCoherencyRule(ResourceBundle messages)
                       throws IOException
Throws:
IOException
Method Detail

getId

public String getId()
Specified by:
getId in class Rule

getDescription

public String getDescription()
Specified by:
getDescription in class Rule

match

public final RuleMatch[] match(AnalyzedSentence text)
Specified by:
match in class Rule

reset

public void reset()
Specified by:
reset in class Rule


Copyright © 2013. All Rights Reserved.