Class RecentYearFilter


  • public class RecentYearFilter
    extends org.languagetool.rules.patterns.RuleFilter
    Keep only those matches whose 'year' value is last year or in recent years (up to maxYearsBack years ago).
    Since:
    2.7
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.languagetool.rules.RuleMatch acceptRuleMatch​(org.languagetool.rules.RuleMatch match, java.util.Map<java.lang.String,​java.lang.String> arguments, int patternTokenPos, org.languagetool.AnalyzedTokenReadings[] patternTokens)  
      • Methods inherited from class org.languagetool.rules.patterns.RuleFilter

        getRequired, matches
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RecentYearFilter

        public RecentYearFilter()
    • Method Detail

      • acceptRuleMatch

        public org.languagetool.rules.RuleMatch acceptRuleMatch​(org.languagetool.rules.RuleMatch match,
                                                                java.util.Map<java.lang.String,​java.lang.String> arguments,
                                                                int patternTokenPos,
                                                                org.languagetool.AnalyzedTokenReadings[] patternTokens)
        Specified by:
        acceptRuleMatch in class org.languagetool.rules.patterns.RuleFilter