public class SimpleReplaceSoftRule extends AbstractSimpleReplaceRule
rules/uk/replace_soft.txt.
TODO: AbstractSimpleReplaceRule loads context as part of suggestion list
and to be able to merge contexts for different lemmas we need to extract context out
of suggestions list on every match. We may need to write our own replacement loader to make it right.ignoreTaggedWords, subRuleSpecificIds| Constructor and Description |
|---|
SimpleReplaceSoftRule(ResourceBundle messages) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription() |
String |
getId() |
String |
getMessage(String tokenStr,
List<String> replacements) |
String |
getShort() |
protected Map<String,List<String>> |
getWrongWords() |
boolean |
isCaseSensitive() |
createRuleMatch, findMatches, getLocale, getSynthesizer, isCheckLemmas, isTagged, isTokenException, loadFromPath, loadFromPath, match, setCheckLemmas, setIgnoreTaggedWords, useSubRuleSpecificIdsaddExamplePair, addTags, cacheAntiPatterns, estimateContextForSureMatch, getAntiPatterns, getCategory, getConfigureText, getCorrectExamples, getDefaultValue, getErrorTriggeringExamples, getFullId, getIncorrectExamples, getLocQualityIssueType, getMaxConfigurableValue, getMinConfigurableValue, getMinPrevMatches, getSentenceWithImmunization, getTags, getUrl, hasConfigurableValue, hasTag, isDefaultOff, isDefaultTempOff, isDictionaryBasedSpellingRule, isOfficeDefaultOff, isOfficeDefaultOn, isPremium, makeAntiPatterns, setCategory, setCorrectExamples, setDefaultOff, setDefaultOn, setDefaultTempOff, setErrorTriggeringExamples, setExamplePair, setIncorrectExamples, setLocQualityIssueType, setMinPrevMatches, setOfficeDefaultOff, setOfficeDefaultOn, setPremium, setTags, setUrl, supportsLanguage, toRuleMatchArray, useInOfficepublic SimpleReplaceSoftRule(ResourceBundle messages) throws IOException
IOExceptionprotected Map<String,List<String>> getWrongWords()
getWrongWords in class AbstractSimpleReplaceRulepublic final String getId()
getId in class AbstractSimpleReplaceRulepublic String getDescription()
getDescription in class AbstractSimpleReplaceRulepublic String getShort()
getShort in class AbstractSimpleReplaceRulepublic String getMessage(String tokenStr, List<String> replacements)
getMessage in class AbstractSimpleReplaceRulepublic boolean isCaseSensitive()
isCaseSensitive in class AbstractSimpleReplaceRule