Class CompoundInfinitivRule
java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.de.CompoundInfinitivRule
public class CompoundInfinitivRule
extends org.languagetool.rules.Rule
Checks the compound spelling of infinitive clause (Erweiterter Infinitiv mit zu)
- Since:
- 4.4
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static morfologik.stemming.Dictionaryprivate final org.languagetool.Languageprivate final org.languagetool.LinguServicesprivate morfologik.speller.SpellerFields inherited from class org.languagetool.rules.Rule
messages -
Constructor Summary
ConstructorsConstructorDescriptionCompoundInfinitivRule(ResourceBundle messages, org.languagetool.Language lang, org.languagetool.UserConfig userConfig) -
Method Summary
Modifier and TypeMethodDescriptionList<org.languagetool.tagging.disambiguation.rules.DisambiguationPatternRule> private static @NotNull morfologik.stemming.DictionarygetId()private StringgetLemma(org.languagetool.AnalyzedTokenReadings token) private booleanisException(org.languagetool.AnalyzedTokenReadings[] tokens, int n) private static booleanisInfinitiv(org.languagetool.AnalyzedTokenReadings token) private booleanisMisspelled(String word) private booleanisPunctuation(String word) private booleanisRelevant(org.languagetool.AnalyzedTokenReadings token) org.languagetool.rules.RuleMatch[]match(org.languagetool.AnalyzedSentence sentence) private static org.languagetool.rules.patterns.PatternTokenMethods inherited from class org.languagetool.rules.Rule
addExamplePair, estimateContextForSureMatch, 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
-
Field Details
-
dict
private static morfologik.stemming.Dictionary dict -
linguServices
private final org.languagetool.LinguServices linguServices -
speller
private morfologik.speller.Speller speller -
lang
private final org.languagetool.Language lang -
ANTI_PATTERNS
-
-
Constructor Details
-
CompoundInfinitivRule
public CompoundInfinitivRule(ResourceBundle messages, org.languagetool.Language lang, org.languagetool.UserConfig userConfig) throws IOException - Throws:
IOException
-
-
Method Details
-
token
-
getDictionary
- Throws:
IOException
-
getId
- Specified by:
getIdin classorg.languagetool.rules.Rule
-
getDescription
- Specified by:
getDescriptionin classorg.languagetool.rules.Rule
-
isInfinitiv
private static boolean isInfinitiv(org.languagetool.AnalyzedTokenReadings token) -
isMisspelled
-
isRelevant
private boolean isRelevant(org.languagetool.AnalyzedTokenReadings token) -
getLemma
-
isException
private boolean isException(org.languagetool.AnalyzedTokenReadings[] tokens, int n) -
getAntiPatterns
public List<org.languagetool.tagging.disambiguation.rules.DisambiguationPatternRule> getAntiPatterns()- Overrides:
getAntiPatternsin classorg.languagetool.rules.Rule
-
match
public org.languagetool.rules.RuleMatch[] match(org.languagetool.AnalyzedSentence sentence) throws IOException - Specified by:
matchin classorg.languagetool.rules.Rule- Throws:
IOException
-
isPunctuation
-