constellation/docs/styles/Microsoft/OxfordComma.yml
2022-09-02 11:52:42 +02:00

9 lines
233 B
YAML

extends: existence
message: "Use the Oxford comma in '%s'."
link: https://docs.microsoft.com/en-us/style-guide/punctuation/commas
scope: sentence
level: suggestion
nonword: true
tokens:
- '(?:[^\s,]+,){1,} \w+ (?:and|or) \w+[.?!]'