Package org.languagetool.rules.patterns
Class UnifierConfiguration
java.lang.Object
org.languagetool.rules.patterns.UnifierConfiguration
- Since:
- 2.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionA Map that stores all possible equivalence types listed for features.private final Map<EquivalenceTypeLocator,
PatternToken> A Map for storing the equivalence types for features. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal void
setEquivalence
(String feature, String type, PatternToken elem) Prepares equivalence types for features to be tested.
-
Field Details
-
equivalenceTypes
A Map for storing the equivalence types for features. Features are specified as Strings, and map into types defined as maps from Strings to Elements. -
equivalenceFeatures
A Map that stores all possible equivalence types listed for features.
-
-
Constructor Details
-
UnifierConfiguration
public UnifierConfiguration()
-
-
Method Details
-
setEquivalence
Prepares equivalence types for features to be tested. All equivalence types are given asPatternToken
s. They create an equivalence set (with abstraction).- Parameters:
feature
- Feature to be tested, like gender, grammatical case or number.type
- Type of equivalence for the feature, for example plural, first person, genitive.elem
- Element specifying the equivalence.
-
getEquivalenceTypes
-
getEquivalenceFeatures
-
createUnifier
-