Skip to content

Commit 5b1cd37

Browse files
committed
CodingGuidelines: recommend gender-neutral description
Technical writing seeks to convey information with minimal friction. One way that a reader can experience friction is if they encounter a description of "a user" that is later simplified using a gendered pronoun. If the reader does not consider that pronoun to apply to them, then they can experience cognitive dissonance that removes focus from the information. Give some basic tips to guide us avoid unnecessary uses of gendered description. Using a gendered pronoun is appropriate when referring to a specific person. There are acceptable existing uses of gendered pronouns within the Git codebase, such as: * References to real people (e.g. Linus Torvalds, "the Git maintainer"). Do not misgender real people. If there is any doubt to the gender of a person, then avoid using pronouns. * References to fictional people with clear genders (e.g. Alice and Bob). * Sample text used in test cases (e.g t3702, t6432). * The official text of the GPL license contains uses of "he or she", but using singular "they" (or modifying the text in some other way) is not within the scope of the Git project. * Literal email messages in Documentation/howto/ should not be edited for grammatical concerns such as this, unless we update the entire document to fit the standard documentation format. If such an effort is taken on, then the authorship would change and no longer refer to the exact mail message. * External projects consumed in contrib/ should not deviate solely for style reasons. Recommended edits should be contributed to those projects directly. Other cases within the Git project were cleaned up by the previous changes. Co-authored-by: Junio C Hamano <[email protected]> Signed-off-by: Derrick Stolee <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 46a237f commit 5b1cd37

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

Documentation/CodingGuidelines

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,51 @@ Writing Documentation:
541541
documentation, please see the documentation-related advice in the
542542
Documentation/SubmittingPatches file).
543543

544+
In order to ensure the documentation is inclusive, avoid assuming
545+
that an unspecified example person is male or female, and think
546+
twice before using "he", "him", "she", or "her". Here are some
547+
tips to avoid use of gendered pronouns:
548+
549+
- Prefer succinctness and matter-of-factly describing functionality
550+
in the abstract. E.g.
551+
552+
--short:: Emit output in the short-format.
553+
554+
and avoid something like these overly verbose alternatives:
555+
556+
--short:: Use this to emit output in the short-format.
557+
--short:: You can use this to get output in the short-format.
558+
--short:: A user who prefers shorter output could....
559+
--short:: Should a person and/or program want shorter output, he
560+
she/they/it can...
561+
562+
This practice often eliminates the need to involve human actors in
563+
your description, but it is a good practice regardless of the
564+
avoidance of gendered pronouns.
565+
566+
- When it becomes awkward to stick to this style, prefer "you" when
567+
addressing the the hypothetical user, and possibly "we" when
568+
discussing how the program might react to the user. E.g.
569+
570+
You can use this option instead of --xyz, but we might remove
571+
support for it in future versions.
572+
573+
while keeping in mind that you can probably be less verbose, e.g.
574+
575+
Use this instead of --xyz. This option might be removed in future
576+
versions.
577+
578+
- If you still need to refer to an example person that is
579+
third-person singular, you may resort to "singular they" to avoid
580+
"he/she/him/her", e.g.
581+
582+
A contributor asks their upstream to pull from them.
583+
584+
Note that this sounds ungrammatical and unnatural to those who
585+
learned that "they" is only used for third-person plural, e.g.
586+
those who learn English as a second language in some parts of the
587+
world.
588+
544589
Every user-visible change should be reflected in the documentation.
545590
The same general rule as for code applies -- imitate the existing
546591
conventions.

0 commit comments

Comments
 (0)