public class SimpleReplaceVerbsRule extends Rule
rules/ca/replace_verbs.txt.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
ignoreTaggedWords |
protected Map<String,List<String>> |
wrongWords |
| Constructor and Description |
|---|
SimpleReplaceVerbsRule(ResourceBundle messages) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription() |
String |
getEncoding() |
String |
getFileName() |
String |
getId() |
Locale |
getLocale() |
String |
getMessage(String tokenStr,
List<String> replacements) |
String |
getShort() |
RuleMatch[] |
match(AnalyzedSentence sentence) |
void |
reset() |
addExamplePair, getAntiPatterns, getCategory, getCorrectExamples, getIncorrectExamples, getLocQualityIssueType, getSentenceWithImmunization, getUrl, isDefaultOff, isDictionaryBasedSpellingRule, makeAntiPatterns, setCategory, setCorrectExamples, setDefaultOff, setDefaultOn, setIncorrectExamples, setLocQualityIssueType, setUrl, supportsLanguage, toRuleMatchArray, useInOfficepublic SimpleReplaceVerbsRule(ResourceBundle messages) throws IOException
IOExceptionpublic final String getFileName()
public String getEncoding()
public String getDescription()
getDescription in class Rulepublic String getShort()
public Locale getLocale()
public final RuleMatch[] match(AnalyzedSentence sentence) throws IOException
match in class RuleIOException