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, minToCheckParagraph
estimateContextForSureMatch, match, match
addExamplePair, 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, useInOffice
public GermanStyleRepeatedWordRule(ResourceBundle messages, Language lang, UserConfig userConfig)
public String getId()
AbstractStyleRepeatedWordRule
getId
in class AbstractStyleRepeatedWordRule
public String getDescription()
Rule
getDescription
in class AbstractStyleRepeatedWordRule
protected String messageSameSentence()
messageSameSentence
in class AbstractStyleRepeatedWordRule
protected String messageSentenceBefore()
messageSentenceBefore
in class AbstractStyleRepeatedWordRule
protected String messageSentenceAfter()
messageSentenceAfter
in class AbstractStyleRepeatedWordRule
protected boolean isTokenToCheck(AnalyzedTokenReadings token)
isTokenToCheck
in class AbstractStyleRepeatedWordRule
protected boolean isTokenPair(AnalyzedTokenReadings[] tokens, int n, boolean before)
isTokenPair
in class AbstractStyleRepeatedWordRule
protected boolean isPartOfWord(String testTokenText, String tokenText)
isPartOfWord
in class AbstractStyleRepeatedWordRule
protected boolean isExceptionPair(AnalyzedTokenReadings token1, AnalyzedTokenReadings token2)
isExceptionPair
in class AbstractStyleRepeatedWordRule
protected URL setURL(AnalyzedTokenReadings token) throws MalformedURLException
setURL
in class AbstractStyleRepeatedWordRule
MalformedURLException