class ShortenedYearRangeChecker extends RuleFilter {

  @Nullable
  @Override
  public RuleMatch acceptRuleMatch(RuleMatch match, Map<String, String> arguments, int patternTokenPos, AnalyzedTokenReadings[] patternTokens, List<Integer> tokenPositions) {<FILL_FUNCTION_BODY>}

}

    try {
      int x = Integer.parseInt(arguments.get("x"));
      String centuryPrefix = arguments.get("x").substring(0, 2);
      int y = Integer.parseInt(centuryPrefix + arguments.get("y"));
      if (x >= y) {
        return match;
      }
    } catch (IllegalArgumentException ignore) {
      // if something's fishy with the number – ignore it silently,
      // it's not a date range
      return null;
    }
    return null;
  
<methods>public non-sealed void <init>() ,public abstract org.languagetool.rules.RuleMatch acceptRuleMatch(org.languagetool.rules.RuleMatch, Map<java.lang.String,java.lang.String>, int, org.languagetool.AnalyzedTokenReadings[], List<java.lang.Integer>) throws java.io.IOException,public boolean matches(Map<java.lang.String,java.lang.String>, org.languagetool.AnalyzedTokenReadings[], int, List<java.lang.Integer>) throws java.io.IOException<variables>