Package org.languagetool.rules.patterns
package org.languagetool.rules.patterns
-
ClassDescriptionAn Abstract Pattern Rule that describes a pattern of words or part-of-speech tags used for PatternRule and DisambiguationPatternRule.A base class for
PatternToken-based rules.Represents possible values of aPatternToken's lemma or text.A pattern rule for finding false friends.LoadsPatternRules from a false friends XML file.XML Filter that ignores whitespace-only nodes.AMatchis the configuration of an algorithm used to matchAnalyzedTokenReadingss.Possible string case conversions.The state of a matching process.Authenticator that extracts username and password from URL, e.g.A Rule that describes a language error as a simple pattern of words or of part-of-speech tags.APatternRule's id with an optional sub-id.LoadsPatternRules from an XML file.Matches a pattern rule against text.Allows transformation of pattern rules to add additional matching/filtering logic Used inJLanguageTool.transformPatternRules(java.util.List<org.languagetool.rules.patterns.AbstractPatternRule>, org.languagetool.Language)Return a value if a transform is applied, none otherwiseMakes XML definition of rules accessible as strings.A part of a pattern, represents the 'token' element of thegrammar.xml.Fields that are null in most instances of PatternTokenHelper to buildPatternTokens.Filters matches that match a regex.Matches 'regexp' elements from XML rules against sentences.Filter rule matches after a RegexPatternRule has matched already.Create aRegexRuleFilter.Evaluates aRegexRuleFilterforRegexPatternRules.Filter rule matches after a PatternRule has matched already.Create aRuleFilter.Evaluates aRuleFilter.An object holding a set of rules with an optional possibility to fetch only the ones applicable for a given sentence (viaRuleSet.rulesForSentence(org.languagetool.AnalyzedSentence)), to avoid even invoking the definitely inapplicable ones.An object encapsulating a text pattern and the way it's matched (case-sensitivity / regular expression), plus some optimizations over standard regular expression matching.A list of strings that are expected to occur in a larger string in the given order, with optional requirements for them to start/end the text.Implements unification of features over tokens.XML rule handler that loads rules from XML and throws exceptions on errors and warnings.