Markdown Editor

Technical Writing Style Guide Template

Tech writing style guide: voice, grammar Do/Don't, terminology, UI and code conventions, procedures, inclusive language, Vale rule mapping, further reading

Documentation & SupportStandardVale 3.x rule mapping; Google developer documentation style guide and Microsoft Writing Style Guide as further readingstyleguidetechnical

How to use: Use it to set house style for docs, API docs and UI text. Keep only rules your writers actually break, each with a Do and Don't example and a possible Vale rule, and name a fallback guide. The main pitfall is enabling a large lint style at once so writers learn to ignore alerts.

Preview

Technical Writing Style Guide: [Organisation or product name]

House style for technical documentation: voice, grammar, terminology, UI and code conventions, procedures, headings, links, accessibility, numbers, a review checklist and a mapping of each rule to a Vale prose linter check (Vale 3.x). Original wording; see Further reading for the public style guides worth consulting. Replace every [bracketed] value and every row marked Example, and adapt the rules to your organisation.

Document control

FieldValue
Document ID[DOC-STYLE-001]
Status[Draft / Approved / Superseded]
Approvers/reviewers[@docs-team], [@product-design-lead], [@localisation-lead]
Classification[Internal / Public]
Applies to[User docs, API docs, release notes, UI text]
Version[1.0]
Owner[@docs-lead]
Fallback references[Dictionary: Merriam-Webster / Oxford], [general style guide of your choice]
Spelling variant[US English / UK English]
Prose linter[Vale 3.x, style House in styles/House/]
Last updatedYYYY-MM-DD

Approvals

RoleNameDecisionDate
Documentation lead[@docs-lead][Approve / Reject]YYYY-MM-DD
Product design lead (UI text rules)[@name][Decision]YYYY-MM-DD
Localisation lead[@name][Decision]YYYY-MM-DD

Revision history

VersionDateAuthorChange
[1.0]YYYY-MM-DD[@docs-lead][First published version]
1.12026-10-24[@docs-lead]Updated to add a Vale rule column to the grammar, terminology and checklist tables, a Vale configuration section and Further reading
1.22026-10-24[@docs-lead]Updated to add Document control, Approvals, Contents and an error-only Vale run for blocking CI

Contents

1. Voice and tone

Our voice is clear, direct, helpful and calm.

TraitIn practiceDoDon't
ClearPlain words, one idea per sentenceSelect Save.Kindly proceed to effectuate the save operation.
DirectAddress the reader as "you"; use the imperative for stepsEnter your API key.The user should enter their API key.
HelpfulTell readers what happens next and why it mattersRestart the service so the new port takes effect.Restart the service. (when the reason is not obvious)
CalmNeutral wording in errors and warnings, no blame or alarmThe file could not be uploaded. Check that it is under 25 MB.Upload FAILED! You chose an invalid file.

Adjust tone to the situation: brief and neutral in reference, encouraging in tutorials, precise and serious in security warnings. Avoid humour in error messages and in content that will be translated.

2. Audience

Unless a page says otherwise, write for [a technically capable person who is new to our product]. Assume they can use a command line and a web browser; do not assume they know our internal names, architecture or abbreviations. Many readers use English as a second language and many use machine translation, so prefer short sentences and common words.

3. Grammar and mechanics

IDRuleDoDon'tPossible Vale rule
STY-001Use active voice; name the actorThe installer creates a service account.A service account is created.House.Passive (existence, regex for a form of "be" plus a past participle; level suggestion)
STY-002Use present tense for product behaviourThe page shows your recent files.The page will show your recent files.House.Will (existence, token will; level suggestion)
STY-003Keep sentences under about 25 wordsSplit long sentences at "and" or "which".One sentence with three clauses and two parentheses.House.SentenceLength (occurrence, scope sentence, max 25)
STY-004Use sentence case in headings and UI labelsConfigure single sign-onConfigure Single Sign-OnHouse.Headings (capitalization, scope heading, match $sentence, exceptions list for product names)
STY-005Use the serial commafiles, folders, and linksfiles, folders and linksHouse.SerialComma (existence, raw regex for a list missing the final comma; level suggestion)
STY-006Spell out an abbreviation on first useRecovery time objective (RTO)RTO (with no expansion on the page)House.Abbreviations (conditional, first = definition pattern, second = bare abbreviation)
STY-007Avoid "please" and "simply" in instructionsEnter your password.Please simply enter your password.House.Filler (existence, tokens please, simply, just, easily)
STY-008Avoid Latin abbreviationsfor example, that ise.g., i.e.House.Latin (substitution, e.g. to for example, i.e. to that is)
STY-009Use contractions sparingly and consistentlydo not / don't, as decided in [house rule]Mixing both in one pageHouse.Contractions (consistency, one pair per line)

