Revision: 10413
          http://sourceforge.net/p/languagetool/code/10413
Author:   gulp21-1
Date:     2013-07-03 10:11:16 +0000 (Wed, 03 Jul 2013)
Log Message:
-----------
[en] new rule: Wrong position of adverb

Modified Paths:
--------------
    
trunk/languagetool/languagetool-language-modules/en/src/main/resources/org/languagetool/rules/en/grammar.xml

Modified: 
trunk/languagetool/languagetool-language-modules/en/src/main/resources/org/languagetool/rules/en/grammar.xml
===================================================================
--- 
trunk/languagetool/languagetool-language-modules/en/src/main/resources/org/languagetool/rules/en/grammar.xml
        2013-07-02 22:56:39 UTC (rev 10412)
+++ 
trunk/languagetool/languagetool-language-modules/en/src/main/resources/org/languagetool/rules/en/grammar.xml
        2013-07-03 10:11:16 UTC (rev 10413)
@@ -5774,6 +5774,35 @@
     <!-- Grammar -->
     <!-- 
====================================================================== -->
     <category name="Grammar" type="grammar">
+        <rulegroup id="ADVERB_WORD_ORDER" name="Word order: Wrong position of 
adverb, e.g. 'Always I am happy. (I am always happy.)'">
+            <rule>
+                <pattern>
+                    <token postag="SENT_START"/>
+                    <marker>
+                        <token 
regexp="yes">Always|Rarely|Seldom|Hardly|Ever|Never</token>
+                    </marker>
+                    <token><exception postag="VB.*" 
postag_regexp="yes"/></token>
+                </pattern>
+                <message>The adverb \1 is usually not used at the beginning of 
a sentence.</message>
+                
<url>http://faculty.washington.edu/marynell/grammar/AdverbPl.html</url>
+                <example type="incorrect"><marker>Always</marker> I am 
happy.</example>
+                <example type="correct">I am <marker>always</marker> 
happy.</example>
+                <example type="correct"><marker>Always</marker> wear your 
helmet.</example>
+            </rule>
+            <rule>
+                <pattern>
+                    <token><exception postag="VB.*" 
postag_regexp="yes"/></token>
+                    <marker>
+                        <token 
regexp="yes">always|rarely|seldom|hardly|never</token>
+                    </marker>
+                    <token postag="SENT_END"/>
+                </pattern>
+                <message>The adverb \1 is usually not used at the end of a 
sentence.</message>
+                
<url>http://faculty.washington.edu/marynell/grammar/AdverbPl.html</url>
+                <example type="incorrect">I am happy 
<marker>always</marker>.</example>
+                <example type="correct">I am <marker>always</marker> 
happy.</example>
+            </rule>
+        </rulegroup>
         <rule id="GOING_TO_VBD" name="Use of past form with 'going to ...'">
             <pattern>
                 <token>going</token>

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Languagetool-commits mailing list
Languagetool-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-commits

Reply via email to