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
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.
Numbers only 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.
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.
How to shape the items
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.
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.
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.
Lead-ins and punctuation
Lead-in sentence
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.
Capitalize the 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.
Terminal punctuation in items
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.
One level of nesting
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.
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
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.
When a run-in list becomes a vertical list
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.