Revision: 5955
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=5955&view=rev
Author:   yakovru
Date:     2011-11-21 18:57:21 +0000 (Mon, 21 Nov 2011)
Log Message:
-----------
[ru] fix rules

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

Modified: trunk/JLanguageTool/src/rules/ru/grammar.xml
===================================================================
--- trunk/JLanguageTool/src/rules/ru/grammar.xml        2011-11-21 18:56:10 UTC 
(rev 5954)
+++ trunk/JLanguageTool/src/rules/ru/grammar.xml        2011-11-21 18:57:21 UTC 
(rev 5955)
@@ -7,7 +7,7 @@
 LanguageTool. Copyright (C) 2005 Daniel Naber (http://www.danielnaber.de)
 A Russian rule file for LanguageTool 
 Copyright (C) 2008-2011 Yakov Reztsov
-$Id: grammar.xml,v 1.78 2011-11-19 08:53:45 yakovru Exp $
+$Id: grammar.xml,v 1.79 2011-11-21 18:05:45 yakovru Exp $
 #     REVISION:  $Id$
 -->
 <rules lang="ru" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
@@ -944,30 +944,32 @@
           <rulegroup default="on"  id="SoglasovanieNN_Verb" name="Согласование 
подлежащего со сказуемым по роду/числу">
             <rule>  
                 
-                <pattern>
-                    <!--           NN:Masc:Sin:Nom   VB:Past:Masc    -->
+                <pattern mark_from="1">
+                    <!--           NN:Masc:Sin:Nom   VB:Past:Masc   -->
+                    <token  postag="SENT_START" skip ="-1"><exception 
scope="next"  postag="NN:Fem:Sin:Nom" /><exception scope="next"  
postag="NN:Neut:Sin:Nom" /> <exception scope="next" postag_regexp="yes" 
postag="PNN:.*" /></token>
                     <token  postag="NN:Masc:Sin:Nom"><exception 
negate_pos="yes" postag="NN:Masc:Sin:Nom"  /></token>
                     <token  postag="VB:Past:.*"  
postag_regexp="yes"><exception postag="VB:Past:Masc"  /></token>               
                 </pattern>
                 
                 <message>Существительное не согласуется с глаголом по роду.
-                    <suggestion><match no="1"></match> <match no="2" 
postag="VB:Past:.*" postag_regexp="yes" 
postag_replace="VB:Past:Masc"></match></suggestion>
+                    <suggestion><match no="2"></match> <match no="3" 
postag="VB:Past:.*" postag_regexp="yes" 
postag_replace="VB:Past:Masc"></match></suggestion>
                 </message>
                 <short>Ошибка в согласовании по роду.</short>
-                <example type="correct">Кот грелся на солнышке.</example>
-                <example type="incorrect"><marker>Кот грелась</marker> на 
солнышке.</example>
+                <example type="correct">Во дворе кот грелся на 
солнышке.</example>
+                <example type="incorrect">Во дворе <marker>кот 
грелась</marker> на солнышке.</example>
             </rule>
       
           <rule>  
                 
-                <pattern>
+                <pattern mark_from="1">
                     <!--           NN:Fem:Sin:Nom   VB:Past:Fem    -->
+                    <token  postag="SENT_START" skip ="-1"><exception 
scope="next"  postag="NN:Masc:Sin:Nom" /><exception scope="next"  
postag="NN:Neut:Sin:Nom" /> <exception scope="next" postag_regexp="yes" 
postag="PNN:.*" /></token>
                     <token  postag="NN:Fem:Sin:Nom"><exception 
negate_pos="yes" postag="NN:Fem:Sin:Nom"  /></token>
                     <token  postag="VB:Past:.*"  
postag_regexp="yes"><exception postag="VB:Past:Fem" /></token>               
                 </pattern>
                 
                 <message>Существительное не согласуется с глаголом по роду.
-                    <suggestion><match no="1"></match> <match no="2" 
postag="VB:Past:.*" postag_regexp="yes" 
postag_replace="VB:Past:Fem"></match></suggestion>
+                    <suggestion><match no="2"></match> <match no="3" 
postag="VB:Past:.*" postag_regexp="yes" 
postag_replace="VB:Past:Fem"></match></suggestion>
                 </message>
                 <short>Ошибка в согласовании по роду.</short>
                 <example type="correct">Кошка грелась на солнышке.</example>
@@ -976,14 +978,15 @@
          
              <rule>  
                 
-                <pattern>
+                <pattern mark_from="1">
                     <!--           NN:Neut:Sin:Nom   VB:Past:Neut    -->
+                    <token  postag="SENT_START" skip ="-1"><exception 
scope="next"  postag="NN:Masc:Sin:Nom" /><exception scope="next"  
postag="NN:Fem:Sin:Nom" /> <exception scope="next" postag_regexp="yes" 
postag="PNN:.*" /></token>
                     <token  postag="NN:Neut:Sin:Nom" ><exception 
negate_pos="yes" postag_regexp="yes" postag="NN:Neut:Sin:.*"  /></token>
                     <token  postag="VB:Past:.*"  
postag_regexp="yes"><exception postag="VB:Past:Neut"  /></token>               
                 </pattern>
                 
                 <message>Существительное не согласуется с глаголом по роду.
-                    <suggestion><match no="1"></match> <match no="2" 
postag="VB:Past:.*" postag_regexp="yes" 
postag_replace="VB:Past:Neut"></match></suggestion>
+                    <suggestion><match no="2"></match> <match no="3" 
postag="VB:Past:.*" postag_regexp="yes" 
postag_replace="VB:Past:Neut"></match></suggestion>
                 </message>
                 <short>Ошибка в согласовании по роду.</short>
                 <example type="correct">Блюдо готовилось на 
сковородке.</example>
@@ -992,14 +995,15 @@
             
            <rule>  
                 
-                <pattern>
+                <pattern mark_from="1">
                     <!--           NN:.*:PL:Nom   VB:Past:PL    -->
+                    <token  postag="SENT_START" skip ="-1"><exception 
scope="next" postag_regexp="yes" postag="NN:.*:Sin:Nom" /><exception 
scope="next" postag_regexp="yes" postag="PNN:.*" /></token>
                     <token  postag="NN:.*:PL:Nom" postag_regexp="yes"></token>
                     <token  postag="VB:Past:.*"  
postag_regexp="yes"><exception postag="VB:Past:PL" /><exception 
negate_pos="yes" postag_regexp="yes" postag="VB:Past:.*"  /></token>            
   
                 </pattern>
                 
                 <message>Существительное не согласуется с глаголом по числу.
-                    <suggestion><match no="1"></match> <match no="2" 
postag="VB:Past:.*" postag_regexp="yes" 
postag_replace="VB:Past:PL"></match></suggestion>
+                    <suggestion><match no="2"></match> <match no="3" 
postag="VB:Past:.*" postag_regexp="yes" 
postag_replace="VB:Past:PL"></match></suggestion>
                 </message>
                 <short>Ошибка в согласовании по числу.</short>
                 <example type="correct">Кошки грелись на солнышке.</example>
@@ -1009,14 +1013,15 @@
             
               <rule>  
                 
-                <pattern>
+                <pattern mark_from="1">
                     <!--           NN:Masc:Sin:Nom   VB:Past:!PL   -->
+                    <token  postag="SENT_START" skip ="-1"><exception 
scope="next" postag_regexp="yes" postag="NN:.*:PL:Nom" /><exception 
scope="next" postag_regexp="yes" postag="PNN:.*" /></token>
                     <token  postag="NN:Masc:Sin:Nom" ><exception 
negate_pos="yes" postag="NN:Masc:Sin:Nom"  /></token>
                     <token  postag="VB:Past:PL"><exception negate_pos="yes"  
postag="VB:Past:PL"  /></token>               
                 </pattern>
                 
                 <message>Существительное не согласуется с глаголом по числу.
-                    <suggestion><match no="1"></match> <match no="2" 
postag="VB:Past:PL" postag_regexp="yes" 
postag_replace="VB:Past:Masc"></match></suggestion>
+                    <suggestion><match no="2"></match> <match no="3" 
postag="VB:Past:PL" postag_regexp="yes" 
postag_replace="VB:Past:Masc"></match></suggestion>
                 </message>
                 <short>Ошибка в согласовании по числу.</short>
                 <example type="correct">Кот грелся на солнышке.</example>
@@ -1024,14 +1029,15 @@
             </rule>
              <rule>  
                 
-                <pattern>
+                <pattern mark_from="1">
                     <!--           NN:Masc:Fem:Nom   VB:Past:!PL   -->
+                    <token  postag="SENT_START" skip ="-1"><exception 
scope="next" postag_regexp="yes" postag="NN:.*:PL:Nom" /><exception 
scope="next" postag_regexp="yes" postag="PNN:.*" /></token>                 
                     <token  postag="NN:Fem:Sin:Nom" ><exception 
negate_pos="yes"  postag="NN:Fem:Sin:Nom"  /></token>
                     <token  postag="VB:Past:PL"><exception negate_pos="yes"  
postag="VB:Past:PL"  /></token>               
                 </pattern>
                 
                 <message>Существительное не согласуется с глаголом по числу.
-                    <suggestion><match no="1"></match> <match no="2" 
postag="VB:Past:PL" postag_regexp="yes" 
postag_replace="VB:Past:Fem"></match></suggestion>
+                    <suggestion><match no="2"></match> <match no="3" 
postag="VB:Past:PL" postag_regexp="yes" 
postag_replace="VB:Past:Fem"></match></suggestion>
                 </message>
                 <short>Ошибка в согласовании по числу.</short>
                 <example type="correct">Кошка грелась на солнышке.</example>
@@ -1039,14 +1045,15 @@
             </rule>
              <rule>  
                 
-                <pattern>
+                <pattern mark_from="1">
                     <!--           NN:Masc:Neut:.*   VB:Past:!PL   -->
+                    <token  postag="SENT_START" skip ="-1"><exception 
scope="next" postag_regexp="yes" postag="NN:.*:PL:Nom" /><exception 
scope="next" postag_regexp="yes" postag="PNN:.*" /></token>
                     <token  postag="NN:Neut:Sin:Nom" ><exception 
negate_pos="yes" postag_regexp="yes" postag="NN:Neut:Sin:.*"  /></token>
                     <token  postag="VB:Past:PL"><exception negate_pos="yes"  
postag="VB:Past:PL"  /></token>               
                 </pattern>
                 
                 <message>Существительное не согласуется с глаголом по числу.
-                    <suggestion><match no="1"></match> <match no="2" 
postag="VB:Past:PL" postag_regexp="yes" 
postag_replace="VB:Past:Neut"></match></suggestion>
+                    <suggestion><match no="2"></match> <match no="3" 
postag="VB:Past:PL" postag_regexp="yes" 
postag_replace="VB:Past:Neut"></match></suggestion>
                 </message>
                 <short>Ошибка в согласовании по числу.</short>
                 <example type="correct">Блюдо готовилось на 
сковородке.</example>

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


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Languagetool-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs

Reply via email to