Package org.languagetool.rules.de
Class ConjunctionAtBeginOfSentenceRule
java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.TextLevelRule
org.languagetool.rules.AbstractStatisticSentenceStyleRule
org.languagetool.rules.de.ConjunctionAtBeginOfSentenceRule
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
ConstructorsConstructorDescriptionConjunctionAtBeginOfSentenceRule(ResourceBundle messages, Language lang, UserConfig userConfig) -
Method Summary
Modifier and TypeMethodDescriptionprotected AnalyzedTokenReadingsconditionFulfilled(List<AnalyzedTokenReadings> sentence) Is sentence with modal verbprotected booleangetId()protected StringgetLimitMessage(int limit, double percent) Methods inherited from class org.languagetool.rules.AbstractStatisticSentenceStyleRule
denominator, 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
-
ConjunctionAtBeginOfSentenceRule
public ConjunctionAtBeginOfSentenceRule(ResourceBundle messages, Language lang, UserConfig userConfig)
-
-
Method Details
-
conditionFulfilled
Is sentence with modal verb- Specified by:
conditionFulfilledin classAbstractStatisticSentenceStyleRule
-
excludeDirectSpeech
protected boolean excludeDirectSpeech()- Specified by:
excludeDirectSpeechin classAbstractStatisticSentenceStyleRule
-
getLimitMessage
- Specified by:
getLimitMessagein classAbstractStatisticSentenceStyleRule
-
getId
-
getDescription
- Specified by:
getDescriptionin classRule
-
getConfigureText
- Specified by:
getConfigureTextin classAbstractStatisticSentenceStyleRule
-