You could look at the skip-statement in the wiki; that shows stuff like this.

Ruud

> Hi,
>
> I'm trying to write a rule that identifies missing question marks in
> interrogative sentences which start with a verb e.g. Is, Are, Should,
> Could, Can etc...
>
> Is a paperless office really possible? <-- correct
> Is a paperless office really possible <-- incorrect
> Is a paperless office really possible. <-- incorrect
>
> Below is my attempt at writing the rule, but it does not work.
>
> <pattern>
>
> <token postag="SENT_START"/>
>
> <token postag="VBZ"/><!-- Sentence that starts with a verb -->
>
> <token regexp="yes">[\s\S]*</token>--><!-- match any string i.e. any
> sequence of words -->
>
> <token negate="yes">?</token><!-- detect if sentence does not end with a
> question mark -->
>
> <token postag="SENT_END"/>
>
> </pattern>
> I'm guessing there is something wrong with the third token i.e. where I am
> attempting to match any sequence of words.
>
> Any advice on how to get this working would be appreciated.
>
> Thanks
> Robin.
> ------------------------------------------------------------------------------
> Slashdot TV.
> Video for Nerds.  Stuff that matters.
> http://tv.slashdot.org/_______________________________________________
> Languagetool-devel mailing list
> Languagetool-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/languagetool-devel
>



------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Languagetool-devel mailing list
Languagetool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-devel

Reply via email to