Revision: 7058
http://languagetool.svn.sourceforge.net/languagetool/?rev=7058&view=rev
Author: milek_pl
Date: 2012-05-26 09:49:11 +0000 (Sat, 26 May 2012)
Log Message:
-----------
[pl] small update of the affix file, change multiword chunking that obscured
some real mistakes, change tests because of this
Modified Paths:
--------------
trunk/JLanguageTool/.classpath
trunk/JLanguageTool/src/resource/pl/hunspell/pl_PL.aff
trunk/JLanguageTool/src/resource/pl/multiwords.txt
trunk/JLanguageTool/src/test/org/languagetool/rules/HunspellRuleTest.java
trunk/JLanguageTool/src/test/org/languagetool/tools/ToolsTest.java
Modified: trunk/JLanguageTool/.classpath
===================================================================
--- trunk/JLanguageTool/.classpath 2012-05-26 08:20:29 UTC (rev 7057)
+++ trunk/JLanguageTool/.classpath 2012-05-26 09:49:11 UTC (rev 7058)
@@ -42,6 +42,6 @@
<classpathentry kind="lib" path="libs/commons-validator-1.3.1.jar"/>
<classpathentry kind="lib" path="libs/xml-text-editor-0.0.3.jar"/>
<classpathentry kind="lib" path="libs/morfologik-fsa-1.5.2.jar"/>
- <classpathentry kind="lib" path="libs/morfologik-stemming-1.5.2.jar"/>
+ <classpathentry kind="lib" path="libs/morfologik-stemming-1.5.2.jar"
sourcepath="C:/Users/user/.m2/repository/org/carrot2/morfologik-stemming/1.5.2/morfologik-stemming-1.5.2-sources.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
Modified: trunk/JLanguageTool/src/resource/pl/hunspell/pl_PL.aff
===================================================================
--- trunk/JLanguageTool/src/resource/pl/hunspell/pl_PL.aff 2012-05-26
08:20:29 UTC (rev 7057)
+++ trunk/JLanguageTool/src/resource/pl/hunspell/pl_PL.aff 2012-05-26
09:49:11 UTC (rev 7058)
@@ -1,5 +1,5 @@
SET ISO8859-2
-TRY
aioeznrwcysptkmd\xB3ulj\xB1gbh\xEA\xB6\xE6\xF3\xBFf\xF1\xBCvqxAIOEZNRWCYSPTKMD\xA3ULJ\xA1GBHʦ\xC6ӯFѬVQX
+TRY
aioeznrwcysptkmd\xB3ulj\xB1gbh\xEA\xB6\xE6\xF3\xBFf\xF1\xBCvqxAIOEZNRWCYSPTKMD\xA3ULJ\xAF\xA6ơGBH\xCA\xD3FѬVQX
WORDCHARS -
PFX b Y 1
@@ -7158,15 +7158,16 @@
SFX G \xBC\xE6 z\xB1ce le\xBC\xE6
SFX G \xBC\xE6 z\xB1cej le\xBC\xE6
MAP 8
-MAP a\xB1
-MAP c\xE6
-MAP e\xEA
-MAP l\xB3
-MAP n\xF1
-MAP o\xF3u
-MAP s\xB6
-MAP z\xBF\xBC
-REP 64
+MAP a\xB1A\xA1
+MAP c\xE6\xC6C
+MAP e\xEAE\xCA
+MAP l\xB3\xA3L
+MAP n\xF1N\xD1
+MAP o\xF3u\xD3O
+MAP s\xB6\xA6S
+MAP z\xBF\xBCZ\xAC\xAF
+
+REP 94
REP \xBC zi
REP \xB3 eu
REP \xE6 ci
@@ -7231,3 +7232,33 @@
REP zl az\xB3
REP z \xBFn
REP z rz
+REP ch\xB3opcowi ch\xB3opcu
+REP bratowi bratu
+REP conajmniej co_najmniej
+REP wogle w_og\xF3le
+REP codzien co_dzie\xF1
+REP aleji alei
+REP lubie\xE6 lubi\xE6
+REP mass-media mass_media
+REP moznaby mo\xBFna_by
+REP narazie na_razie
+REP nei nie
+REP nielada nie_lada
+REP odrazu od_razu
+REP \xBCmie zmie
+REP piatek pi\xB1tek
+REP pokuj pok\xF3j
+REP poprostu po_prostu
+REP posz\xB3em poszed\xB3em
+REP pozatym poza_tym
+REP prosze prosz\xEA
+REP przedewszystkim przede_wszystkim
+REP wogole w_og\xF3le
+REP rz\xB1da \xBF\xB1da
+REP sa s\xB1
+REP sei si\xEA
+REP spowrotem z_powrotem
+REP standart standard
+REP trzcionk czcionk
+REP sz\xB3em szed\xB3em
+REP pry przy
Modified: trunk/JLanguageTool/src/resource/pl/multiwords.txt
===================================================================
--- trunk/JLanguageTool/src/resource/pl/multiwords.txt 2012-05-26 08:20:29 UTC
(rev 7057)
+++ trunk/JLanguageTool/src/resource/pl/multiwords.txt 2012-05-26 09:49:11 UTC
(rev 7058)
@@ -2,9 +2,7 @@
... ELLIPSIS
bez mała ADV
to znaczy TO_ZNACZY
-To znaczy TO_ZNACZY
to jest TO_JEST
-To jest TO_JEST
z uwagi na PREP:ACC
ze względu na PREP:ACC
bez względu na PREP:ACC
Modified:
trunk/JLanguageTool/src/test/org/languagetool/rules/HunspellRuleTest.java
===================================================================
--- trunk/JLanguageTool/src/test/org/languagetool/rules/HunspellRuleTest.java
2012-05-26 08:20:29 UTC (rev 7057)
+++ trunk/JLanguageTool/src/test/org/languagetool/rules/HunspellRuleTest.java
2012-05-26 09:49:11 UTC (rev 7058)
@@ -54,7 +54,7 @@
assertEquals(1, matches.length);
assertEquals(0, matches[0].getFromPos());
assertEquals(4, matches[0].getToPos());
- assertEquals("Żółw", matches[0].getSuggestedReplacements().get(9));
+ assertEquals("Żółw", matches[0].getSuggestedReplacements().get(0));
}
Modified: trunk/JLanguageTool/src/test/org/languagetool/tools/ToolsTest.java
===================================================================
--- trunk/JLanguageTool/src/test/org/languagetool/tools/ToolsTest.java
2012-05-26 08:20:29 UTC (rev 7057)
+++ trunk/JLanguageTool/src/test/org/languagetool/tools/ToolsTest.java
2012-05-26 09:49:11 UTC (rev 7058)
@@ -46,7 +46,7 @@
assertEquals(0, output.indexOf("Time:"));
assertEquals(0, matches);
- matches = Tools.checkText("To jest jest problem.", tool);
+ matches = Tools.checkText("To jest problem problem.", tool);
output = new String(this.out.toByteArray());
assertTrue(output.contains("Rule ID: WORD_REPEAT_RULE"));
assertEquals(1, matches);
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