Package org.languagetool.rules.km
Class KhmerSimpleReplaceRule
- java.lang.Object
-
- org.languagetool.rules.Rule
-
- org.languagetool.rules.AbstractSimpleReplaceRule2
-
- org.languagetool.rules.km.KhmerSimpleReplaceRule
-
public class KhmerSimpleReplaceRule extends org.languagetool.rules.AbstractSimpleReplaceRule2
A rule that matches words which should not be used and suggests correct ones instead. Khmer implementations. Loads the list of words from/km/coherency.txt
.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
FILE_NAME
static java.lang.String
KHMER_SIMPLE_REPLACE_RULE
private static java.util.Locale
KM_LOCALE
-
Constructor Summary
Constructors Constructor Description KhmerSimpleReplaceRule(java.util.ResourceBundle messages)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDescription()
java.lang.String
getFileName()
java.lang.String
getId()
java.util.Locale
getLocale()
java.lang.String
getShort()
java.lang.String
getSuggestion()
java.lang.String
getSuggestionsSeparator()
-
Methods inherited from class org.languagetool.rules.AbstractSimpleReplaceRule2
getWrongWords, isCaseSensitive, isException, match
-
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
-
-
-
-
Field Detail
-
KHMER_SIMPLE_REPLACE_RULE
public static final java.lang.String KHMER_SIMPLE_REPLACE_RULE
- See Also:
- Constant Field Values
-
FILE_NAME
private static final java.lang.String FILE_NAME
- See Also:
- Constant Field Values
-
KM_LOCALE
private static final java.util.Locale KM_LOCALE
-
-
Method Detail
-
getFileName
public final java.lang.String getFileName()
- Specified by:
getFileName
in classorg.languagetool.rules.AbstractSimpleReplaceRule2
-
getId
public final java.lang.String getId()
- Specified by:
getId
in classorg.languagetool.rules.AbstractSimpleReplaceRule2
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in classorg.languagetool.rules.AbstractSimpleReplaceRule2
-
getShort
public java.lang.String getShort()
- Specified by:
getShort
in classorg.languagetool.rules.AbstractSimpleReplaceRule2
-
getSuggestion
public java.lang.String getSuggestion()
- Specified by:
getSuggestion
in classorg.languagetool.rules.AbstractSimpleReplaceRule2
-
getSuggestionsSeparator
public java.lang.String getSuggestionsSeparator()
- Specified by:
getSuggestionsSeparator
in classorg.languagetool.rules.AbstractSimpleReplaceRule2
-
getLocale
public java.util.Locale getLocale()
- Specified by:
getLocale
in classorg.languagetool.rules.AbstractSimpleReplaceRule2
-
-