public class GermanStyleRepeatedWordRule extends AbstractStyleRepeatedWordRule
lang, linguServices, maxDistanceOfSentences| Constructor and Description |
|---|
GermanStyleRepeatedWordRule(ResourceBundle messages,
Language lang,
UserConfig userConfig) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
A short description of the error this rule can detect, usually in the language of the text
that is checked.
|
String |
getId()
Override this ID by adding a language acronym (e.g.
|
protected boolean |
isExceptionPair(AnalyzedTokenReadings token1,
AnalyzedTokenReadings token2) |
protected boolean |
isPartOfWord(String testTokenText,
String tokenText) |
protected boolean |
isTokenPair(AnalyzedTokenReadings[] tokens,
int n,
boolean before)
Pairs of substantive are excluded like "Arm in Arm", "Seite an Seite", etc.
|
protected boolean |
isTokenToCheck(AnalyzedTokenReadings token)
Only substantive, names, verbs and adjectives are checked
|
protected String |
messageSameSentence() |
protected String |
messageSentenceAfter() |
protected String |
messageSentenceBefore() |
protected URL |
setURL(AnalyzedTokenReadings token) |
getConfigureText, getDefaultValue, getMaxConfigurableValue, getMinConfigurableValue, hasConfigurableValue, match, minToCheckParagraphestimateContextForSureMatch, match, matchaddExamplePair, addTags, addToneTags, cacheAntiPatterns, getAntiPatterns, getCategory, getCorrectExamples, getDistanceTokens, getErrorTriggeringExamples, getFullId, getIncorrectExamples, getLocQualityIssueType, getMinPrevMatches, getSentenceWithImmunization, getSourceFile, getSubId, getTags, getToneTags, getUrl, hasTag, hasToneTag, isDefaultOff, isDefaultTempOff, isDictionaryBasedSpellingRule, isGoalSpecific, isOfficeDefaultOff, isOfficeDefaultOn, isPremium, makeAntiPatterns, setCategory, setCorrectExamples, setDefaultOff, setDefaultOn, setDefaultTempOff, setDistanceTokens, setErrorTriggeringExamples, setExamplePair, setGoalSpecific, setIncorrectExamples, setLocQualityIssueType, setMinPrevMatches, setOfficeDefaultOff, setOfficeDefaultOn, setPremium, setTags, setToneTags, setUrl, supportsLanguage, toRuleMatchArray, useInOfficepublic GermanStyleRepeatedWordRule(ResourceBundle messages, Language lang, UserConfig userConfig)
public String getId()
AbstractStyleRepeatedWordRulegetId in class AbstractStyleRepeatedWordRulepublic String getDescription()
RulegetDescription in class AbstractStyleRepeatedWordRuleprotected String messageSameSentence()
messageSameSentence in class AbstractStyleRepeatedWordRuleprotected String messageSentenceBefore()
messageSentenceBefore in class AbstractStyleRepeatedWordRuleprotected String messageSentenceAfter()
messageSentenceAfter in class AbstractStyleRepeatedWordRuleprotected boolean isTokenToCheck(AnalyzedTokenReadings token)
isTokenToCheck in class AbstractStyleRepeatedWordRuleprotected boolean isTokenPair(AnalyzedTokenReadings[] tokens, int n, boolean before)
isTokenPair in class AbstractStyleRepeatedWordRuleprotected boolean isPartOfWord(String testTokenText, String tokenText)
isPartOfWord in class AbstractStyleRepeatedWordRuleprotected boolean isExceptionPair(AnalyzedTokenReadings token1, AnalyzedTokenReadings token2)
isExceptionPair in class AbstractStyleRepeatedWordRuleprotected URL setURL(AnalyzedTokenReadings token) throws MalformedURLException
setURL in class AbstractStyleRepeatedWordRuleMalformedURLException