Revision: 7395
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=7395&view=rev
Author:   yakovru
Date:     2012-06-18 08:37:08 +0000 (Mon, 18 Jun 2012)
Log Message:
-----------
[ru] disable rule  

Modified Paths:
--------------
    
trunk/JLanguageTool/src/java/org/languagetool/rules/ru/RussianWordRepeatRule.java

Modified: 
trunk/JLanguageTool/src/java/org/languagetool/rules/ru/RussianWordRepeatRule.java
===================================================================
--- 
trunk/JLanguageTool/src/java/org/languagetool/rules/ru/RussianWordRepeatRule.java
   2012-06-18 08:12:15 UTC (rev 7394)
+++ 
trunk/JLanguageTool/src/java/org/languagetool/rules/ru/RussianWordRepeatRule.java
   2012-06-18 08:37:08 UTC (rev 7395)
@@ -61,7 +61,7 @@
     if (messages != null) {
       super.setCategory(new Category(messages.getString("category_misc")));
     }
-//    setDefaultOff();
+    setDefaultOff();   // set default off
   }
 
   /*
@@ -83,7 +83,7 @@
   public final String getDescription() {
     return "Повтор слов в предложении";
   }
-
+  
   /*
    * Tests if any word form is repeated in the sentence.
    */
@@ -175,6 +175,11 @@
         final int pos = tokens[i].getStartPos();
         final RuleMatch ruleMatch = new RuleMatch(this, pos, pos
             + token.length(), msg, "Повтор слов в предложении");        
+  //////////
+  //       
ruleMatch.setSuggestedReplacement(tokens[i].getAnalyzedToken(0).getLemma());
+  //       example how to correct word
+  //////////
+        
         ruleMatches.add(ruleMatch);
         repetition = false;
       }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs

Reply via email to