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 |
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.
|
String |
getMessage() |
RuleOption[] |
getRuleOptions()
give the user the possibility to configure the function
|
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, getPriority, getSentenceWithImmunization, getSourceFile, getSubId, getTags, getToneTags, getUrl, hasTag, hasToneTag, isDefaultOff, isDefaultTempOff, isDictionaryBasedSpellingRule, isGoalSpecific, isIncludedInHiddenMatches, isOfficeDefaultOff, isOfficeDefaultOn, isPremium, makeAntiPatterns, setCategory, setCorrectExamples, setDefaultOff, setDefaultOn, setDefaultTempOff, setDistanceTokens, setErrorTriggeringExamples, setExamplePair, setGoalSpecific, setIncludedInHiddenMatches, setIncorrectExamples, setLocQualityIssueType, setMinPrevMatches, setOfficeDefaultOff, setOfficeDefaultOn, setPremium, setPriority, 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 RuleOption[] getRuleOptions()
getRuleOptions 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