class RussianSimpleWordRepeatRule extends WordRepeatRule {

  private static final Pattern PATTERN = Pattern.compile("[a-zA-Zа-яёА-ЯЁ]");

  public RussianSimpleWordRepeatRule(ResourceBundle messages, Language language) {
    super(messages, language);
  }

  @Override
  public boolean ignore(AnalyzedTokenReadings[] tokens, int position) {<FILL_FUNCTION_BODY>}

}

    if (wordRepetitionOf("-", tokens, position)) {
      return true;
    }
    if (wordRepetitionOf("и", tokens, position)) {
      return true;
    }
    if (wordRepetitionOf("по", tokens, position)) {
      return true;
    }
    if (tokens[position - 1].getToken().equals("ПО") && tokens[position].getToken().equals("по")) {
        return true;   // "ПО по"
    }
    if (tokens[position - 1].getToken().equals("по") && tokens[position].getToken().equals("ПО")) {
        return true;   // "по ПО"
    }
    if (wordRepetitionOf("что", tokens, position)) {
      return true;
    }
    if (PATTERN.matcher(tokens[position].getToken()).matches() &&
          position > 1 &&
          PATTERN.matcher(tokens[position-1].getToken()).matches()) {
      // spelling with spaces in between: "L L"
      return true;
    }
    return super.ignore(tokens, position);
  
<methods>public void <init>(java.util.ResourceBundle, org.languagetool.Language) ,public int estimateContextForSureMatch() ,public java.lang.String getDescription() ,public java.lang.String getId() ,public boolean ignore(org.languagetool.AnalyzedTokenReadings[], int) ,public org.languagetool.rules.RuleMatch[] match(org.languagetool.AnalyzedSentence) <variables>