# Lists

Source: https://watership.ca/style-guide/lists/

Decides when content becomes a list, when the list is numbered, and how the items are shaped, introduced, capitalized, and punctuated.

A list is a promise to the reader: these items are alike, you can scan them, and you can stop at any one. Most lists in software writing break the promise. They hold an argument chopped into bullets, or items that don’t match each other in shape, or one item that runs three ideas long. The rules below say when a list is the right form and what the items owe each other once it is.

They apply to bullet lists and numbered lists alike. The two differ only in what the number means. Examples in this section write a list on one line, with “list items:” before it and a semicolon between items.

## When to use a list

### Lists for parallel items

Rule `list-parallel-items-only`: avoid, judgment. Address: https://watership.ca/style-guide/lists/#list-parallel-items-only

**Use a list only for parallel items a reader will scan.** Requirements, options, steps, and fields belong in a list. An argument, an explanation, or a chain of cause and effect stays in paragraphs, where the connecting words can do their work. If the items only make sense read in order and in full, they were never a list.

- Instead of: list items: The cache is on by default; It speeds up repeat requests; But stale entries stay until the TTL expires
- Write: The cache is on by default and speeds up repeat requests, but a stale entry stays until its TTL expires.

### Numbers only for sequence

Rule `list-numbered-for-sequence`: avoid, judgment. Address: https://watership.ca/style-guide/lists/#list-numbered-for-sequence

**Number a list only when order matters.** Use numbers for steps the reader follows in sequence or for a ranking. Everything else gets bullets, because a number implies an order and readers will look for one.

- Instead of: numbered list items: Windows; macOS; Linux
- Write: bulleted list items: Windows; macOS; Linux

### List length

Rule `list-length`: prefer, mechanical. Address: https://watership.ca/style-guide/lists/#list-length

**Keep a list to 9 items or fewer.** A list of one is a sentence. The check fires at more than 9 items; a list that long is a table, a reference page, or two lists with a heading each.

- Instead of: list items: Region; Project name; Owner; Billing account; Retention; Encryption key; Log sink; Alert channel; Backup schedule; Tags
- Write: heading: Basics; list items: Region; Project name; Owner; Billing account; heading: Data; list items: Retention; Encryption key; Log sink; Alert channel; Backup schedule; Tags

## How to shape the items

### Parallel structure

Rule `list-parallel-structure`: avoid, judgment. Address: https://watership.ca/style-guide/lists/#list-parallel-structure

**Start every item with the same part of speech.** If the first item begins with a verb, they all do; if the first is a noun phrase, so are the rest. A mismatched item makes the reader reparse the whole list.

- Instead of: list items: Configure the export; The log file location; Deleting old snapshots
- Write: list items: Configure the export; Find the log file; Delete old snapshots

### One idea per item

Rule `list-one-idea-per-item`: avoid, judgment. Address: https://watership.ca/style-guide/lists/#list-one-idea-per-item

**Put one idea in each item.** An item that runs to a second sentence, or joins two thoughts with “and,” is two items or a paragraph.

- Instead of: list items: Turn on caching, which speeds up repeat requests, and also set a TTL so stale entries expire
- Write: list items: Turn on caching to speed up repeat requests; Set a TTL so stale entries expire

### No trailing conjunction

Rule `list-no-trailing-conjunction`: avoid, mechanical. Address: https://watership.ca/style-guide/lists/#list-no-trailing-conjunction

**Don’t end the second-last item with “and” or “or.”** The shape of the list already says the items belong together. A trailing conjunction turns the list back into a sentence, which the bullets then break.

- Instead of: A valid API key, and
- Write: A valid API key

## Lead-ins and punctuation

### Lead-in sentence

Rule `list-lead-in`: avoid, judgment. Address: https://watership.ca/style-guide/lists/#list-lead-in

**Introduce a list with a complete sentence ending in a colon, or with a heading.** Don’t let the lead-in trail into the items as one broken sentence. A reader who skips the list should still be left holding a whole sentence.

- Instead of: To deploy, you need:
- Write: Before you deploy, gather the following:

### Capitalize the first word

Rule `list-capitalize-first-word`: avoid, mechanical. Address: https://watership.ca/style-guide/lists/#list-capitalize-first-word

**Capitalize the first word of every item.** This holds for fragments as well as sentences. The one exception is an item that begins with a code span or with a name that is lowercase by definition.

- Instead of: a valid API key
- Write: A valid API key

### Terminal punctuation in items

Rule `list-terminal-punctuation`: avoid, mechanical. Address: https://watership.ca/style-guide/lists/#list-terminal-punctuation

**End items that are complete sentences with a period, end fragments with nothing, and never mix the two in one list.** If some items are sentences and some are fragments, rewrite until they match, then punctuate the whole list one way.

- Instead of: Supports Windows, macOS, and Linux.
- Write: Supports Windows, macOS, and Linux

### One level of nesting

Rule `list-nest-one-level`: avoid, mechanical. Address: https://watership.ca/style-guide/lists/#list-nest-one-level

**Nest at most one level deep.** A list inside a list inside a list is a sign the content wants headings or a table. If a nested item needs subitems of its own, promote its parent to a heading.

- Instead of: list items: Storage; nested under it: Buckets; nested under that: Versioning; Retention
- Write: heading: Storage buckets; list items: Versioning; Retention

## Lists inside a sentence

A short list can stay inside its sentence, where it is called a run-in list. The rules above for vertical lists don’t apply to it; these two do.

### Enumerators in a run-in list

Rule `list-run-in-enumerators`: avoid, mechanical. Address: https://watership.ca/style-guide/lists/#list-run-in-enumerators

**Number the items of a run-in list only when the text refers back to them or their order matters, and then write (1), (2), (3) with both parentheses.** Unnumbered items are separated by commas, with the serial comma, or by semicolons when an item has a comma of its own. Numbered items take the same punctuation, with each number directly before its item. Don’t use letters, a single closing parenthesis, or a number followed by a period, which looks like the start of a vertical list.

*Drafted, awaiting review.*

- Instead of: The review found three problems: a) the export drops time zones, b) the import skips blank rows and c) the log rotates too early. Problem b is fixed in version 4.3.
- Write: The review found three problems: (1) the export drops time zones, (2) the import skips blank rows, and (3) the log rotates too early. Problem 2 is fixed in version 4.3.

### When a run-in list becomes a vertical list

Rule `list-run-in-limit`: avoid, judgment. Address: https://watership.ca/style-guide/lists/#list-run-in-limit

**Turn a run-in list into a vertical list when it has more than four items, when any item is a sentence, or when the reader will act on the items one at a time.** A sentence holds a short series well, but past four items, or with clauses inside the items, the reader loses count and the commas stop separating. Steps the reader follows belong in a numbered list, as Procedures says.

*Drafted, awaiting review.*

- Instead of: The report covers revenue, which rose; costs, which fell slightly after the move; headcount; churn; the new pricing; and the audit, which found two issues.
- Write: The report covers the following: list items: Revenue, which rose; Costs, which fell slightly after the move; Headcount; Churn; New pricing; The audit, which found two issues

## About this section

**Rules.** 12 in this section: 6 mechanical, 6 judgment. Tiers: 0 never, 11 avoid, 1 prefer.

**Where the sources differ.** Microsoft suggests no more than seven items where possible, and Google names no number; the stock sets the limit at more than 9 items, because past that a reader starts scanning for a heading and finds none.

**Sources.** Google developer documentation style guide and Microsoft Writing Style Guide. Adapted under CC BY 4.0, as [Sources and license](https://watership.ca/style-guide/#sources-and-license) sets out.
