Package org.languagetool.rules.de
Class StyleRepeatedVeryShortSentences
java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.TextLevelRule
org.languagetool.rules.de.StyleRepeatedVeryShortSentences
A rule checks the use of very short sentences repeatedly.
This rule detects no grammar error but a stylistic problem (default off)
- Since:
- 5.2
- Author:
- Fred Kruse
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionStyleRepeatedVeryShortSentences(ResourceBundle messages, Language lang, UserConfig userConfig) -
Method Summary
Modifier and TypeMethodDescriptiongetId()give the user the possibility to configure the functionmatch(List<AnalyzedSentence> sentences) intMethods inherited from class org.languagetool.rules.TextLevelRule
estimateContextForSureMatch, match, matchMethods inherited from class org.languagetool.rules.Rule
addExamplePair, 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, useInOffice
-
Constructor Details
-
StyleRepeatedVeryShortSentences
public StyleRepeatedVeryShortSentences(ResourceBundle messages, Language lang, UserConfig userConfig)
-
-
Method Details
-
match
- Specified by:
matchin classTextLevelRule- Throws:
IOException
-
minToCheckParagraph
public int minToCheckParagraph()- Specified by:
minToCheckParagraphin classTextLevelRule
-
getId
-
getDescription
- Specified by:
getDescriptionin classRule
-
getRuleOptions
give the user the possibility to configure the function- Overrides:
getRuleOptionsin classRule
-