speice.io/.styles/Microsoft/OxfordComma.yml

9 lines
233 B
YAML
Raw Normal View History

2024-09-30 21:01:59 -04:00
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+[.?!]'