public class KhmerSimpleReplaceRule extends Rule
/km/coherency.txt.AbstractSimpleReplaceRule eventually and simply extend from AbstractSimpleReplaceRule.| Modifier and Type | Field and Description |
|---|---|
static String |
KHMER_SIMPLE_REPLACE_RULE |
| Constructor and Description |
|---|
KhmerSimpleReplaceRule(ResourceBundle messages) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription() |
String |
getEncoding() |
String |
getFileName() |
String |
getId()
An ASCII-only string used to identify the rule in e.g. configuration files.
|
Locale |
getLocale()
locale used on case-conversion
|
String |
getShort() |
String |
getSuggestion() |
String |
getSuggestionsSeparator() |
List<Map<String,String>> |
getWrongWords() |
boolean |
isCaseSensitive()
use case-insensitive matching.
|
RuleMatch[] |
match(AnalyzedSentence text)
Check whether the given text matches this error rule, i.e. whether the text
contains this error.
|
void |
reset()
If a rule keeps its state over more than the check of one sentence, this
must be implemented so the internal state is reset.
|
addRuleMatch, clearMatches, getCategory, getCorrectExamples, getIncorrectExamples, getMatches, getMatchesIndex, isDefaultOff, isInMatches, isInRemoved, isParagraphBackTrack, setAsDeleted, setCategory, setCorrectExamples, setDefaultOff, setIncorrectExamples, setParagraphBackTrack, supportsLanguagepublic static final String KHMER_SIMPLE_REPLACE_RULE
public KhmerSimpleReplaceRule(ResourceBundle messages)
throws IOException
IOExceptionpublic final String getFileName()
public final String getId()
Rulepublic String getDescription()
getDescription in class Rulepublic String getShort()
public String getSuggestion()
public String getSuggestionsSeparator()
public boolean isCaseSensitive()
public Locale getLocale()
public String getEncoding()
public List<Map<String,String>> getWrongWords()
public RuleMatch[] match(AnalyzedSentence text)
RuleCopyright © 2005-2011 Daniel Naber