Revision: 6572
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=6572&view=rev
Author:   dominikoeo
Date:     2012-03-05 20:17:59 +0000 (Mon, 05 Mar 2012)
Log Message:
-----------
[eo] detect confusion between "adolto" and "adulto"
     plus a few other things.

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

Modified: trunk/JLanguageTool/src/rules/eo/grammar.xml
===================================================================
--- trunk/JLanguageTool/src/rules/eo/grammar.xml        2012-03-05 19:18:44 UTC 
(rev 6571)
+++ trunk/JLanguageTool/src/rules/eo/grammar.xml        2012-03-05 20:17:59 UTC 
(rev 6572)
@@ -236,6 +236,47 @@
       <example type="correct">Ŝi <marker>rigardis</marker> lin.</example>
     </rule>
 
+    <rulegroup id="ADULTO_ADOLTO" name="adulto kaj adolto">
+      <rule>
+        <pattern mark_from="2">
+          <token regexp="yes">[mcvlŝnv]i|ili</token>
+          <token inflected="yes" skip="1">esti</token>
+          <token regexp="yes">adultoj?</token>
+        </pattern>
+        <message>Ĉu vi intencis skribi <suggestion><match no="3" 
regexp_match="u" regexp_replace="o"/></suggestion>?</message>
+        <example type="incorrect">Li estas jam 
<marker>adulto</marker>.</example>
+        <example type="correct">Li estas jam adolto.</example>
+      </rule>
+      <rule>
+        <pattern mark_to="-2">
+          <token inflected="yes">adulto</token>
+          <token regexp="yes" skip="1">,|kaj|aŭ</token>
+          <token regexp="yes" 
inflected="yes">(ge)?(infan|junul|beb|knab|fil)(in)?o</token>
+        </pattern>
+        <message>Ĉu vi intencis skribi <suggestion><match no="1" 
regexp_match="u" regexp_replace="o"/></suggestion>?</message>
+        <example type="incorrect"><marker>Adultoj</marker> kaj liaj infanoj 
rajtas partopreni.</example>
+        <example type="correct"><marker>Adoltoj</marker> kaj liaj infanoj 
rajtas partopreni.</example>
+      </rule>
+      <rule>
+        <pattern mark_from="2">
+          <token regexp="yes" 
inflected="yes">(ge)?(infan|junul|beb|knab|fil)(in)?o</token>
+          <token regexp="yes">,|kaj|aŭ</token>
+          <token inflected="yes" regexp="yes">adulto</token>
+        </pattern>
+        <message>Ĉu vi intencis skribi <suggestion><match no="3" 
regexp_match="u" regexp_replace="o"/></suggestion>?</message>
+        <example type="incorrect">Infanoj kaj <marker>adultoj</marker> 
partoprenis.</example>
+        <example type="correct">Infanoj kaj <marker>adoltoj</marker> 
partoprenis.</example>
+      </rule>
+      <rule>
+        <pattern>
+          <token regexp="yes" 
inflected="yes">geadult(in)?o|(ge)?adultino</token>
+        </pattern>
+        <message>Ĉu vi intencis skribi <suggestion><match no="3" 
regexp_match="u" regexp_replace="o"/></suggestion>?</message>
+        <example type="incorrect">Maria baldaŭ fariĝos 
<marker>adultino</marker>.</example>
+        <example type="correct">Maria baldaŭ fariĝos adoltino.</example>
+      </rule>
+    </rulegroup>
+
   </category>
   <category name="Evitindaĵoj">
     <rule id="NE_JAM" name="ne + jam (ankoraŭ ne)">
@@ -1966,7 +2007,7 @@
       <pattern mark_from="1" mark_to="-1">
         <token negate_pos="yes" postag_regexp="yes" postag="[AOET] .*"/>
         <token>ĉi</token>
-        <token negate_pos="yes" postag_regexp="yes" postag="[AOET] .*"/>
+        <token negate_pos="yes" postag_regexp="yes" postag="[AOET] 
.*|SENT_END"/>
       </pattern>
       <message>Tiu uzo de «\2» ne eblas.  Ĉu vi eblis intencis skribi 
<suggestion>ĉu</suggestion>?</message>
       <example type="incorrect">Mi scivolas <marker>ĉi</marker> li 
venos.</example>
@@ -2503,6 +2544,18 @@
         <example type="correct">Estas tio, kio komputilo estas.</example>
         <example type="correct">Pro tio homoj ne komprenas.</example>
       </rule>
+      <rule>
+        <pattern mark_from="1" mark_to="-1">
+          <token postag="P .ak" postag_regexp="yes"/>
+          <token postag="T nak .. [^k] o" postag_regexp="yes"/>
+          <token postag="O nak .*" postag_regexp="yes"/>
+          <token regexp="yes">[\.,:;\?!…]</token>
+        </pattern>
+        <message>Ne povas esti «\2» antaŭ o-vorto «\3». Ĉu vi intencis «<match 
no="2" regexp_match="(.*)o(j?)" regexp_replace="$1u$2"/> \3»?</message>
+        <example type="incorrect">Temas pri <marker>io 
libro</marker>.</example>
+        <example type="correct">Temas pri <marker>iu libro</marker>.</example>
+        <example type="correct">Pro tio homoj ne komprenas.</example>
+      </rule>
 
       <rule>
         <pattern>
@@ -2510,7 +2563,7 @@
           <token>la</token>
           <token postag="O akz .*" postag_regexp="yes"/>
         </pattern>
-        <message>Ne povas esti «\1» antaŭ o-vorto «\4».</message>
+        <message>Ne povas esti «\1» antaŭ o-vorto «\3».</message>
         <example type="incorrect">Mi legis <marker>ĉion la 
libron</marker>.</example>
         <example type="correct">Mi legis la tutan libron.</example>
       </rule>

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


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Languagetool-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs

Reply via email to