class ArabicWordRepeatRule extends WordRepeatRule {

  public ArabicWordRepeatRule(ResourceBundle messages) {
    super(messages, new Arabic());
    addExamplePair(Example.wrong("هذا <marker>فقط فقط</marker> مثال."),
      Example.fixed("هذا <marker>فقط</marker> مثال."));
  }

  @Override
  public String getId() {
    return "ARABIC_WORD_REPEAT_RULE";
  }

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

}

    if (wordRepetitionOf("خطوة", tokens, position)) {
      return true;   // "نفذت التعليمات خطوة خطوة."
    }
    if (wordRepetitionOf("رويدا", tokens, position)) {
      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>