Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 May 2023 07:47:41 GMT
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org
Subject:   git: cd44a8a530 - main - vale: Add new rule to reduce usage of pronouns
Message-ID:  <202305100747.34A7lfbH028952@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/doc/commit/?id=cd44a8a530f3e3c26a197337d4181f1ed9c3d635

commit cd44a8a530f3e3c26a197337d4181f1ed9c3d635
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-05-10 07:46:15 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-05-10 07:47:29 +0000

    vale: Add new rule to reduce usage of pronouns
    
    Add various pronouns and their sub derivatives which are widely used in
    our websites and documentation specially the usage of you.
    
    Approved by:    bcr (mentor)
    Differential Revision:  https://reviews.freebsd.org/D40029
---
 .vale.ini                         |  1 +
 .vale/styles/FreeBSD/Pronouns.yml | 24 ++++++++++++++++++++++++
 2 files changed, 25 insertions(+)

diff --git a/.vale.ini b/.vale.ini
index 60ce75b98d..2ce1390bf8 100644
--- a/.vale.ini
+++ b/.vale.ini
@@ -20,6 +20,7 @@ FreeBSD.ConsciousLanguage = NO
 FreeBSD.Contractions = NO
 FreeBSD.Hang = NO
 FreeBSD.Hyphens = NO
+FreeBSD.Pronouns = NO
 FreeBSD.SuperfluousOptArgInLinks = NO
 FreeBSD.SemanticLineBreak = NO
 FreeBSD.Spacing = NO
diff --git a/.vale/styles/FreeBSD/Pronouns.yml b/.vale/styles/FreeBSD/Pronouns.yml
new file mode 100644
index 0000000000..15d8352874
--- /dev/null
+++ b/.vale/styles/FreeBSD/Pronouns.yml
@@ -0,0 +1,24 @@
+---
+extends: existence
+message: "Avoid pronouns such as '%s'."
+ignorecase: true
+level: warning
+nonword: true
+tokens:
+  - (?:^|\s)I\s
+  - (?:^|\s)I,\s
+  - \bI'm\b
+  - \bme\b
+  - \bmy\b
+  - \bmine\b
+  - he/she
+  - s/he
+  - \(s\)he
+  - we
+  - we'(?:ve|re)
+  - ours?
+  - us
+  - let's
+  - you
+  - yours?
+  - you'(?:ve|re)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202305100747.34A7lfbH028952>