class RomanianWordRepeatBeginningRule extends WordRepeatBeginningRule {

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

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

  /**
   * Indicates if ambiguous adverbs are to be considered.
   * Ambiguous adverbs are words that have the 'adverb' tag along with other tags 
   * E.g.  romanian word "Și" can be "adverb predicativ", "conjuncție coordonatoare" or "pronume (își)".
   * @return true if ambiguous adverbs are to be considered.
   */
  protected boolean allowAmbiguousAdverbs() {
    return false;
  }
  
  @Override
  protected boolean isAdverb(AnalyzedTokenReadings token) {<FILL_FUNCTION_BODY>}

}

    boolean isAdverb = false;
    List<AnalyzedToken> readings = token.getReadings();
    for (AnalyzedToken analyzedToken : readings) {
      if (analyzedToken.getPOSTag() != null) {
        if (analyzedToken.getPOSTag().startsWith("G")) { // see file /resource/ro/coduri.html for POS tag descriptions
          isAdverb = true;
        } else {
          if (!allowAmbiguousAdverbs()) {
            return false;
          }
        }
      }
    }
    return isAdverb;
  
<methods>public void <init>(java.util.ResourceBundle, org.languagetool.Language) ,public java.lang.String getDescription() ,public java.lang.String getId() ,public boolean isException(java.lang.String) ,public boolean isSentenceException(org.languagetool.AnalyzedSentence) ,public org.languagetool.rules.RuleMatch[] match(List<org.languagetool.AnalyzedSentence>) throws java.io.IOException,public int minToCheckParagraph() <variables>