From: Robin D. <rd...@ip...> - 2014-08-27 15:05:12
|
Thanks Ruud, the skip="-1" worked perfectly :) Robin. On Tue, Aug 26, 2014 at 3:32 PM, R.J. Baars <r.j...@xs...> wrote: > 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 > > Lan...@li... > > https://lists.sourceforge.net/lists/listinfo/languagetool-devel > > > > > > > ------------------------------------------------------------------------------ > Slashdot TV. > Video for Nerds. Stuff that matters. > http://tv.slashdot.org/ > _______________________________________________ > Languagetool-devel mailing list > Lan...@li... > https://lists.sourceforge.net/lists/listinfo/languagetool-devel > |