| Package | Description |
|---|---|
| org.languagetool.rules.patterns | |
| org.languagetool.tagging.disambiguation.rules |
| Modifier and Type | Field and Description |
|---|---|
protected Element |
XMLRuleHandler.tokenElement |
| Modifier and Type | Field and Description |
|---|---|
protected List<Element> |
XMLRuleHandler.elementList
List of elements as specified by tokens.
|
protected List<Element> |
AbstractPatternRule.patternElements |
protected List<ArrayList<Element>> |
XMLRuleHandler.phraseElementList
Logically forking element list, used for including multiple phrases in the
current one.
|
protected Map<String,List<List<Element>>> |
XMLRuleHandler.phraseMap
Phrase store - elementLists keyed by phraseIds.
|
| Modifier and Type | Method and Description |
|---|---|
List<Element> |
Element.getAndGroup()
Returns the group of elements linked with AND operator.
|
List<Element> |
PatternRule.getElements()
For testing only.
|
List<Element> |
Element.getExceptionList() |
List<Element> |
Element.getPreviousExceptionList() |
| Modifier and Type | Method and Description |
|---|---|
void |
Element.setAndGroupElement(Element andToken) |
void |
Unifier.setEquivalence(String feature,
String type,
Element elem)
Prepares equivalence types for features to be tested.
|
protected void |
AbstractPatternRule.setupAndGroup(int firstMatchToken,
Element elem,
AnalyzedTokenReadings[] tokens) |
protected void |
AbstractPatternRule.setupRef(int firstMatchToken,
Element elem,
AnalyzedTokenReadings[] tokens) |
protected boolean |
AbstractPatternRule.testAllReadings(AnalyzedTokenReadings[] tokens,
Element elem,
Element prevElement,
int tokenNo,
int firstMatchToken,
int prevSkipNext) |
protected boolean |
AbstractPatternRule.testUnificationAndGroups(boolean matched,
boolean lastReading,
AnalyzedToken matchToken,
Element elem) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
XMLRuleHandler.processElement(List<Element> elList)
Calculates the offset of the match reference (if any) in case the match
element has been used in the group.
|
| Constructor and Description |
|---|
AbstractPatternRule(String id,
String description,
Language language,
List<Element> elements,
boolean getUnified) |
PatternRule(String id,
Language language,
List<Element> elements,
String description,
String message,
String shortMessage) |
PatternRule(String id,
Language language,
List<Element> elements,
String description,
String message,
String shortMessage,
String suggestionsOutMsg) |
PatternRule(String id,
Language language,
List<Element> elements,
String description,
String message,
String shortMessage,
String suggestionsOutMsg,
boolean isMember) |
| Modifier and Type | Method and Description |
|---|---|
List<Element> |
DisambiguationPatternRule.getElements()
For testing only.
|
Copyright © 2013. All Rights Reserved.