public abstract class AdvancedWordRepeatRule extends Rule
Constructor and Description |
---|
AdvancedWordRepeatRule(ResourceBundle messages) |
Modifier and Type | Method and Description |
---|---|
protected abstract Pattern |
getExcludedNonWordsPattern() |
protected abstract Pattern |
getExcludedPos() |
protected abstract Set<String> |
getExcludedWordsPattern() |
protected abstract String |
getMessage() |
protected abstract String |
getShortMessage() |
RuleMatch[] |
match(AnalyzedSentence sentence)
Check whether the given sentence matches this error rule, i.e. whether it
contains the error detected by this rule.
|
addExamplePair, addTags, addToneTags, cacheAntiPatterns, estimateContextForSureMatch, getAntiPatterns, getCategory, getConfigureText, getCorrectExamples, getDefaultValue, getDescription, getDistanceTokens, getErrorTriggeringExamples, getFullId, getId, getIncorrectExamples, getLocQualityIssueType, getMaxConfigurableValue, getMinConfigurableValue, getMinPrevMatches, getSentenceWithImmunization, getSourceFile, getSubId, getTags, getToneTags, getUrl, hasConfigurableValue, hasTag, hasToneTag, isDefaultOff, isDefaultTempOff, isDictionaryBasedSpellingRule, isGoalSpecific, isOfficeDefaultOff, isOfficeDefaultOn, isPremium, makeAntiPatterns, setCategory, setCorrectExamples, setDefaultOff, setDefaultOn, setDefaultTempOff, setDistanceTokens, setErrorTriggeringExamples, setExamplePair, setGoalSpecific, setIncorrectExamples, setLocQualityIssueType, setMinPrevMatches, setOfficeDefaultOff, setOfficeDefaultOn, setPremium, setTags, setToneTags, setUrl, supportsLanguage, toRuleMatchArray, useInOffice
public AdvancedWordRepeatRule(ResourceBundle messages)
protected abstract Pattern getExcludedNonWordsPattern()
protected abstract Pattern getExcludedPos()
protected abstract String getMessage()
protected abstract String getShortMessage()
public final RuleMatch[] match(AnalyzedSentence sentence)
Rule