public abstract class AbstractFillerWordsRule extends TextLevelRule
| Constructor and Description |
|---|
AbstractFillerWordsRule(ResourceBundle messages,
Language lang,
UserConfig userConfig) |
AbstractFillerWordsRule(ResourceBundle messages,
Language lang,
UserConfig userConfig,
boolean defaultActive) |
| Modifier and Type | Method and Description |
|---|---|
String |
getConfigureText()
Overwrite this to define the Text in the option panel for the configurable value
|
int |
getDefaultValue()
Overwrite this to get a default Integer value by option panel
|
String |
getDescription()
A short description of the error this rule can detect, usually in the language of the text
that is checked.
|
String |
getId()
A string used to identify the rule in e.g. configuration files.
|
int |
getMaxConfigurableValue()
Overwrite this to define the maximum of a configurable value
|
String |
getMessage() |
int |
getMinConfigurableValue()
Overwrite this to define the minimum of a configurable value
|
boolean |
hasConfigurableValue()
Overwrite this to return true, if a value may be configured by option panel
|
protected boolean |
isException(AnalyzedTokenReadings[] tokens,
int num) |
protected abstract boolean |
isFillerWord(String token) |
RuleMatch[] |
match(List<AnalyzedSentence> sentences) |
int |
minToCheckParagraph()
Gives back the minimum number of paragraphs to check to give back a correct result.
|
estimateContextForSureMatch, match, matchaddExamplePair, addTags, addToneTags, cacheAntiPatterns, getAntiPatterns, getCategory, getCorrectExamples, getDistanceTokens, getErrorTriggeringExamples, getFullId, getIncorrectExamples, getLocQualityIssueType, getMinPrevMatches, getSentenceWithImmunization, getSourceFile, getSubId, getTags, getToneTags, getUrl, 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, useInOfficepublic static final String RULE_ID
public AbstractFillerWordsRule(ResourceBundle messages, Language lang, UserConfig userConfig, boolean defaultActive)
public AbstractFillerWordsRule(ResourceBundle messages, Language lang, UserConfig userConfig)
protected abstract boolean isFillerWord(String token)
public String getDescription()
RulegetDescription in class Rulepublic String getId()
RuleA-Z
and the underscore.public int getDefaultValue()
RulegetDefaultValue in class Rulepublic boolean hasConfigurableValue()
RulehasConfigurableValue in class Rulepublic int getMinConfigurableValue()
RulegetMinConfigurableValue in class Rulepublic int getMaxConfigurableValue()
RulegetMaxConfigurableValue in class Rulepublic String getConfigureText()
RulegetConfigureText in class Rulepublic String getMessage()
protected boolean isException(AnalyzedTokenReadings[] tokens, int num)
public RuleMatch[] match(List<AnalyzedSentence> sentences) throws IOException
match in class TextLevelRuleIOExceptionpublic int minToCheckParagraph()
TextLevelRuleminToCheckParagraph in class TextLevelRule