Style guide

How I Write These Documents

39 rules. Code checks 34 of them on every build of this site.

Every document in the library follows this guide. It rests on the Microsoft Writing Style Guide, which many IT documentation teams work to, and adds a few rules of my own. Each rule names the part of that guide it comes from. The wording and the examples here are mine.

The Short Version

  • Write to one reader, as "you", in the present tense.
  • Choose the plain word, and use the same word every time.
  • Put the verb first in a step, and one action in each.
  • Write a heading as a sentence, without a period.
  • Say what the source said, with its doubt.

How the Check Works

A style guide in a PDF gets one reading. This one is also a program. src/style.js holds each rule next to the code that tests it. The build runs that file on every document in the library, and the Workbench runs it in your browser on whatever you write.

LevelWhat it means
ErrorThe document breaks a rule that has no exceptions, such as an image without a text alternative. It can’t pass.
WarningThe document breaks a rule that is almost always right. It can’t pass until the text changes, or the document says why the rule doesn’t apply.
AdviceA sentence to look at again. A passive sentence is sometimes the right one, so advice never fails a document.

A document can leave a rule out, in the open: a comment such as <!-- style: off passive (a report states what was done) --> in its source names the rule and gives the reason.

The Rules

Headings

Write Headings in Title Case

ErrorChecked by codeHouse rule, with the title-style capitalization rules of the Microsoft Manual of Style, 4th edition

Capitalize every word except articles, short prepositions and coordinating conjunctions, unless the word comes first or last. One rule for every title and heading on the site, in the documents, the PDFs, and the films.

Not this## Reset your password

This## Reset Your Password

End a Heading Without a Period or a Colon

ErrorChecked by codeMicrosoft guide: Top 10 tips

A heading is a label, not a sentence in a paragraph. A question mark stays when the heading is a question.

Not this## Before you start:

This## Before you start

Go Down One Heading Level at a Time

WarningChecked by codeHouse rule

A screen reader announces the level of each heading, and many readers move through a page by its headings. A jump from level 2 to level 4 tells them that a level is missing.

Not this## Install
#### Windows

This## Install
### Windows

Voice

Talk to the Reader as "You"

AdviceChecked by codeMicrosoft guide: Person

The person reading is the person doing. "The user" puts a stranger between the reader and the step.

Not thisThe user selects **Save**.

ThisSelect **Save**.

Prefer the Active Voice

AdviceChecked by codeMicrosoft guide: Writing tips

Active sentences say who does what. Use the passive when the doer is unknown or doesn’t matter.

Not thisThe file is saved by the system.

ThisThe system saves the file.

Write In the Present Tense

AdviceChecked by codeMicrosoft guide: Verbs

The reader is at the screen now, so say what happens as it happens.

Not thisA message will appear.

ThisA message appears.

Use Contractions

AdviceChecked by codeMicrosoft guide: Top 10 tips

"Don’t" is how people talk. It keeps instructions from sounding like a contract.

Not thisDo not close the window.

ThisDon't close the window.

Keep "We" for Recommendations

AdviceChecked by codeMicrosoft guide: Person

The document is about the reader’s task, not about its authors. "We recommend" is fine.

Not thisWe added a new export button.

ThisA new export button is on the toolbar.

Keep a Sentence Under 30 Words

AdviceChecked by codeMicrosoft guide: Writing tips. The limit of 30 words is a house rule

A long sentence makes the reader hold its start in mind until its end arrives. Two sentences are easier to follow, and easier to translate.

Words

Choose the Plain Word

WarningChecked by codeMicrosoft guide: Use simple words, concise sentences

"Use" does everything "utilize" does, in one syllable. Short words are read faster and translated better.

Not thisUtilize the form in order to submit a request.

ThisUse the form to submit a request.

Write "for Example", Not "e.g."

WarningChecked by codeMicrosoft guide: Use US spelling and avoid non-English words

Not every reader knows the Latin abbreviations, and machine translation often gets them wrong.

Not thisUse a strong password, e.g. a passphrase.

ThisUse a strong password, for example, a passphrase.

Don’t Tell the Reader It’s Easy

AdviceChecked by codeHouse rule

"Simply" and "easily" add nothing when the step works, and they sting when it doesn’t.

Not thisSimply restart the service.

ThisRestart the service.

Leave "Please" Out of Instructions

AdviceChecked by codeMicrosoft guide: A–Z word list

An instruction isn’t a favor. Keep "please" for when you ask for something inconvenient.

Not thisPlease enter your email address.

ThisEnter your email address.

Say "Select", Whatever the Reader’s Device

AdviceChecked by codeMicrosoft guide: Describing interactions with UI

