public class PassiveSentenceRule extends AbstractStatisticSentenceStyleRule
| Constructor and Description |
|---|
PassiveSentenceRule(ResourceBundle messages,
Language lang,
UserConfig userConfig) |
| Modifier and Type | Method and Description |
|---|---|
protected AnalyzedTokenReadings |
conditionFulfilled(List<AnalyzedTokenReadings> sentence)
Is passive sentence
|
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
|
denominator, getDefaultValue, getMaxConfigurableValue, getMinConfigurableValue, getNumberOfMatches, getSentenceCount, hasConfigurableValue, isMark, isOpeningQuote, 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 PassiveSentenceRule(ResourceBundle messages, Language lang, UserConfig userConfig)
protected AnalyzedTokenReadings conditionFulfilled(List<AnalyzedTokenReadings> sentence)
conditionFulfilled in class AbstractStatisticSentenceStyleRuleprotected boolean excludeDirectSpeech()
AbstractStatisticSentenceStyleRuleexcludeDirectSpeech in class AbstractStatisticSentenceStyleRuleprotected String getLimitMessage(int limit, double percent)
AbstractStatisticSentenceStyleRulegetLimitMessage in class AbstractStatisticSentenceStyleRulepublic String getId()
RuleA-Z
and the underscore.public String getDescription()
RulegetDescription in class Rulepublic String getConfigureText()
RulegetConfigureText in class AbstractStatisticSentenceStyleRule