/* LanguageTool, a natural language style checker 
 * Copyright (C) 2005 Daniel Naber (http://www.danielnaber.de)
 * 
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
 * USA
 */
package de.danielnaber.languagetool.rules.ru;

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

import de.danielnaber.languagetool.rules.AbstractSimpleReplaceRule;

/**
 * A rule that matches words or phrases which should not be used and suggests
 * correct ones instead. 
 * 
 * Russian implementations. Loads the
 * relevant words from <code>rules/ru/replace.txt</code>.
 * 
 * @author Andriy Rysin
 * Russian implementations - Yakov Reztsov
 */
public class RuSimpleReplaceRule extends AbstractSimpleReplaceRule {

  private static final String FILE_NAME = "/rules/ru/replace.txt";

  public final String getFileName() {
    return FILE_NAME;
  }
  public RuSimpleReplaceRule(final ResourceBundle messages) throws IOException {
    super(messages);
  }

  public final String getId() {
    return "RU_SIMPLE_REPLACE";
  }
  
 public String getDescription() {
    return "Поиск ошибочных слов/фраз";
  }



}

@@ -929,16 +929,41 @@
 eption;%0A
+import java.util.Locale;%0A
 import j
@@ -1284,49 +1284,8 @@
 hor 
-Andriy Rysin%0A * Russian implementations -
  Yak
@@ -1437,16 +1437,108 @@
 .txt%22;%0A%0A
+  // locale used on case-conversion%0A%09private static Locale ruLocale = new Locale(%22ru%22);%0A%0A  %0A
   public
@@ -1850,12 +1850,351 @@
 %22;%0A  %7D%0A%0A
-%0A
+public String getShort() %7B%0A%09  return %22%D0%9E%D1%88%D0%B8%D0%B1%D0%BA%D0%B0?%22;%0A%09%7D%0A%09%0A%09public String getSuggestion() %7B%0A%09  return %22 - %D0%BE%D1%88%D0%B8%D0%B1%D0%BE%D1%87%D0%BD%D0%BE%D0%B5 %D1%81%D0%BB%D0%BE%D0%B2%D0%BE/%D1%84%D1%80%D0%B0%D0%B7%D0%B0, %D0%B8%D1%81%D0%BF%D1%80%D0%B0%D0%B2%D0%BB%D0%B5%D0%BD%D0%B8%D0%B5: %22;%0A%09%7D%0A%09%0A%09/**%0A%09 * use case-insensitive matching.%0A%09 */%0A%09public boolean isCaseSensitive() %7B%0A%09%09return false;%0A%09%7D%0A%0A%09/**%0A%09 * locale used on case-conversion%0A%09 */%0A%09public Locale getLocale() %7B%0A%09%09return ruLocale;%0A%09%7D
 %0A%7D%0A

add translations messages to rule