A reader may use a mouse, a finger, a keyboard, or their voice. "Select" is true for all of them.

Not thisClick on **Save**.

ThisSelect **Save**.

Use Words That Leave No One Out

WarningChecked by codeMicrosoft guide: Bias-free communication, with house additions

Some terms carry a history, and some assume a reader’s gender. A neutral word is always at hand.

Not thisAdd the address to the whitelist.

ThisAdd the address to the allowlist.

Don’t Shout

WarningChecked by codeMicrosoft guide: Capitalization

Capitals for emphasis read as shouting, and a screen reader may spell them out letter by letter. Use bold, or a note.

Not thisDo NOT promote on Fridays.

ThisDo **not** promote on Fridays.

Punctuation

Put a Comma Before the Last Item in a List

AdviceChecked by codeMicrosoft guide: Top 10 tips

"Owners, admins, and guests" can be read one way only.

Not thisowners, admins and guests

Thisowners, admins, and guests

Put One Space After a Period

ErrorChecked by codeMicrosoft guide: Top 10 tips

Two spaces are a habit from typewriters. On a screen they leave holes in the paragraph.

Not thisSave the file. Close the window.

ThisSave the file. Close the window.

Close Up a Dash, or Don’t Use One

WarningChecked by codeMicrosoft guide: Top 10 tips

A dash takes no spaces around it. Often a period or a colon does the job better.

Not thisSelect **Save** — the file is stored.

ThisSelect **Save**. The file is stored.

Write "and", Not "&"

WarningChecked by codeMicrosoft guide: A–Z word list

The ampersand is for names that contain one. In a sentence, it’s shorthand.

Not thisSettings & privacy are on the same page.

ThisSettings and privacy are on the same page.

Save the Exclamation Mark

AdviceChecked by codeMicrosoft guide: Exclamation points

Documentation that exclaims is hard to believe when something really matters.

Not thisYour account is ready!

ThisYour account is ready.

Spell Out the Month in a Date

WarningChecked by codeMicrosoft guide: Numbers

The same digits mean March 4 to one reader and April 3 to another.

Not thisAvailable from 03/04/2026.

ThisAvailable from March 4, 2026.

Use a Period Before a Picture, a Table, or Code

AdviceChecked by codeMicrosoft guide: Colons

A colon promises that the sentence carries on. A reader who skips the table, or whose picture doesn’t load, gets half a sentence.

Not thisSelect **Save**:

![The Save button in the toolbar](save.png)

ThisSelect **Save**.

![The Save button in the toolbar](save.png)

Give List Items a Period When One Is a Sentence

AdviceChecked by codeMicrosoft guide: Lists

A sentence ends with a period, in a list too. The other items get one as well, so that the list reads as one piece.

Not this- You have an account
- You can read your email

This- You have an account.
- You can read your email.

Procedures

Start a Step with What to Do

WarningChecked by codeMicrosoft guide: Writing step-by-step instructions

A step is an instruction. Lead with the verb, or with the place and then the verb.

Not this1. Open **Settings**.
2. You should now select **Save**.

This1. Open **Settings**.
2. Select **Save**.

Give Each Action Its Own Step

AdviceChecked by codeMicrosoft guide: Writing step-by-step instructions

A reader looks away to act, then looks back for the next thing. One action per step lets them find their place. Two short actions in the same place can share a step.

Not this1. Open **Settings**, then select **Users**, and then select **Add**.

This1. Open **Settings** > **Users**.
2. Select **Add**.

Keep a Procedure to Seven Steps

AdviceChecked by codeMicrosoft guide: Writing step-by-step instructions

Past seven steps, readers lose their place. Split the task, or group the steps under headings.

End a Step with a Period

AdviceChecked by codeMicrosoft guide: Writing step-by-step instructions

A step is a complete sentence.

Not this1. Select **Save**

This1. Select **Save**.

Don’t Number a Single Step

AdviceChecked by codeMicrosoft guide: Writing step-by-step instructions

A list of one isn’t a sequence. Write the step as a sentence or a bullet.

Not this1. Restart the app.

ThisRestart the app.

Set the Names of Buttons in Bold

WarningChecked by codeMicrosoft guide: Formatting text in instructions

Bold shows the reader the exact word to look for on the screen. Quotation marks make them wonder whether to type something.

Not thisSelect "Save".

ThisSelect **Save**.

Describe Every Image

ErrorChecked by codeMicrosoft guide: Graphics, design, and media

The text alternative is the image for a reader who can’t see it, and for everyone when the image fails to load.

Not this![](settings.png)

This![The Users tab of the Settings page](settings.png)

