public class CatalanRepeatedWordsRule extends AbstractRepeatedWordsRule
Constructor and Description |
---|
CatalanRepeatedWordsRule(ResourceBundle messages) |
Modifier and Type | Method and Description |
---|---|
protected String |
adjustPostag(String postag) |
List<DisambiguationPatternRule> |
getAntiPatterns()
Overwrite this to avoid false alarms by ignoring these patterns -
note that your
Rule.match(AnalyzedSentence) method needs to
call Rule.getSentenceWithImmunization(org.languagetool.AnalyzedSentence) for this to be used
and you need to check AnalyzedTokenReadings.isImmunized() |
String |
getDescription()
A short description of the error this rule can detect, usually in the language of the text
that is checked.
|
protected String |
getMessage() |
protected String |
getShortMessage() |
protected Synthesizer |
getSynthesizer() |
protected Map<String,SynonymsData> |
getWordsToCheck() |
protected boolean |
isException(AnalyzedTokenReadings[] tokens,
int i,
boolean sentStart,
boolean isCapitalized,
boolean isAllUppercase) |
getId, loadWords, match, maxWordsDistance, minToCheckParagraph
estimateContextForSureMatch, match, match
addExamplePair, addTags, addToneTags, cacheAntiPatterns, getCategory, getConfigureText, getCorrectExamples, getDefaultValue, getDistanceTokens, getErrorTriggeringExamples, getFullId, getIncorrectExamples, getLocQualityIssueType, getMaxConfigurableValue, getMinConfigurableValue, getMinPrevMatches, getSentenceWithImmunization, getSourceFile, getSubId, getTags, getToneTags, getUrl, hasConfigurableValue, 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 CatalanRepeatedWordsRule(ResourceBundle messages)
public List<DisambiguationPatternRule> getAntiPatterns()
Rule
Rule.match(AnalyzedSentence)
method needs to
call Rule.getSentenceWithImmunization(org.languagetool.AnalyzedSentence)
for this to be used
and you need to check AnalyzedTokenReadings.isImmunized()
getAntiPatterns
in class Rule
protected String getMessage()
getMessage
in class AbstractRepeatedWordsRule
public String getDescription()
Rule
getDescription
in class AbstractRepeatedWordsRule
protected Map<String,SynonymsData> getWordsToCheck()
getWordsToCheck
in class AbstractRepeatedWordsRule
protected String getShortMessage()
getShortMessage
in class AbstractRepeatedWordsRule
protected Synthesizer getSynthesizer()
getSynthesizer
in class AbstractRepeatedWordsRule
protected String adjustPostag(String postag)
adjustPostag
in class AbstractRepeatedWordsRule
protected boolean isException(AnalyzedTokenReadings[] tokens, int i, boolean sentStart, boolean isCapitalized, boolean isAllUppercase)
isException
in class AbstractRepeatedWordsRule