class SentenceWithManRule extends AbstractStatisticSentenceStyleRule {
  
  private static final int DEFAULT_MIN_PERCENT = 15;
  
  String sentenceMessage = null;
  
  public SentenceWithManRule(ResourceBundle messages, Language lang, UserConfig userConfig) {
    super(messages, lang, userConfig, DEFAULT_MIN_PERCENT);
  }

  /**
   * Word is 'man'
   */
  private static boolean isWordMan(AnalyzedTokenReadings token) {
    return (token.hasLemma("man"));  
  }
  
  /**
   * Is sentence with verb man
   */
  @Override
  protected AnalyzedTokenReadings conditionFulfilled(List<AnalyzedTokenReadings> sentence) {
    for (int i = 0; i < sentence.size(); i++) {
      if(isWordMan(sentence.get(i))) {
        return sentence.get(i);
      }
    }
    return null;
  }
  
  @Override
  protected boolean excludeDirectSpeech() {
    return true;
  }

  /**
   * Minimal value is given in per mil
   */
  @Override
  public double denominator() {
    return 1000.0;
  }
  
  @Override
  protected String getLimitMessage(int limit, double percent) {<FILL_FUNCTION_BODY>}

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

  @Override
  public String getDescription() {
    return "Statistische Stilanalyse: Sätze mit indirekter Leseransprache 'man'";
  }

  @Override
  public String getConfigureText() {
    return "Anzeigen wenn mehr als ...‰ Sätze eines Kapitels 'man' enthalten:";
  }

}

    if (limit == 0) {
      return "Sätze mit der indirekten Leseransprache 'man' sind stilistisch wenig elegant formuliert. Lässt sich das Wort vermeiden?";
    }
    return "Mehr als " + limit + "‰ Sätze mit der indirekten Leseransprache 'man' {" + ((int) (percent +0.5d)) + "‰} gefunden. Lässt sich das Wort vermeiden?";
  
<methods>public void <init>(java.util.ResourceBundle, org.languagetool.Language, org.languagetool.UserConfig, int, boolean) ,public void <init>(java.util.ResourceBundle, org.languagetool.Language, org.languagetool.UserConfig, int) ,public double denominator() ,public abstract java.lang.String getConfigureText() ,public int getDefaultValue() ,public int getMaxConfigurableValue() ,public int getMinConfigurableValue() ,public int getNumberOfMatches() ,public int getSentenceCount() ,public boolean hasConfigurableValue() ,public org.languagetool.rules.RuleMatch[] match(List<org.languagetool.AnalyzedSentence>) throws java.io.IOException,public int minToCheckParagraph() ,public void setWithoutDirectSpeech(boolean) <variables>private static final boolean DEFAULT_ACTIVATION,private static final java.util.regex.Pattern ENDING_QUOTES,private static final java.util.regex.Pattern MARKS_REGEX,private static final java.util.regex.Pattern OPENING_QUOTES,private final non-sealed int defaultMinPercent,private final non-sealed int minPercent,private int numMatches,private int sentenceCount,private boolean withoutDirectSpeech