Package org.languagetool.rules.de
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.Dictionary
private final org.languagetool.Language
private final org.languagetool.LinguServices
private morfologik.speller.Speller
Fields 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.Dictionary
getId()
private String
getLemma
(org.languagetool.AnalyzedTokenReadings token) private boolean
isException
(org.languagetool.AnalyzedTokenReadings[] tokens, int n) private static boolean
isInfinitiv
(org.languagetool.AnalyzedTokenReadings token) private boolean
isMisspelled
(String word) private boolean
isPunctuation
(String word) private boolean
isRelevant
(org.languagetool.AnalyzedTokenReadings token) org.languagetool.rules.RuleMatch[]
match
(org.languagetool.AnalyzedSentence sentence) private static org.languagetool.rules.patterns.PatternToken
Methods 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:
getId
in classorg.languagetool.rules.Rule
-
getDescription
- Specified by:
getDescription
in 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:
getAntiPatterns
in classorg.languagetool.rules.Rule
-
match
public org.languagetool.rules.RuleMatch[] match(org.languagetool.AnalyzedSentence sentence) throws IOException - Specified by:
match
in classorg.languagetool.rules.Rule
- Throws:
IOException
-
isPunctuation
-