[Adjust the serial comma and contraction rules to your house choice; the point is to be consistent.]

4. Terminology

UseAvoidNotesPossible Vale rule
sign in, sign outlog in, login (as a verb), log on"Sign-in" as a noun or adjectiveHouse.Terms (substitution)
selectclick on, hit, press (for UI controls)"Press" is for keyboard keysHouse.Terms (substitution, level warning because "press" is valid for keys)
entertype in, input (as a verb)"Type" is fine for literal keystrokesHouse.Terms (substitution)
[ProductName][productname], [Product-Name]Exact capitalisation, never possessiveVocabulary accept.txt entry, enforced by Vale.Terms
allowlist, blocklistwhitelist, blacklistInclusive language, see 10House.Inclusive (substitution, level error)
primary, replicamaster, slaveInclusive language, see 10House.Inclusive (substitution, level error)
[Term][Avoid][Notes][Rule name and extension]

Keep the terminology table and the linter in step: when you add a row here, add the same pair to the substitution rule in the same pull request.

5. UI text conventions

  • Put the names of UI elements in bold, exactly as they appear: Select Export.
  • Show menu paths with a greater-than sign: File > Export > PDF.
  • Do not name the control type unless it helps: "Select Save", not "Click the Save button".
  • For keys, use the key name in monospace with + for combinations: Ctrl+S, Cmd+Shift+P.
  • Describe location only when the element is hard to find: "In the upper-right corner, select Settings."
  • When writing UI text itself: lead with the outcome, keep button labels to a verb and an object (Delete file), and say how to recover in error messages.

6. Code and technical elements

ElementFormatExample
Inline code, commands, file names, paths, valuesMonospaceEdit config.yaml and set port to 8080.
Multi-line codeFenced block with a language labelA fence opened with three backticks followed by bash
PlaceholdersUpper case in angle brackets or square brackets, explained after the block<API_KEY>: your key from Settings > API.
Command outputSeparate block, labelled as outputA fence labelled text, introduced by "The output is:"
PromptsOmit $ in copyable commandsnpm install, not $ npm install

Code samples must run as shown, use realistic values (not foo and bar), and never contain real secrets. Keep lines under 80 characters where possible so they do not scroll.

7. Procedures

  • Start with a heading that begins with a verb: "Create a project".
  • State prerequisites before step 1.
  • Use a numbered list; one action per step; no more than about 10 steps (split longer procedures).
  • Put the location before the action: "In Settings, select Users."
  • Put the result after the action, as a separate sentence: "The Users page opens."
  • Put optional steps in the step itself: "Optional: add a description."
  • Put warnings before the step they apply to, never after.
DoDon't
1. In Projects, select New project. The dialog opens.1. Select New project in Projects which opens a dialog where you can also add a description if you want and then save.

8. Headings and structure

Page typeHeading styleExample
Task (how-to)Imperative verbConfigure single sign-on
ConceptNoun phraseWorkspaces and permissions
ReferenceName of the thingConfiguration settings
TroubleshootingSymptom in the reader's wordsImport stops at 99%

Use one H1 per page. Do not skip levels. Do not put two headings in a row without text between them. Keep headings under about eight words and avoid code formatting in headings where possible.

9. Links and cross-references

  • Make link text describe the destination: "see [Configure SSO]", not "click [here]".
  • Link the first relevant mention on a page, not every mention.
  • Prefer relative links within the docs so they survive domain changes.
  • Mark links that leave the documentation site or download a file: "[Download the sample CSV (12 KB)]".

10. Accessibility and inclusive language

  • Give every image alt text that states what the image shows and why it matters. Decorative images get empty alt text.
  • Never rely on colour or position alone: not "the red button" or "the link on the right", but its label.
  • Use tables for data, not for layout, and give them header rows.
  • Use gender-neutral language: "they" for an unknown person, "people" rather than "guys".
  • Avoid ableist idioms and violent metaphors: "check" rather than "sanity check", "stop" rather than "kill" where the UI allows.
  • Avoid idioms, sports references and culture-specific jokes.

11. Numbers, dates, times and units

ItemRuleExample
NumbersNumerals for 10 and above, and for all measurements3 projects, 12 users, 5 MB
Large numbersComma thousands separator in English text10,000 requests
DatesISO 8601 in tables and logs; month name in prose2026-10-21; 21 October 2026
Times24-hour clock with time zone14:30 UTC
UnitsSpace between number and unit; SI prefixes25 MB, 500 ms, 2 GHz
RangesUse "to" in prose1 to 64 jobs
PercentagesNumeral with % sign, no space99.9%

12. Review checklist

