public class CompoundRule extends AbstractCompoundRule
lang, linguServices, sentenceStartsWithUpperCase, subRuleSpecificIds| Constructor and Description |
|---|
CompoundRule(ResourceBundle messages,
Language english,
UserConfig userConfig) |
| Modifier and Type | Method and Description |
|---|---|
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() |
CompoundRuleData |
getCompoundRuleData() |
String |
getDescription()
A short description of the error this rule can detect, usually in the language of the text
that is checked.
|
String |
getId()
A string used to identify the rule in e.g. configuration files.
|
boolean |
isMisspelled(String word) |
estimateContextForSureMatch, filterReplacements, match, mergeCompound, useSubRuleSpecificIdsaddExamplePair, 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 CompoundRule(ResourceBundle messages, Language english, UserConfig userConfig) throws IOException
IOExceptionpublic String getId()
RuleA-Z
and the underscore.getId in class AbstractCompoundRulepublic String getDescription()
RulegetDescription in class AbstractCompoundRulepublic CompoundRuleData getCompoundRuleData()
getCompoundRuleData in class AbstractCompoundRulepublic 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 Rulepublic boolean isMisspelled(String word) throws IOException
isMisspelled in class AbstractCompoundRuleIOException