Class CompoundCoherencyRule
java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.TextLevelRule
org.languagetool.rules.de.CompoundCoherencyRule
public class CompoundCoherencyRule
extends org.languagetool.rules.TextLevelRule
Check consistent spelling for German compounds. It's a style issue
if a compound is written once with and once without hyphen in the same text.
E.g. "Zahnärzteverband" and "Zahnärzte-Verband"
-
Field Summary
Fields inherited from class org.languagetool.rules.Rule
messages -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleancontainsHyphenInside(String token) getId()private @Nullable StringgetLemma(org.languagetool.AnalyzedTokenReadings atr) org.languagetool.rules.RuleMatch[]intMethods inherited from class org.languagetool.rules.TextLevelRule
estimateContextForSureMatch, match, matchMethods inherited from class org.languagetool.rules.Rule
addExamplePair, getAntiPatterns, getCategory, getConfigureText, getCorrectExamples, getDefaultValue, getErrorTriggeringExamples, getIncorrectExamples, getLocQualityIssueType, getMaxConfigurableValue, getMinConfigurableValue, getSentenceWithImmunization, getUrl, hasConfigurableValue, isDefaultOff, isDefaultTempOff, isDictionaryBasedSpellingRule, isOfficeDefaultOff, isOfficeDefaultOn, makeAntiPatterns, setCategory, setCorrectExamples, setDefaultOff, setDefaultOn, setDefaultTempOff, setErrorTriggeringExamples, setIncorrectExamples, setLocQualityIssueType, setOfficeDefaultOff, setOfficeDefaultOn, setUrl, supportsLanguage, toRuleMatchArray, useInOffice
-
Constructor Details
-
CompoundCoherencyRule
-
-
Method Details
-
getId
- Specified by:
getIdin classorg.languagetool.rules.Rule
-
getDescription
- Specified by:
getDescriptionin classorg.languagetool.rules.Rule
-
match
public org.languagetool.rules.RuleMatch[] match(List<org.languagetool.AnalyzedSentence> sentences) throws IOException - Specified by:
matchin classorg.languagetool.rules.TextLevelRule- Throws:
IOException
-
containsHyphenInside
-
getLemma
-
minToCheckParagraph
public int minToCheckParagraph()- Specified by:
minToCheckParagraphin classorg.languagetool.rules.TextLevelRule
-