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;
  }

}

@@ -604,33 +604,33 @@
 %7D%0A%0A  @Override%0A 
-%09
+ 
 public String ge
@@ -638,18 +638,19 @@
 Id() %7B%0A 
-%09%09
+   
 return R
@@ -662,14 +662,14 @@
 D;%0A 
-%09
+ 
 %7D%0A%0A 
-%09
+ 
 @Ove
@@ -675,17 +675,17 @@
 erride%0A 
-%09
+ 
 public S
@@ -713,17 +713,16 @@
 ) %7B%0A    
- 
 // TODO:
@@ -748,123 +748,81 @@
  1.8
-? or will it only be used for German anyway?%0A %09%09return %22M%C3%B6glicher Rechtschreibfehler (ohne Korrekturvorschlag
+%0A    return messages.getString(%22desc_spelling%22) + %22 (no suggestions
 )%22;%0A 
-%09
+ 
 %7D%0A%0A 

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