Modifier and Type | Method and Description |
---|---|
protected static Supplier<List<DisambiguationPatternRule>> |
Rule.cacheAntiPatterns(Language language,
List<List<PatternToken>> antiPatterns) |
List<DisambiguationPatternRule> |
Rule.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() |
protected static List<DisambiguationPatternRule> |
Rule.makeAntiPatterns(List<List<PatternToken>> patternList,
Language language)
Helper for implementing
Rule.getAntiPatterns() . |
Modifier and Type | Method and Description |
---|---|
List<DisambiguationPatternRule> |
CatalanRepeatedWordsRule.getAntiPatterns() |
Modifier and Type | Method and Description |
---|---|
List<DisambiguationPatternRule> |
GermanCompoundRule.getAntiPatterns() |
List<DisambiguationPatternRule> |
CompoundInfinitivRule.getAntiPatterns() |
List<DisambiguationPatternRule> |
MissingCommaRelativeClauseRule.getAntiPatterns() |
List<DisambiguationPatternRule> |
AgreementRule.getAntiPatterns() |
List<DisambiguationPatternRule> |
GermanWordRepeatRule.getAntiPatterns() |
List<DisambiguationPatternRule> |
VerbAgreementRule.getAntiPatterns() |
List<DisambiguationPatternRule> |
CaseRule.getAntiPatterns() |
List<DisambiguationPatternRule> |
SubjectVerbAgreementRule.getAntiPatterns() |
List<DisambiguationPatternRule> |
AgreementRule2.getAntiPatterns() |
Modifier and Type | Method and Description |
---|---|
List<DisambiguationPatternRule> |
EnglishRepeatedWordsRule.getAntiPatterns() |
List<DisambiguationPatternRule> |
CompoundRule.getAntiPatterns() |
List<DisambiguationPatternRule> |
UpperCaseNgramRule.getAntiPatterns() |
Modifier and Type | Method and Description |
---|---|
List<DisambiguationPatternRule> |
SpanishRepeatedWordsRule.getAntiPatterns() |
Modifier and Type | Method and Description |
---|---|
List<DisambiguationPatternRule> |
QuestionWhitespaceRule.getAntiPatterns() |
Modifier and Type | Method and Description |
---|---|
List<DisambiguationPatternRule> |
ConfusionProbabilityRule.getAntiPatterns() |
Modifier and Type | Field and Description |
---|---|
protected List<DisambiguationPatternRule> |
AbstractPatternRule.antiPatterns |
Modifier and Type | Method and Description |
---|---|
List<DisambiguationPatternRule> |
AbstractPatternRule.getAntiPatterns() |
Modifier and Type | Method and Description |
---|---|
void |
AbstractPatternRule.setAntiPatterns(List<DisambiguationPatternRule> antiPatterns)
Set up the list of antipatterns used to immunize tokens, i.e., make them
non-matchable by the current rule.
|
Modifier and Type | Method and Description |
---|---|
List<DisambiguationPatternRule> |
SpellingCheckRule.getAntiPatterns() |
Modifier and Type | Method and Description |
---|---|
List<DisambiguationPatternRule> |
DisambiguationRuleLoader.getRules(InputStream stream) |
protected List<DisambiguationPatternRule> |
XmlRuleDisambiguator.loadPatternRules(String filename)
Load disambiguation rules from an XML file.
|