summaryrefslogtreecommitdiff
path: root/public/vale/.vale-styles/Google/OptionalPlurals.yml
diff options
context:
space:
mode:
Diffstat (limited to 'public/vale/.vale-styles/Google/OptionalPlurals.yml')
-rw-r--r--public/vale/.vale-styles/Google/OptionalPlurals.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/public/vale/.vale-styles/Google/OptionalPlurals.yml b/public/vale/.vale-styles/Google/OptionalPlurals.yml
new file mode 100644
index 0000000..f858ea6
--- /dev/null
+++ b/public/vale/.vale-styles/Google/OptionalPlurals.yml
@@ -0,0 +1,12 @@
+extends: existence
+message: "Don't use plurals in parentheses such as in '%s'."
+link: 'https://developers.google.com/style/plurals-parentheses'
+level: error
+nonword: true
+action:
+ name: edit
+ params:
+ - remove
+ - '(s)'
+tokens:
+ - '\b\w+\(s\)'