package org.languagetool.rules.spelling.hunspell;

import org.languagetool.Language;

import java.io.IOException;
import java.util.ResourceBundle;

/**
 * Like {@link HunspellRule}, but does not offer suggestions for incorrect words
 * as that is very slow with Hunspell.
 */
public class HunspellNoSuggestionRule extends HunspellRule {

  public static final String RULE_ID = "HUNSPELL_NO_SUGGEST_RULE";

  public HunspellNoSuggestionRule(final ResourceBundle messages, final Language language) throws UnsatisfiedLinkError, UnsupportedOperationException, IOException {
    super(messages, language);
  }

  @Override
 	public String getId() {
 		return RULE_ID;
 	}

 	@Override
 	public String getDescription() {
     // TODO: make i18n after LT 1.8? or will it only be used for German anyway?
 		return "Möglicher Rechtschreibfehler (ohne Korrekturvorschlag)";
 	}

  @Override
  protected boolean offerSuggestions() {
    return false;
  }

}

package org.languagetool.rules.spelling.hunspell;

import org.languagetool.Language;

import java.io.IOException;
import java.util.ResourceBundle;

/**
 * Like {@link HunspellRule}, but does not offer suggestions for incorrect words
 * as that is very slow with Hunspell.
 */
public class HunspellNoSuggestionRule extends HunspellRule {

  public static final String RULE_ID = "HUNSPELL_NO_SUGGEST_RULE";

  public HunspellNoSuggestionRule(final ResourceBundle messages, final Language language) throws UnsatisfiedLinkError, UnsupportedOperationException, IOException {
    super(messages, language);
  }

  @Override
  public String getId() {
    return RULE_ID;
  }

  @Override
  public String getDescription() {
    // TODO: make i18n after LT 1.8
    return messages.getString("desc_spelling") + " (no suggestions)";
  }

  @Override
  protected boolean offerSuggestions() {
    return false;
  }

}

use English description (no i18n yet as we are in feature freeze)