Goals:
- Be direct without losing clarity
- Minimize the number of words in a sentense
- Minimize complexity
- Avoid formalism unless
Use second person when interacting with user-related tasks.
Good:
- You configure the project using a Guild File.
Bad:
- We configure the project using a Guild file.
If the statement is made from the perspective of Guild authors, use we. For example:
- We recommend that you define the package first.
Avoid using auxiliary verbs like can and may unless the sentence would be incorrect without their use.
Good:
- Configure the project using a Guild File.
Bad:
- You can configure the project using a Guild File.
Avoid "next" in steps.
Good:
- Train the model.
Bad:
- Next, train the model.
UPDATE (again): Use present tense unless the sentence is nonsensical.
Good:
- In the previous section, you trai a model.
- In the next section, you train a model.
- (at the end of the section) In this section, you trai a model.
- (at the start of the section) In this section, you train a model.
Bad:
- In the previous section, you trained a model.
- In the next section, you will train a model.
Examples of not using present tense when the sentense makes no sense.
Good:
- Your results will differ
Bad:
- Your results differ
Avoid passive voice.
Good:
- The user trains a model.
Bad:
- The model is trained.
Use title case in titles and headings.
Good:
- Configure Your Project
Bad:
- Configure your project
Avoid the use of gerunds in titles and headings.
Good:
- Train a Model
Bad:
- Training a Model
When using a TOC, insert the TOC immediately following the page title.
Avoid front matter that appears before the first heading.
Good:
[TOC]
# Heading 1
Intro text.
Bad:
TOC]
Intro text.
# Heading 1
Don't use superlatives like great, excellent, amazing.
Good:
- Tim Peters wrote PEP 20.
Bad:
- Tim Peters wrote the excellent PEP 20.
Avoid "the cmd command" or "the command cmd" in favor simply of
"cmd". Avoid starting a sentence with a command.
Good:
-
Use
cmdto do something. -
When you run
cmd, Guild does something. -
On
cmd, Guild does something.
Bad:
-
Use the
cmdcommand to do something. -
cmddoes something.