Revision: 7117
http://languagetool.svn.sourceforge.net/languagetool/?rev=7117&view=rev
Author: gulp21-1
Date: 2012-05-31 15:06:19 +0000 (Thu, 31 May 2012)
Log Message:
-----------
[en] new rules: error massage (message), chance (change) a setting
Modified Paths:
--------------
trunk/JLanguageTool/src/rules/en/grammar.xml
Modified: trunk/JLanguageTool/src/rules/en/grammar.xml
===================================================================
--- trunk/JLanguageTool/src/rules/en/grammar.xml 2012-05-31 15:03:25 UTC
(rev 7116)
+++ trunk/JLanguageTool/src/rules/en/grammar.xml 2012-05-31 15:06:19 UTC
(rev 7117)
@@ -73,6 +73,34 @@
<example correction="de jure" type="incorrect">There is no
<marker>de juro</marker> segregation allowed by law anywhere in the United
States.</example>
<example type="correct">There is no de jure segregation allowed by
law anywhere in the United States.</example>
</rule>
+ <rule id="MASSAGE_MESSAGE" name="error massage (message)">
+ <pattern>
+ <token skip="1" regexp="yes"
inflected="yes">diagnostic|deliver|email|error|new|radio|send|text</token>
+ <marker>
+ <token inflected="yes">massage</token>
+ </marker>
+ <token negate="yes" regexp="yes"
inflected="yes">instruction|method|salon|stroke|studio</token>
+ </pattern>
+ <message>Did you mean <suggestion><match no="2"
regexp_match="massag" regexp_replace="messag"/></suggestion>?</message>
+ <short>Possible typo</short>
+ <example type="correct">There is an error
<marker>message</marker>.</example>
+ <example type="correct">That is a new <marker>massage</marker>
method.</example>
+ <example correction="message" type="incorrect">There is an error
<marker>massage</marker>.</example>
+ <example correction="messages" type="incorrect">I sent different
<marker>massages</marker>.</example>
+ </rule>
+ <rule id="CHANCE_CHANGE" name="chance (change) a setting">
+ <pattern>
+ <marker>
+ <token inflected="yes" skip="3">chance <exception
scope="next">change</exception></token>
+ </marker>
+ <token regexp="yes"
inflected="yes">behaviou?r|mode|setting</token>
+ </pattern>
+ <message>Did you mean <suggestion><match no="1"
regexp_match="chanc" regexp_replace="chang"/></suggestion>?</message>
+ <short>Possible typo</short>
+ <example type="correct">Do not <marker>change</marker> these
settings!</example>
+ <example correction="change" type="incorrect">Do not
<marker>chance</marker> these settings!</example>
+ <example correction="changes" type="incorrect">He always
<marker>chances</marker> the behaviour of the application.</example>
+ </rule>
<rule id="I_THIN" name="I thin (think)">
<pattern>
<token negate="yes" regexp="yes">am|do|can|will</token>
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