Revision: 6071
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=6071&view=rev
Author:   taolin2011
Date:     2011-12-20 03:30:16 +0000 (Tue, 20 Dec 2011)
Log Message:
-----------
add some Chinese rules

Modified Paths:
--------------
    trunk/JLanguageTool/src/rules/zh/grammar.xml

Modified: trunk/JLanguageTool/src/rules/zh/grammar.xml
===================================================================
--- trunk/JLanguageTool/src/rules/zh/grammar.xml        2011-12-19 22:16:23 UTC 
(rev 6070)
+++ trunk/JLanguageTool/src/rules/zh/grammar.xml        2011-12-20 03:30:16 UTC 
(rev 6071)
@@ -14,6 +14,30 @@
   <!-- 拼写: 词语错误-->
   <!-- ====================================================================== 
-->
   <category name="词语错误">
+    <rulegroup id="YUAN_WU" name="元/无" default="off">
+      <rule>
+        <pattern mark_to="-1">
+          <token postag="v">无</token>
+          <token postag="n|tg|ag|j|q|a|v|m|vg|ng" regexp="yes" 
postag_regexp="yes"
+            >宝|旦|丰|嘉|件|老|配|气|曲|首|帅|素|宵|凶|勋|夜|音|月</token>
+        </pattern>
+        <message> 您的意思是“<suggestion>元</suggestion>\2”吗? </message>
+        <short>词语错误</short>
+        <example correction="元" type="incorrect"> 这件<marker>无</marker>宝不属于我。 
</example>
+        <example type="correct"> 这件<marker>元</marker>宝不属于我。 </example>
+      </rule>
+      <rule>
+        <pattern mark_to="-1">
+          <token postag="tg|q" postag_regexp="yes">元</token>
+          <token postag="p|v|d|vg|ag|n|ng|nr|c" regexp="yes" 
postag_regexp="yes"
+            >比|边|补|猜|常|偿|成|耻|从|道|敌|度|妨|非|辜|故|关|害</token>
+        </pattern>
+        <message> 您的意思是“<suggestion>无</suggestion>\2”吗? </message>
+        <short>词语错误</short>
+        <example type="incorrect" correction="无"> 他不会<marker>元</marker>故缺席的。 
</example>
+        <example type="correct"> 他不会<marker>无</marker>故缺席的。 </example>
+      </rule>
+    </rulegroup>
     <rulegroup id="YUAN_NU" name="怨/怒">
       <rule>
         <pattern mark_from="1" mark_to="0">

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


------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Languagetool-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs

Reply via email to