public class GermanFillerWordsRule extends AbstractStatisticStyleRule
| Constructor and Description |
|---|
GermanFillerWordsRule(ResourceBundle messages,
Language lang,
UserConfig userConfig) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
conditionFulfilled(AnalyzedTokenReadings[] tokens,
int nToken)
Condition to generate a hint (possibly including all exceptions)
Returns:
< nAnalysedToken, if condition is not fulfilled
>= nAnalysedToken, if condition is not fulfilled; integer is number of token which is the end hint
|
protected boolean |
excludeDirectSpeech()
Condition to generate a hint related to the sentence (possibly including all exceptions)
|
String |
getConfigureText()
Overwrite this to define the Text in the option panel for the configurable value
|
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.
|
protected String |
getLimitMessage(int limit,
double percent)
Defines the message for hints which exceed the limit
|
protected String |
getSentenceMessage()
Defines the message for sentence related hints
|
protected boolean |
sentenceConditionFulfilled(AnalyzedTokenReadings[] tokens,
int nToken)
Condition to generate a hint related to the sentence (possibly including all exceptions)
|
denominator, getDefaultValue, getMaxConfigurableValue, getMinConfigurableValue, getNumberOfMatches, getWordCount, hasConfigurableValue, match, minToCheckParagraph, setWithoutDirectSpeechestimateContextForSureMatch, 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 GermanFillerWordsRule(ResourceBundle messages, Language lang, UserConfig userConfig)
protected int conditionFulfilled(AnalyzedTokenReadings[] tokens, int nToken)
AbstractStatisticStyleRuleconditionFulfilled in class AbstractStatisticStyleRuleprotected boolean sentenceConditionFulfilled(AnalyzedTokenReadings[] tokens, int nToken)
AbstractStatisticStyleRulesentenceConditionFulfilled in class AbstractStatisticStyleRuleprotected boolean excludeDirectSpeech()
AbstractStatisticStyleRuleexcludeDirectSpeech in class AbstractStatisticStyleRuleprotected String getLimitMessage(int limit, double percent)
AbstractStatisticStyleRulegetLimitMessage in class AbstractStatisticStyleRuleprotected String getSentenceMessage()
AbstractStatisticStyleRulegetSentenceMessage in class AbstractStatisticStyleRulepublic String getId()
RuleA-Z
and the underscore.public String getDescription()
RulegetDescription in class Rulepublic String getConfigureText()
RulegetConfigureText in class AbstractStatisticStyleRule