Modifier and Type | Method and Description |
---|---|
protected List<AbstractPatternRule> |
Language.getPatternRules()
Get the pattern rules as defined in the files returned by
Language.getRuleFileNames() . |
List<AbstractPatternRule> |
JLanguageTool.getPatternRulesByIdAndSubId(String id,
String subId)
Get pattern rules by Id and SubId.
|
List<AbstractPatternRule> |
JLanguageTool.loadFalseFriendRules(String filename)
Load false friend rules from an XML file.
|
List<AbstractPatternRule> |
JLanguageTool.loadPatternRules(String filename)
Load pattern rules from an XML file.
|
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.search.Query |
PatternRuleQueryBuilder.buildRelaxedQuery(AbstractPatternRule rule)
Iterate over all elements, ignore those not supported, add the other ones to a BooleanQuery.
|
Modifier and Type | Method and Description |
---|---|
protected List<AbstractPatternRule> |
NoopLanguage.getPatternRules() |
Modifier and Type | Class and Description |
---|---|
class |
AbstractTokenBasedRule
A base class for
PatternToken -based rules. |
class |
FalseFriendPatternRule
A pattern rule for finding false friends.
|
class |
PatternRule
A Rule that describes a language error as a simple pattern of words or of
part-of-speech tags.
|
class |
RegexPatternRule
Matches 'regexp' elements from XML rules against sentences.
|
Modifier and Type | Field and Description |
---|---|
protected List<AbstractPatternRule> |
XMLRuleHandler.rules |
Modifier and Type | Method and Description |
---|---|
List<AbstractPatternRule> |
PatternRuleTransformer.TransformedRules.getRemainingRules() |
List<AbstractPatternRule> |
XMLRuleHandler.getRules() |
List<AbstractPatternRule> |
PatternRuleLoader.getRules(File file,
Language lang) |
List<AbstractPatternRule> |
FalseFriendRuleLoader.getRules(File file,
Language language,
Language motherTongue) |
List<AbstractPatternRule> |
FalseFriendRuleLoader.getRules(InputStream stream,
Language textLanguage,
Language motherTongue) |
List<AbstractPatternRule> |
PatternRuleLoader.getRules(InputStream is,
String filename,
Language lang) |
List<AbstractPatternRule> |
RepeatedPatternRuleTransformer.RepeatedPatternRule.getWrappedRules() |
List<AbstractPatternRule> |
ConsistencyPatternRuleTransformer.ConsistencyPatternRule.getWrappedRules() |
Modifier and Type | Method and Description |
---|---|
protected void |
PatternRuleHandler.prepareRule(AbstractPatternRule rule) |
protected static void |
XMLRuleHandler.setRuleFilter(String filterClassName,
String filterArgs,
AbstractPatternRule rule) |
Modifier and Type | Method and Description |
---|---|
PatternRuleTransformer.TransformedRules |
RepeatedPatternRuleTransformer.apply(List<AbstractPatternRule> patternRules) |
PatternRuleTransformer.TransformedRules |
ConsistencyPatternRuleTransformer.apply(List<AbstractPatternRule> patternRules) |
Constructor and Description |
---|
TransformedRules(List<AbstractPatternRule> remainingRules,
List<Rule> transformedRules) |
Modifier and Type | Method and Description |
---|---|
AbstractPatternRule |
BitextPatternRule.getSrcRule() |
AbstractPatternRule |
BitextPatternRule.getTrgRule() |
Modifier and Type | Class and Description |
---|---|
class |
DisambiguationPatternRule
A Rule that describes a pattern of words or part-of-speech tags used for
disambiguation.
|