Name the Language of a Code Block

AdviceChecked by codeHouse rule

The name lets the page color the code, and tells a reader what they’re looking at before they read it.

Not this```
npm install
```

This```bash
npm install
```

Give Every Variable a Value

ErrorChecked by codeHouse rule

Publishing replaces a name in double braces with its value. A name without a value would reach the reader as it is.

Not thisOpen {{product}}.

For the Reviewer

Start with What the Reader Came For

For a reviewerMicrosoft guide: Top 10 tips

The first sentence says what the document lets the reader do. Background comes after, if at all.

Say Where, Then What

For a reviewerMicrosoft guide: Procedures and instructions checklist

"On the Users tab, select Add" puts the reader in the right place before they act.

Use One Word for One Thing

For a reviewerMicrosoft guide: Writing tips

If a "workspace" becomes a "project" in the next paragraph, the reader looks for two things.

Keep the Source’s Doubt

For a reviewerHouse rule

When an engineer says "I think" or "not confirmed", the document says so too, until someone confirms it.

Say How the Reader Knows It Worked

For a reviewerHouse rule

A procedure ends with what the reader should now see. Without it, they can’t tell success from a quiet failure.

The Library, Checked

All 23 text documents pass. The build made this table, with the same code that the workbench runs.

DocumentTypeResultAdvice for the next revision
Access the Core42 AI Cloud PortalHow-toPassesKeep a Procedure to Seven Steps (1), Prefer the Active Voice (1)
Google Workspace FAQsFAQPassesPrefer the Active Voice (3), Don’t Tell the Reader It’s Easy (1)
Threat ModelSecurityPassesPrefer the Active Voice (3), Keep a Sentence Under 30 Words (2), other rules (1)
The Demonstration in Two MinutesHow-toPDF, not checked
How TrustNav Works, Step by StepExplainerPassesPrefer the Active Voice (15), Keep a Sentence Under 30 Words (13), other rules (9)
Annotate a Screenshot in the Screenshot StudioHow-toPassesPut a Comma Before the Last Item in a List (4), Prefer the Active Voice (1)
Model Card: KC1 Defect PredictionReferencePassesPrefer the Active Voice (6), Put a Comma Before the Last Item in a List (6), other rules (5)
Dataset Card: NASA PROMISE KC1, as the KC1 Project Uses ItReferencePassesPrefer the Active Voice (1), Use a Period Before a Picture, a Table, or Code (1), other rules (1)
Manual Docker Build GuideHow-toPassesUse a Period Before a Picture, a Table, or Code (3), Prefer the Active Voice (2), other rules (4)
Release Notes, V2.4Release notesPassesKeep a Sentence Under 30 Words (19), Prefer the Active Voice (13), other rules (2)
GlossaryReferencePassesDon’t Tell the Reader It’s Easy (1), Prefer the Active Voice (1)
Code Guide: Every File and What It DoesDeveloper guidePassesKeep a Sentence Under 30 Words (19), Prefer the Active Voice (13), other rules (1)
ArchitectureArchitecturePassesPrefer the Active Voice (1)
README: NOVATECH SentinelReferencePassesPrefer the Active Voice (26), Keep a Sentence Under 30 Words (11), other rules (12)
README: KC1 Defect PredictionReferencePassesPrefer the Active Voice (28), Use a Period Before a Picture, a Table, or Code (13), other rules (13)
KC1 Prediction API ReferenceReferencePassesNone
Get Your First Prediction from the KC1 APIHow-toPassesNone
Troubleshoot the KC1 APITroubleshootingPassesNone
Compare the KC1 Model Candidates in MLflowHow-toPassesUse a Period Before a Picture, a Table, or Code (1)
Reset a User’s OTP Credential in KeycloakHow-toPassesPrefer the Active Voice (3), Keep a Sentence Under 30 Words (1), other rules (3)
When a Keycloak User Can’t Sign In with a One-Time PasswordTroubleshootingPassesNone
Keycloak OTP Policy: The Settings and Their DefaultsReferencePassesNone
Run a Notebook from a Clean Start and Share It as HTML in JupyterLabHow-toPassesKeep a Sentence Under 30 Words (1)
Find the Slowest HTTP Responses in a Capture with TsharkHow-toPassesNone
AI-ChainGuard Final ReportReportPDF, not checked
Signed Is Not SafeReportPDF, not checked
TrustNav Technical ReportReportPDF, not checked

Check Your Own Text

The Workbench checks a document against these rules as you write. It applies the fixes that a rule can make, and publishes the result as Markdown, as HTML for a help center, or as DITA.

Open the workbench