public boolean canBeIgnoredFor ( AnalyzedSentence sentence ) { return ( ! simpleRuleTokens . isEmpty ( ) && ! sentence . getTokenSet ( ) . containsAll ( simpleRuleTokens ) ) || ( ! inflectedRuleTokens . isEmpty ( ) && ! sentence . getLemmaSet ( ) . containsAll ( inflectedRuleTokens ) ) ; }
A fast check whether this rule can be ignored for the given sentence because it can never match . Used internally for performance optimization .