Package org.languagetool.rules.km
Class KhmerWordRepeatRule
java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.km.KhmerWordRepeatRule
public class KhmerWordRepeatRule
extends org.languagetool.rules.Rule
Check if a word is repeated in Khmer, e.g. the equivalent of "the the".
-
Field Summary
Fields inherited from class org.languagetool.rules.Rule
messages
-
Constructor Summary
ConstructorsConstructorDescriptionKhmerWordRepeatRule
(ResourceBundle messages, org.languagetool.Language language) -
Method Summary
Methods inherited from class org.languagetool.rules.Rule
addExamplePair, estimateContextForSureMatch, getAntiPatterns, getCategory, getConfigureText, getCorrectExamples, getDefaultValue, getErrorTriggeringExamples, getIncorrectExamples, getLocQualityIssueType, getMaxConfigurableValue, getMinConfigurableValue, getSentenceWithImmunization, getUrl, hasConfigurableValue, isDefaultOff, isDefaultTempOff, isDictionaryBasedSpellingRule, isOfficeDefaultOff, isOfficeDefaultOn, makeAntiPatterns, setCategory, setCorrectExamples, setDefaultOff, setDefaultOn, setDefaultTempOff, setErrorTriggeringExamples, setIncorrectExamples, setLocQualityIssueType, setOfficeDefaultOff, setOfficeDefaultOn, setUrl, supportsLanguage, toRuleMatchArray, useInOffice
-
Constructor Details
-
KhmerWordRepeatRule
-
-
Method Details
-
getId
- Specified by:
getId
in classorg.languagetool.rules.Rule
-
getDescription
- Specified by:
getDescription
in classorg.languagetool.rules.Rule
-
match
public org.languagetool.rules.RuleMatch[] match(org.languagetool.AnalyzedSentence sentence) - Specified by:
match
in classorg.languagetool.rules.Rule
-
isWord
-
ignore
private boolean ignore(org.languagetool.AnalyzedSentence sentence, org.languagetool.AnalyzedTokenReadings[] tokensWithWhiteSpace, int position)
-