Revision: 7192
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=7192&view=rev
Author:   milek_pl
Date:     2012-06-02 21:29:50 +0000 (Sat, 02 Jun 2012)
Log Message:
-----------
fix false alarms for proper names

Modified Paths:
--------------
    
trunk/JLanguageTool/src/java/org/languagetool/rules/en/EnglishWordRepeatRule.java

Modified: 
trunk/JLanguageTool/src/java/org/languagetool/rules/en/EnglishWordRepeatRule.java
===================================================================
--- 
trunk/JLanguageTool/src/java/org/languagetool/rules/en/EnglishWordRepeatRule.java
   2012-06-02 21:18:14 UTC (rev 7191)
+++ 
trunk/JLanguageTool/src/java/org/languagetool/rules/en/EnglishWordRepeatRule.java
   2012-06-02 21:29:50 UTC (rev 7192)
@@ -46,6 +46,16 @@
     if (wordRepetitionOf("that", tokens, position)) {
       return true;   // "I don't think that that is a problem."
     }
+    if (wordRepetitionOf("Pago", tokens, position)) {
+        return true;   // "Pago Pago"
+      }
+    if (wordRepetitionOf("Wagga", tokens, position)) {
+        return true;   // "Wagga Wagga"
+      }
+    if (wordRepetitionOf("Duran", tokens, position)) {
+        return true;   // "Duran Duran"
+      }
+          
     return 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs

Reply via email to