Never mind. I've decided that JJ is better way. Here's what I've come up with:

<rule id="IN_A_X_MANNER" name="Wordiness: in a ... manner">
    <pattern>
        <token>in</token>
        <token>a</token>
<token postag="JJ"><exception regexp="yes">preparatory|good|modern|christian</exception></token>
        <token>manner</token>
    </pattern>
<message>Consider replacing "in a X manner" with adverb for X; eg, "in a hasty manner" with "hastily".</message>
<short>Possibly wordy</short>
<example type="incorrect">He came <marker>in a hasty manner</marker>.</example>
    <example type="correct">He came hastily.</example>


gulp21 wrote thus at 06:10 PM 06-09-13:
>>> Is .*? the best way to specify "any-word" as a token? I wonder
>>> if it might be overkill.
>>
>> You can just use <token/> for that.
>
> What if I need to specify exceptions?

Use <token><exception>…</exception></token>.

Regards
Markus

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________
Languagetool-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-devel
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________
Languagetool-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-devel

Reply via email to