Revision: 10137
http://sourceforge.net/p/languagetool/code/10137
Author: dnaber
Date: 2013-05-23 19:49:49 +0000 (Thu, 23 May 2013)
Log Message:
-----------
[km] added some rules by Nathan Wells
Modified Paths:
--------------
trunk/languagetool/languagetool-language-modules/km/src/main/resources/org/languagetool/rules/km/coherency.txt
trunk/languagetool/languagetool-language-modules/km/src/main/resources/org/languagetool/rules/km/grammar.xml
trunk/languagetool/languagetool-standalone/CHANGES.txt
Modified:
trunk/languagetool/languagetool-language-modules/km/src/main/resources/org/languagetool/rules/km/coherency.txt
===================================================================
---
trunk/languagetool/languagetool-language-modules/km/src/main/resources/org/languagetool/rules/km/coherency.txt
2013-05-23 18:27:31 UTC (rev 10136)
+++
trunk/languagetool/languagetool-language-modules/km/src/main/resources/org/languagetool/rules/km/coherency.txt
2013-05-23 19:49:49 UTC (rev 10137)
@@ -1,9 +1,19 @@
#Khmer Multiple Spellings
លោកុត្តរា=លោកុត្តរ
+លោកីយ=លោកីយ៍
+ជ័យជំនះ=ជ័យជម្នះ
+សំដី=សម្ដី
+ពាក្យសំដី=ពាក្យសម្ដី
+ខាងវិញ្ញាណ=ខាងឯវិញ្ញាណ
+សំអាង=សម្អាង
+ផែនការណ៍=ផែនការ
+មិត្តសំឡាញ់|មិត្តសំលាញ់|មិត្តសម្លាញ់=មិត្រសម្លាញ់
+មិត្តភក្ដិ|មិត្តភ័ក្ដិ=មិត្រភក្ដិ
+គម្រោងការណ៍=គម្រោងការ
+ទោះបើ=ទោះបី
វចីសុចរិត=វចីកម្ម
កងកេង=កេងកង
កង្កាញ់=អង្កាញ់
-កង្កាញ់=អង្កាញ់
កង្កុញ=អង្កុញ
កង្កួច=អង្កួច
កង្កួញ=អង្កួញ
@@ -224,8 +234,7 @@
ត្បុល=ត្បុរ
ត្រដេវវ៉ិច=ត្រដេវវិច
ត្រដែ=ត្រដេ
-មិត្តភ័ក្ដិ=មិត្តភក្ដិ
-ត្រឡប់=ត្រលប់
+ត្រលប់=ត្រឡប់
ត្រឡាត់=ត្រលាត់
ត្រឡាំង=ត្រលាំង
ត្រឡិន=ត្រលិន
@@ -538,7 +547,7 @@
ព្រះយេស៊ូ=ព្រះយេស៊ូវ
ព្រះហស្ថ=ព្រះហត្ត
ព័ណ៌=ពណ៌
-ព័ណ៌នា=ពណ៌នា
+ពិពណ៌នា|ព័ណ៌នា=ពណ៌នា
ព័ន្ធធ្លុង=ព័ទ្ធធ្លុង
ភក់ល្បាប់=ភក់
ភគន្ទលា=ភគណ្ឌលា
@@ -593,7 +602,6 @@
មជ្ជៈ=មជ្ជ
មជ្ឈេលោប=មជ្ឈេលុប
មតកៈ=មតក
-មិត្តសំឡាញ់|មិត្តសំលាញ់=មិត្តសម្លាញ់
មត៌ក|ម្រឹតក=មរតក
មត្តេយ្យកា=មត្តេយ្យកៈ
មទ្ររាស្ត្រ=មទ្ទរដ្ឋ
@@ -625,7 +633,8 @@
មាតុកម្ម=មាតុឃាត
មាតុលា=មាតុលៈ
មិគទាយវ័ន=មិគទាយពន
-មិត្រ=មិត្ត
+មិត្ត=មិត្រ
+មិត្តភាព=មិត្រភាព
មិថុនៈ|មិថុន=មិថុនា
មីនៈ=មីន
មុះមុត=មោះមុត
@@ -767,7 +776,7 @@
រំលាក=រម្លាក
រំលាយ=រម្លាយ
រំលីង=រម្លីង
-រំលឹក|រំឭក=រម្លឹក
+រំលឹក|រម្លឹក=រំឭក
រំលុប=រម្លុប
រំលុះ=រម្លុះ
រំលូត=រម្លូត
@@ -833,7 +842,7 @@
លំអន់=លម្អន់
លំអិត=លម្អិត
លំអៀង=លម្អៀង
-ល័ក្ខខ័ណ្ឌ=លក្ខខណ្ឌ
+លក្ខខ័ណ្ឌ|ល័ក្ខខ័ណ្ឌ=លក្ខខណ្ឌ
លក្ខណៈសម្បត្ដិ=លក្ខណសម្បត្តិ
ល័ក្សណ៍=លក្សណ៍
ល័ក្សណ៍=ល័ក្ខណ៍
Modified:
trunk/languagetool/languagetool-language-modules/km/src/main/resources/org/languagetool/rules/km/grammar.xml
===================================================================
---
trunk/languagetool/languagetool-language-modules/km/src/main/resources/org/languagetool/rules/km/grammar.xml
2013-05-23 18:27:31 UTC (rev 10136)
+++
trunk/languagetool/languagetool-language-modules/km/src/main/resources/org/languagetool/rules/km/grammar.xml
2013-05-23 19:49:49 UTC (rev 10137)
@@ -64,6 +64,89 @@
នោះ<marker>ហើយនឹង</marker>នេះ។
</example>
</rule>
+ <rule id="HARA_PLANT" name="ហោរ៉ា (ហោរា)">
+ <pattern>
+ <marker>
+ <token>ហោរ៉ា</token>
+ </marker>
+ </pattern>
+ <message>Did you really mean the plant or a prophet?
+ <suggestion>ហោរា</suggestion>?
+ </message>
+ <example type="correct">
+ របស់ពួក<marker>ហោរា</marker>ម្នាក់
+ </example>
+ <example type="incorrect" correction="ហោរា">
+ របស់ពួក<marker>ហោរ៉ា</marker>ម្នាក់
+ </example>
+ </rule>
+ <rule id="TBUT_DBUT" name="ត្បិត (ដ្បិត)">
+ <pattern>
+ <token><exception>រឹត</exception></token>
+ <marker>
+ <token>ត្បិត</token>
+ </marker>
+ </pattern>
+ <message>Consider using the spelling of Chuon Nath
+ <suggestion>ដ្បិត</suggestion>?
+ </message>
+ <example type="correct">
+ កាត់<marker>ដ្បិត</marker>សេចក្តីសប្បុរស
+ </example>
+ <example type="incorrect" correction="ដ្បិត">
+ កាត់<marker>ត្បិត</marker>សេចក្តីសប្បុរស
+ </example>
+ </rule>
+ <rule id="KHANG_VITNEAN" name="ខាងវិញ្ញាណ (ខាងឯវិញ្ញាណ)">
+ <pattern>
+ <marker>
+ <token>ខាង</token>
+ <token>វិញ្ញាណ</token>
+ </marker>
+ </pattern>
+ <message>Stylistic suggestion. Use:
+ <suggestion>ខាងឯវិញ្ញាណ</suggestion>?
+ </message>
+ <example type="correct">
+ ជីវិត<marker>ខាងឯវិញ្ញាណ</marker>ដ៏ល្អ
+ </example>
+ <example type="incorrect" correction="ខាងឯវិញ្ញាណ">
+ ជីវិត<marker>ខាងវិញ្ញាណ</marker>ដ៏ល្អ
+ </example>
+ </rule>
+ <rule id="THUA_BAU" name="ទោះបើ (ទោះបី)">
+ <pattern>
+ <token>ទោះ</token>
+ <marker>
+ <token>បើ</token>
+ </marker>
+ </pattern>
+ <message>Stylistic suggestion. Use:
+ ទោះ<suggestion>បី</suggestion> instead.
+ </message>
+ <example type="correct">
+ ខ្លួនទោះ<marker>បី</marker>ជាប្រឈម
+ </example>
+ <example type="incorrect" correction="បី">
+ ខ្លួនទោះ<marker>បើ</marker>ជាប្រឈម
+ </example>
+ </rule>
+ <rule id="BANAT_VERB" name="បញ្ញត្ត (បញ្ញត្តិ)">
+ <pattern>
+ <marker>
+ <token>បញ្ញត្ត</token>
+ </marker>
+ </pattern>
+ <message>បញ្ញត្ត is a verb, did you mean to use បញ្ញត្តិ the noun
form?
+ <suggestion>បញ្ញត្តិ</suggestion>?
+ </message>
+ <example type="correct">
+ មាន<marker>បញ្ញត្តិ</marker>ជាអារម្មណ៍
+ </example>
+ <example type="incorrect" correction="បញ្ញត្តិ">
+ មាន<marker>បញ្ញត្ត</marker>ជាអារម្មណ៍
+ </example>
+ </rule>
<rule id="NUNG_PDOAL" name="និងថ្កល់ (នឹងថ្កល់)">
<pattern>
<token>និង</token>
@@ -485,5 +568,38 @@
<marker>ការអភិវឌ្ឍន៍</marker>សង្គម។
</example>
</rule>
+ <rule id="DOUBLE_NOUNS" name="Do not double up nouns">
+ <pattern>
+ <token
regexp="yes">(សេចក្តី|សេចក្ដី|ការ|ភាព|អំពើ)(ជំនឿ|ទំនាក់ទំនង|តម្រូវការ)</token>
+ </pattern>
+ <message>Do not add a noun modifier to a word that is already a
noun.
+ <suggestion><match no="1"
regexp_match="(សេចក្តី|សេចក្ដី|ការ|ភាព|អំពើ)(ជំនឿ|ទំនាក់ទំនង|តម្រូវការ)"
regexp_replace="$2"></match></suggestion>
+ </message>
+ <short>Do not add a noun modifier to a word that is already a
noun.</short>
+ <example type="correct">
+ <marker>ជំនឿ</marker>ដ៏ពិត។
+ </example>
+ <example type="incorrect" correction="ជំនឿ">
+ <marker>ការជំនឿ</marker>ដ៏ពិត។
+ </example>
+ </rule>
+ <rule id="DOUBLE_NOUNS2" name="Do not double up nouns 2">
+ <pattern>
+ <marker>
+ <token
regexp="yes">(សេចក្តី|សេចក្ដី|ការ|ភាព|អំពើ)</token>
+ <token
regexp="yes">(ជំនឿ|ទំនាក់ទំនង|តម្រូវការ)</token>
+ </marker>
+ </pattern>
+ <message>Do not add a noun modifier to a word that is already a
noun.
+ <suggestion>\2</suggestion>
+ </message>
+ <short>Do not add a noun modifier to a word that is already a
noun.</short>
+ <example type="correct">
+ <marker>ជំនឿ</marker>ដ៏ពិត។
+ </example>
+ <example type="incorrect" correction="ជំនឿ">
+ <marker>ការជំនឿ</marker>ដ៏ពិត។
+ </example>
+ </rule>
</category>
</rules>
\ No newline at end of file
Modified: trunk/languagetool/languagetool-standalone/CHANGES.txt
===================================================================
--- trunk/languagetool/languagetool-standalone/CHANGES.txt 2013-05-23
18:27:31 UTC (rev 10136)
+++ trunk/languagetool/languagetool-standalone/CHANGES.txt 2013-05-23
19:49:49 UTC (rev 10137)
@@ -9,7 +9,7 @@
-rules have been categorized according to the upcoming Internationalization
Tag Set (ITS)
Version 2.0 standard from W3C.
- -Dutch
+ -Dutch:
-updated rules to fix false alarms, thanks to Ruud Baars
-French:
@@ -18,6 +18,9 @@
-Greek:
-added a few rules (by Panagiotis Minos)
+ -Khmer:
+ -added some rules (by Nathan Wells)
+
-Russian:
-added some new rules (thanks for this rules to Julia Semenenko)
-fixed some false alarms
@@ -25,7 +28,7 @@
-added false-friend rule
-added bitext rule
- -Ukrainian
+ -Ukrainian:
-new POS dictionary
-new synthesizer dictionary
-new spelling dictionary
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Languagetool-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-commits