#CheckAutomatedPossible Vale rule or other tool
1Page has one type (tutorial, how-to, reference or explanation)NoNone: human review (front matter type field can be checked by a schema validator)
2Title and headings follow section 8PartlyHouse.Headings (capitalization); heading levels by markdownlint rule MD001
3Every procedure was tested on the current versionNoNone: human review
4Active voice, present tense, sentences under about 25 wordsYes (linter)House.Passive, House.Will, House.SentenceLength
5Terms match section 4 and the glossaryYes (linter)House.Terms, Vale.Terms with the house vocabulary
6UI names in bold and match the product exactlyNoNone: human review against the build
7Code samples run, have language labels, contain no secretsPartlyLanguage labels by markdownlint rule MD040; secrets by a secret scanner; running by CI sample tests
8Links work and have descriptive textYes (link checker)House.LinkText (existence, scope link, tokens here, click here, this link) plus a link checker
9Images have alt text; no meaning conveyed by colour alonePartlyAlt text by markdownlint rule MD045; colour wording by House.Colour (existence, tokens such as red button)
10Numbers, dates and units follow section 11Yes (linter)House.Units (existence, raw regex for a number directly followed by a unit), House.Dates (existence, regex for slash-separated dates)
11Inclusive language rules in section 10 are metYes (linter)House.Inclusive (substitution)
12Spelling is correct for the chosen variantYes (linter)Vale.Spelling with the house vocabulary, or a House.Spelling (spelling extension) with a custom dictionary
13Readability is suitable for the audience in section 2PartlyHouse.Readability (metric, for example a grade-level formula with a threshold you choose); treat it as a signal, not a gate

13. Linting with Vale

Vale is an open-source prose linter (MIT licence) that reads rules written as YAML files. Each rule extends one of a small set of check types: existence, substitution, occurrence, repetition, consistency, conditional, capitalization, metric, spelling, sequence and script. The "Possible Vale rule" columns above name a rule and the check type that fits it; the rule names are suggestions for your own House style, not rules that ship with Vale.

Place the configuration file at the repository root:

# .vale.ini
StylesPath = styles
MinAlertLevel = suggestion
Vocab = House

[*.md]
BasedOnStyles = Vale, House

Keep product names and accepted jargon in the vocabulary files (styles/config/vocabularies/House/accept.txt and reject.txt in Vale 3), so the spelling check and Vale.Terms agree with section 4.

An example substitution rule for the terminology table:

# styles/House/Terms.yml
extends: substitution
message: "Use '%s' instead of '%s'."
level: error
ignorecase: true
swap:
  log in: sign in
  log on: sign in
  click on: select
  type in: enter

An example occurrence rule for STY-003:

# styles/House/SentenceLength.yml
extends: occurrence
message: "Try to keep sentences under 25 words."
scope: sentence
level: suggestion
max: 25
token: \b(\w+)\b

Rollout plan:

StepActionOwnerExit condition
Example 1Add .vale.ini, vocabulary and the House.Terms and House.Inclusive rules; run locally[@docs-lead]Rules run on the whole docs tree
Example 2Run Vale in CI on changed files only, non-blocking[@docs-engineer]Alert volume reviewed for two weeks
Example 3Fix existing alerts for error-level rules; make CI blocking for errors[@docs-team]Zero error-level alerts on main
Example 4Review suggestion-level rules quarterly; promote or delete each[@docs-lead]Every rule has an owner and a level decision

The configuration above reports every level, which suits local runs. In the blocking CI step, fail only on errors by overriding the level on the command line, for example vale --minAlertLevel=error docs/, and keep the non-blocking step at suggestion level so writers still see the rest.

Check the current Vale release and rule syntax at https://vale.sh/ before you write rules: option names occasionally change between major versions.

14. Further reading

When this guide is silent, consult one of these public guides and record the decision here so the next writer finds it:

  • Google developer documentation style guide, https://developers.google.com/style. Its content is licensed under the Creative Commons Attribution 4.0 licence (code samples under Apache 2.0), so you may adapt passages if you credit Google and indicate changes. This template does not adapt any of its text.
  • Microsoft Writing Style Guide, https://learn.microsoft.com/en-us/style-guide/welcome/. All rights reserved by Microsoft: read and cite it, but do not copy its rules, word lists or examples into your own guide.
  • Vale documentation, https://vale.sh/, for rule syntax and packaged styles you can study before writing your own.
  • Web Content Accessibility Guidelines (WCAG) 2.2, https://www.w3.org/TR/WCAG22/, for the accessibility rules in section 10.
  • Related templates: Documentation Plan (docs/documentation-plan), Glossary (docs/glossary).

Standard and licence note

Based on common industry practice for technical writing style guides and on the public documentation of the Vale prose linter. This template is original text written for this collection: it does not reproduce or adapt any rule, word list or example from the Google developer documentation style guide or the Microsoft Writing Style Guide, which are listed only as further reading. Check the current versions of those guides and of Vale before relying on them. Template licence: MIT.

Related templates