# Reference

Watership releases: style guide 0.1.0, UX writing guide 0.1.0, slop guard 0.1.0, voices 0.1.0, tone scales 0.1.0, glossary 0.1.0, Vale checks 0.3.3. Facts for lookup, organized like the thing they describe, such as an API, a set of options, or a list of error codes. Glossary entries take the same tone. Licence: CC BY 4.0.

## Tone

Neutral and complete. No persuasion and no narrative.

Write in the Watership voice (voice.md) unless the organization uses its own voice or one of the six voices. Start from the voice as it usually sounds (a voice file from the six gives its resting position on each scale), then shift it for this type:

- Register: as the voice
- Levity: sober, not grim
- Deference: as the voice
- Energy: calm
- Confidence: strictly candid
- Detail: complete

Stay inside the mean on every scale. The failures on either side are in tone.md, and the slop guard applies at every tone.

## The piece

- Family: Documentation
- Reader: A builder in the middle of work who needs one exact fact, such as a parameter type or a default value.
- What they should do or think afterward: Finds the fact in seconds and goes back to work.
- Length: As long as the thing it describes; generated from the source where possible
- What it is not: Not a place to explain why or how: link to a concept or a task instead.
- Review: light, which the review policy calls Check (the author and a second reader)
- Refresh: Regenerate or recheck with every release that changes the interface it describes.

## Required elements

- Every entry with the same fields in the same order
- Types, defaults, and limits
- A complete example for each entry that takes input
- The product version it describes



Pieces it usually spawns: code sample, support reply.

## Claims

Claims level L1: evidence first. The piece can introduce a new high-risk claim, but only after the claim has a current row in the claims register. Verify routine product facts against the product for the release the piece describes: try it, or check the specification, the tests, or the subject-matter owner. They never need a register row.

High-risk claims (numbers and measured results; comparisons and superlatives; security, privacy, and compliance; availability, uptime, and performance; customer, partner, and investor names; and promises about future behaviour or outcomes) need the claims register; routine product facts need a product check. Use the user’s own claims policy and register if they have them. A banned phrase is a never-tier finding: fix it before the piece goes out, unless the claims owner clears it. Never invent a number, a comparison, or a customer name.

## The rules that matter most

Ranked by how much they improve this kind of piece. Check these first.

1. type-ref-mirror-thing: Organize reference like the thing it describes (avoid, in https://watership.ca/guide/documentation-types.md)
2. type-ref-same-shape: Same shape for every entry (avoid, in https://watership.ca/guide/documentation-types.md)
3. type-ref-austere: Facts only (avoid, in https://watership.ca/guide/documentation-types.md)
4. type-ref-complete: Complete reference (avoid, in https://watership.ca/guide/documentation-types.md)
5. code-placeholders: Placeholder form (avoid, in https://watership.ca/guide/code-and-technical-terms.md)
6. table-header-and-units: Table headers and units (avoid, in https://watership.ca/guide/abbreviations-notes-and-tables.md)
7. term-one-term-per-thing: One term per thing (avoid, in https://watership.ca/guide/terminology.md)

## Read these files

Read these. The compiled rules file holds every rule that applies, so you don’t need the section files; they add reasoning and more examples if you want them.

- https://watership.ca/types/reference.rules.md (every rule for this type, including every never-tier rule in the guide)
- https://watership.ca/slop-guard.md (the slop guard, always)
- https://watership.ca/voice.md (the Watership voice, the default, unless the user has a voice file of their own)
- https://watership.ca/tone.md (the six tone scales)
- the organization’s own claims policy and claims register, if it has them
- https://watership.ca/voice-files/plainspoken.md (only if the organization uses the six voices instead: the Plainspoken voice suits this type)

For reasoning and more examples: https://watership.ca/guide/principles.md (Principles), https://watership.ca/guide/documentation-types.md (Documentation types), https://watership.ca/guide/numbers-dates-and-units.md (Numbers, dates, and units), https://watership.ca/guide/lists.md (Lists), https://watership.ca/guide/code-and-technical-terms.md (Code and technical terms), https://watership.ca/guide/links-and-cross-references.md (Links and cross-references), https://watership.ca/guide/terminology.md (Terminology), https://watership.ca/guide/abbreviations-notes-and-tables.md (Abbreviations, notes, and tables).

## Relaxed for this type

- list-length: List length (prefer, in https://watership.ca/guide/lists.md). A list of parameters or fields can run past 9 items; use a table when it does.

The slop guard and never-tier rules are never relaxed, by a type or by a voice.

## The shape of a good one

- The title names the thing exactly as it appears in code or the interface.
- One sentence on what it is, then the entries in a fixed order.
- Every entry has the same fields: name, type, default, and what it does.
- Examples are complete and runnable.

## Writing one

1. Say what you are writing and for whom before you start: "Writing a reference for [reader]."
2. Read the files above, and the user’s own voice file if they have one.
3. Draft in the shape above, at the tone above.
4. Reread the draft against the ranked rules, then the slop guard. Fix every never-tier problem before showing it.
5. When asked, list the rules you applied by id.

## Reviewing one

1. Read the files above, and the user’s own voice file if they have one.
2. Check structure first: does the piece do its job for its reader, in the shape above? Report structural problems before line-level ones.
3. Then go line by line, starting with the ranked rules.
4. Return each finding as: rule id, tier, the passage quoted exactly, and the fix. List never-tier findings first. Do not rewrite the draft unless asked.
