Package org.languagetool.rules.de
Class SentenceWithManRule
java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.TextLevelRule
org.languagetool.rules.AbstractStatisticSentenceStyleRule
org.languagetool.rules.de.SentenceWithManRule
A rule that gives Hints about the use of German filler words.
The Hints are only given when the percentage of filler words per chapter/text exceeds the given limit.
A limit of 0 shows all used filler words. Direct speech or citation is excluded otherwise.
This rule detects no grammar error but gives stylistic hints (default off).
- Since:
- 4.2
- Author:
- Fred Kruse
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSentenceWithManRule(ResourceBundle messages, Language lang, UserConfig userConfig) -
Method Summary
Modifier and TypeMethodDescriptionprotected AnalyzedTokenReadingsconditionFulfilled(List<AnalyzedTokenReadings> sentence) Is sentence with verb mandoubleMinimal value is given in per milprotected booleangetId()protected StringgetLimitMessage(int limit, double percent) Methods inherited from class org.languagetool.rules.AbstractStatisticSentenceStyleRule
getNumberOfMatches, getRuleOptions, getSentenceCount, isMark, isOpeningQuote, match, minToCheckParagraph, setWithoutDirectSpeechMethods 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
-
SentenceWithManRule
-
-
Method Details
-
conditionFulfilled
Is sentence with verb man- Specified by:
conditionFulfilledin classAbstractStatisticSentenceStyleRule
-
excludeDirectSpeech
protected boolean excludeDirectSpeech()- Specified by:
excludeDirectSpeechin classAbstractStatisticSentenceStyleRule
-
denominator
public double denominator()Minimal value is given in per mil- Overrides:
denominatorin classAbstractStatisticSentenceStyleRule
-
getLimitMessage
- Specified by:
getLimitMessagein classAbstractStatisticSentenceStyleRule
-
getId
-
getDescription
- Specified by:
getDescriptionin classRule
-
getConfigureText
- Specified by:
getConfigureTextin classAbstractStatisticSentenceStyleRule
-