org.languagetool.rules.km
Class KhmerWordRepeatRule
java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.km.KhmerWordRepeatRule
public class KhmerWordRepeatRule
- extends Rule
Check if a word is repeated twice in Khmer, e.g. the equivalent of "the the".
- Author:
- Daniel Naber and Lee Nakamura
| Fields inherited from class org.languagetool.rules.Rule |
messages |
| 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 |
KhmerWordRepeatRule
public KhmerWordRepeatRule(ResourceBundle messages,
Language language)
ignore
public boolean ignore(AnalyzedSentence text,
AnalyzedTokenReadings[] tokensWithWhiteSpace,
int position)
getId
public String getId()
- Specified by:
getId in class Rule
getDescription
public String getDescription()
- Specified by:
getDescription in class Rule
match
public 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.