public class NonSignificantVerbsRule extends AbstractStatisticStyleRule
Constructor and Description |
---|
NonSignificantVerbsRule(ResourceBundle messages,
Language lang,
UserConfig userConfig) |
Modifier and Type | Method and Description |
---|---|
protected int |
conditionFulfilled(AnalyzedTokenReadings[] tokens,
int nAnalysedToken)
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
|
double |
denominator()
Minimal value is given in per mil
|
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)
|
getDefaultValue, getMaxConfigurableValue, getMinConfigurableValue, getNumberOfMatches, getWordCount, hasConfigurableValue, match, minToCheckParagraph, setWithoutDirectSpeech
estimateContextForSureMatch, match, match
addExamplePair, 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, useInOffice
public NonSignificantVerbsRule(ResourceBundle messages, Language lang, UserConfig userConfig)
public double denominator()
denominator
in class AbstractStatisticStyleRule
protected int conditionFulfilled(AnalyzedTokenReadings[] tokens, int nAnalysedToken)
AbstractStatisticStyleRule
conditionFulfilled
in class AbstractStatisticStyleRule
protected boolean sentenceConditionFulfilled(AnalyzedTokenReadings[] tokens, int nToken)
AbstractStatisticStyleRule
sentenceConditionFulfilled
in class AbstractStatisticStyleRule
protected boolean excludeDirectSpeech()
AbstractStatisticStyleRule
excludeDirectSpeech
in class AbstractStatisticStyleRule
protected String getLimitMessage(int limit, double percent)
AbstractStatisticStyleRule
getLimitMessage
in class AbstractStatisticStyleRule
protected String getSentenceMessage()
AbstractStatisticStyleRule
getSentenceMessage
in class AbstractStatisticStyleRule
public String getId()
Rule
A-Z
and the underscore.public String getDescription()
Rule
getDescription
in class Rule
public String getConfigureText()
Rule
getConfigureText
in class AbstractStatisticStyleRule