Skip to content

Troubleshooting Sequence to find preposition at beginning of sentence #451

Answered by jdkato
jastram asked this question in Q&A
Discussion options

You must be logged in to vote

There are two problems:

  • pos is not a supported key; you likely meant tag.
  • ^ matches the start of a line, not a sentence.

With the latest release, you can now use something like this:

extends: sequence
message: "Sentence should not start with a preposition."
tokens:
  - pattern: '[A-Z][a-z]+'
    tag: PRP

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jastram
Comment options

Answer selected by jdkato
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants