-
Howdy vale community, I am trying to build a very simple rule: It should not allow a sentence to start with a preposition. For instance: "It must also display the date." is not allowed. Acceptable would be: "The application must also display the date." Tag for preposition is PRP, I double checked that this is correct by running "vale tag". I expected this rule to work, but it does not:
I was wondering whether I could simply apply both rules in one token, like this (does not work either):
What am I doing wrong?!? Using vale 2.18.0. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There are two problems:
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 |
Beta Was this translation helpful? Give feedback.
There are two problems:
pos
is not a supported key; you likely meanttag
.^
matches the start of a line, not a sentence.With the latest release, you can now use something like this: