Package | Description |
---|---|
org.languagetool.rules | |
org.languagetool.rules.ngrams | |
org.languagetool.rules.patterns | |
org.languagetool.tagging.disambiguation.rules |
Modifier and Type | Method and Description |
---|---|
protected static Supplier<List<DisambiguationPatternRule>> |
Rule.cacheAntiPatterns(Language language,
List<List<PatternToken>> antiPatterns) |
protected static List<DisambiguationPatternRule> |
Rule.makeAntiPatterns(List<List<PatternToken>> patternList,
Language language)
Helper for implementing
Rule.getAntiPatterns() . |
Constructor and Description |
---|
ConfusionProbabilityRule(ResourceBundle messages,
LanguageModel languageModel,
Language language,
int grams,
List<String> exceptions,
List<List<PatternToken>> antiPatterns) |
Modifier and Type | Field and Description |
---|---|
protected PatternToken |
XMLRuleHandler.patternToken |
Modifier and Type | Field and Description |
---|---|
protected List<PatternToken> |
AbstractPatternRule.patternTokens |
protected List<PatternToken> |
XMLRuleHandler.patternTokens
List of elements as specified by tokens.
|
protected Map<String,List<List<PatternToken>>> |
XMLRuleHandler.phraseMap
Phrase store - elementLists keyed by phraseIds.
|
protected List<ArrayList<PatternToken>> |
XMLRuleHandler.phrasePatternTokens
Logically forking element list, used for including multiple phrases in the
current one.
|
Modifier and Type | Method and Description |
---|---|
PatternToken |
PatternTokenBuilder.build() |
PatternToken |
PatternToken.compile(AnalyzedTokenReadings token,
Synthesizer synth)
Prepare PatternToken for matching by formatting its string token and POS (if the Element is supposed
to refer to some other token).
|
static PatternToken |
PatternRuleBuilderHelper.csRegex(String regex) |
static PatternToken |
PatternRuleBuilderHelper.csToken(String s) |
PatternToken |
PatternTokenMatcher.getPatternToken() |
static PatternToken |
PatternRuleBuilderHelper.pos(String s) |
static PatternToken |
PatternRuleBuilderHelper.posRegex(String s) |
static PatternToken |
PatternRuleBuilderHelper.regex(String regex) |
static PatternToken |
PatternRuleBuilderHelper.token(String s) |
static PatternToken |
PatternRuleBuilderHelper.tokenRegex(String s) |
Modifier and Type | Method and Description |
---|---|
List<PatternToken> |
PatternToken.getAndGroup()
Returns the group of elements linked with AND operator.
|
Map<org.languagetool.rules.patterns.EquivalenceTypeLocator,PatternToken> |
UnifierConfiguration.getEquivalenceTypes() |
List<PatternToken> |
PatternToken.getExceptionList() |
List<PatternToken> |
PatternToken.getOrGroup()
Returns the group of elements linked with OR operator.
|
List<PatternToken> |
AbstractPatternRule.getPatternTokens() |
Modifier and Type | Method and Description |
---|---|
void |
PatternToken.setAndGroupElement(PatternToken andToken) |
void |
UnifierConfiguration.setEquivalence(String feature,
String type,
PatternToken elem)
Prepares equivalence types for features to be tested.
|
void |
PatternToken.setOrGroupElement(PatternToken orToken) |
Modifier and Type | Method and Description |
---|---|
protected void |
XMLRuleHandler.processElement(List<PatternToken> patternTokens)
Calculates the offset of the match reference (if any) in case the match
element has been used in the group.
|
Constructor and Description |
---|
PatternTokenMatcher(PatternToken patternToken) |
Constructor and Description |
---|
AbstractPatternRule(String id,
String description,
Language language,
List<PatternToken> patternTokens,
boolean getUnified) |
AbstractPatternRule(String id,
String description,
Language language,
List<PatternToken> patternTokens,
boolean getUnified,
String message) |
AbstractTokenBasedRule(String id,
String description,
Language language,
List<PatternToken> patternTokens,
boolean getUnified) |
FalseFriendPatternRule(String id,
Language language,
List<PatternToken> patternTokens,
String description,
String message,
String shortMessage) |
PatternRule(String id,
Language language,
List<PatternToken> patternTokens,
String description,
String message,
String shortMessage) |
PatternRule(String id,
Language language,
List<PatternToken> patternTokens,
String description,
String message,
String shortMessage,
String suggestionsOutMsg) |
PatternRule(String id,
Language language,
List<PatternToken> patternTokens,
String description,
String message,
String shortMessage,
String suggestionsOutMsg,
boolean isMember) |
PatternRule(String id,
Language language,
List<PatternToken> patternTokens,
String description,
String message,
String shortMessage,
String suggestionsOutMsg,
boolean isMember,
boolean interpretPosTagsPreDisambiguation) |
Unifier(Map<org.languagetool.rules.patterns.EquivalenceTypeLocator,PatternToken> equivalenceTypes,
Map<String,List<String>> equivalenceFeatures)
Instantiates the unifier.
|
Constructor and Description |
---|
DisambiguationPatternRule(String id,
String description,
Language language,
List<PatternToken> patternTokens,
String disambiguatedPOS,
Match posSelect,
DisambiguationPatternRule.DisambiguatorAction disambAction) |