Revision: 7332
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=7332&view=rev
Author:   milek_pl
Date:     2012-06-13 08:21:57 +0000 (Wed, 13 Jun 2012)
Log Message:
-----------
[pl] fix false alarms

Modified Paths:
--------------
    trunk/JLanguageTool/src/resource/pl/disambiguation.xml
    trunk/JLanguageTool/src/rules/pl/grammar.xml

Modified: trunk/JLanguageTool/src/resource/pl/disambiguation.xml
===================================================================
--- trunk/JLanguageTool/src/resource/pl/disambiguation.xml      2012-06-12 
19:54:33 UTC (rev 7331)
+++ trunk/JLanguageTool/src/resource/pl/disambiguation.xml      2012-06-13 
08:21:57 UTC (rev 7332)
@@ -152,7 +152,13 @@
         </rule>
     </rulegroup>
     
-
+    <rule name="MIMO to nie wołacz" id="MIMO_NIE_VOC">
+       <pattern>
+               <token>mimo</token>
+       </pattern>
+       <disambig postag="prep:gen"/>           
+    </rule>
+        
     <rulegroup name="prep + czasownik -> ~ czasownik" id="prep_verb">
         <!--  przyimki zawsze z tym samym przypadkiem -->
         <rule>
@@ -879,4 +885,14 @@
        <example type="ambiguous" 
inputform="luty[lut/subst:pl:acc:m3,lut/subst:pl:nom:m3,lut/subst:pl:voc:m3,luty/adj:sg:acc:m3:pos,luty/adj:sg:nom.voc:m1.m2.m3:pos,luty/subst:sg:acc:m3,luty/subst:sg:nom:m3,luty/subst:sg:voc:m3]"
 
outputform="luty[luty/adj:sg:acc:m3:pos,luty/adj:sg:nom.voc:m1.m2.m3:pos,luty/subst:sg:acc:m3,luty/subst:sg:nom:m3,luty/subst:sg:voc:m3]">25
 <marker>luty</marker> to data.</example>
     </rule>
     
+    <rule name="no, halo - interj" id="no_halo_interj">
+       <pattern>
+               <token postag="SENT_START"/>
+               <marker>
+               <token regexp="yes">no|halo|cóż</token>
+               </marker>
+       </pattern>
+       <disambig postag="interj"></disambig>
+    </rule>
+    
 </rules>
\ No newline at end of file

Modified: trunk/JLanguageTool/src/rules/pl/grammar.xml
===================================================================
--- trunk/JLanguageTool/src/rules/pl/grammar.xml        2012-06-12 19:54:33 UTC 
(rev 7331)
+++ trunk/JLanguageTool/src/rules/pl/grammar.xml        2012-06-13 08:21:57 UTC 
(rev 7332)
@@ -1177,7 +1177,7 @@
         <rule id="WOLACZ_BEZ_PRZECINKA" name="Brak przecinka po wołaczu na 
początku zdania">
             <pattern>
                 <token postag="SENT_START"></token>
-                <token postag=".*voc.*" postag_regexp="yes" 
skip="-1"><exception postag=".*nom.*|conj|pred|verb.*|adv.*|.*m3|indecl" 
postag_regexp="yes" 
scope="current"></exception><exception>kogo</exception><exception regexp="yes" 
scope="next">[,-–—!\.]</exception></token>
+                <token postag=".*voc.*" postag_regexp="yes" 
skip="-1"><exception postag=".*nom.*|conj|pred|verb.*|adv.*|.*m3|indecl" 
postag_regexp="yes" scope="current"></exception><exception 
regexp="yes">kogo|coście</exception><exception regexp="yes" 
scope="next">[,-–—!\.]</exception></token>
                 <marker>
                     <token><exception regexp="yes" 
scope="current">[,-–—!\.]</exception><exception postag=".*voc.*" 
postag_regexp="yes"></exception></token>
                 </marker>
@@ -1187,6 +1187,7 @@
             <example type="incorrect">Agato<marker> czas</marker> na 
Colgate!</example>
             <example type="correct">Agato, czas na Colgate!</example>
             <example type="correct">Obywatelu kapitanie, czas na 
Colgate!</example>
+            <example type="correct">Coście się tak, babuniu, za nos 
chwyciła?</example>
         </rule>
         <rule id="JAK_I" name="Brak przecinka przed „jak i”">
             <pattern>

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