I suggest either removing Always and Never from this rule, or add adjectives to the exception in the last token.

<rule>
        <pattern>
                <token postag="SENT_START"/> <!-- or but -->
                <marker>
<token regexp="yes">Always|Hardly|Never|Rarely|Seldom</token>
                </marker>
<token><exception postag="VB.*|MD" postag_regexp="yes"/></token>
        </pattern>
<message>The adverb '\2' 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>

This is an example why testing with Wikipedia is inadequate. We need to test with non-formal styles of language.

kb 
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Languagetool-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-devel

Reply via email to