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, minToCheckParagraphestimateContextForSureMatch, match, matchaddExamplePair, 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, useInOfficepublic CatalanRepeatedWordsRule(ResourceBundle messages)
public List<DisambiguationPatternRule> getAntiPatterns()
RuleRule.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 Ruleprotected String getMessage()
getMessage in class AbstractRepeatedWordsRulepublic String getDescription()
RulegetDescription in class AbstractRepeatedWordsRuleprotected Map<String,SynonymsData> getWordsToCheck()
getWordsToCheck in class AbstractRepeatedWordsRuleprotected String getShortMessage()
getShortMessage in class AbstractRepeatedWordsRuleprotected Synthesizer getSynthesizer()
getSynthesizer in class AbstractRepeatedWordsRuleprotected String adjustPostag(String postag)
adjustPostag in class AbstractRepeatedWordsRuleprotected boolean isException(AnalyzedTokenReadings[] tokens, int i, boolean sentStart, boolean isCapitalized, boolean isAllUppercase)
isException in class AbstractRepeatedWordsRule