-
I don't work much with NLTK so might be missing something fundamental. These statements are fine, and should not trigger any rules: These and similar statements should trigger the rule: I've been trying to do this by using the sequence extension:
I haven't worked out how to identify punctuation yet; one thing at a time. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I think you want to extends: sequence
message: "Don't use '%s'."
tokens:
- pattern: following
- tag: NN|NNS|NNP|NNPS
negate: true |
Beta Was this translation helpful? Give feedback.
I think you want to
negate
the final token: