Class RuleSet

java.lang.Object
org.languagetool.rules.patterns.RuleSet

@Internal public abstract class RuleSet extends Object
An object holding a set of rules with an optional possibility to fetch only the ones applicable for a given sentence (via rulesForSentence(org.languagetool.AnalyzedSentence)), to avoid even invoking the definitely inapplicable ones. The filtering is based on cues provided by the rules, e.g. possible token strings or lemmas in pattern rules.
Since:
5.2