summaryrefslogtreecommitdiff
path: root/public/vale/.vale-styles/Google/OxfordComma.yml
diff options
context:
space:
mode:
Diffstat (limited to 'public/vale/.vale-styles/Google/OxfordComma.yml')
-rw-r--r--public/vale/.vale-styles/Google/OxfordComma.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/public/vale/.vale-styles/Google/OxfordComma.yml b/public/vale/.vale-styles/Google/OxfordComma.yml
new file mode 100644
index 0000000..b9ba21e
--- /dev/null
+++ b/public/vale/.vale-styles/Google/OxfordComma.yml
@@ -0,0 +1,7 @@
+extends: existence
+message: "Use the Oxford comma in '%s'."
+link: 'https://developers.google.com/style/commas'
+scope: sentence
+level: warning
+tokens:
+ - '(?:[^,]+,){1,}\s\w+\s(?:and|or)'