Revision: 6426 http://languagetool.svn.sourceforge.net/languagetool/?rev=6426&view=rev Author: yakovru Date: 2012-02-04 19:23:24 +0000 (Sat, 04 Feb 2012) Log Message: ----------- [ru] fix false positives in rules NN_VERB
Modified Paths: -------------- trunk/JLanguageTool/src/rules/ru/grammar.xml Modified: trunk/JLanguageTool/src/rules/ru/grammar.xml =================================================================== --- trunk/JLanguageTool/src/rules/ru/grammar.xml 2012-02-04 19:16:21 UTC (rev 6425) +++ trunk/JLanguageTool/src/rules/ru/grammar.xml 2012-02-04 19:23:24 UTC (rev 6426) @@ -7,7 +7,7 @@ LanguageTool. Copyright (C) 2005 Daniel Naber (http://www.danielnaber.de) A Russian rule file for LanguageTool Copyright (C) 2008-2012 Yakov Reztsov -$Id: grammar.xml,v 1.83 2012-01-24 18:12:01 yakovru Exp $ +$Id: grammar.xml,v 1.85 2012-02-04 19:05:35 yakovru Exp $ # REVISION: $Id$ --> <rules lang="ru" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" @@ -1060,24 +1060,22 @@ <example type="incorrect"><marker>Блюдо готовился</marker> на сковородке.</example> </rule> - <rule> - + <!-- NN:.*:PL:Nom VB:Past:PL !!!!!!!!!!!!!!!! --> + <!-- + <rule> <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="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> - <example type="incorrect"><marker>Кошки грелся</marker> на солнышке.</example> + <example type="correct">Коты грелись на солнышке.</example> + <example type="incorrect"><marker>Коты грелся</marker> на солнышке.</example> </rule> - - +--> <rule> <pattern mark_from="1"> @@ -1114,7 +1112,7 @@ <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:.*" /><exception scope="next" postag_regexp="yes" postag="PNN:.*" /></token> + <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:.*" /><exception scope="previous" regexp="yes" >и|,</exception></token> <token postag="VB:Past:PL"><exception negate_pos="yes" postag="VB:Past:PL" /></token> </pattern> 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 Languagetool-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-cvs