public class LongParagraphRule extends TextLevelRule
| Constructor and Description |
|---|
LongParagraphRule(ResourceBundle messages,
Language lang,
UserConfig userConfig) |
LongParagraphRule(ResourceBundle messages,
Language lang,
UserConfig userConfig,
int defaultWords)
Note: will be off by default.
|
LongParagraphRule(ResourceBundle messages,
Language lang,
UserConfig userConfig,
int defaultWords,
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
|
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 LongParagraphRule(ResourceBundle messages, Language lang, UserConfig userConfig, int defaultWords, boolean defaultActive)
public LongParagraphRule(ResourceBundle messages, Language lang, UserConfig userConfig, int defaultWords)
public LongParagraphRule(ResourceBundle messages, Language lang, UserConfig userConfig)
public String getDescription()
RulegetDescription in class Rulepublic String getId()
RuleA-Z
and the underscore.public RuleOption[] getRuleOptions()
getRuleOptions in class Rulepublic String getMessage()
public RuleMatch[] match(List<AnalyzedSentence> sentences) throws IOException
match in class TextLevelRuleIOExceptionpublic int minToCheckParagraph()
TextLevelRuleminToCheckParagraph in class TextLevelRule