The data¶
Everything on this site is rendered from three YAML files in the repository’s data/ folder. The build also writes them out as one JSON file, so a linter, an editor plugin, or an AI tool can read the scales without parsing the pages.
Download: tone-scales.json
For AI agents, llms.txt lists every page on the site and the JSON file, with a line on how to review against the scales.
The source files¶
| File | Holds |
|---|---|
data/scales.yaml |
The shared message and the six scales: each one’s sides, its mean, its two failures, and an example at each point. |
data/content-types.yaml |
The content types in their families, each with a tone sentence, the one of the six voices that suits it, and its shift on each scale, plus the locked tone. |
data/calibration.yaml |
The calibration pairs: the voice, the two content types, the facts, both texts, and what shifted on each scale. |
The JSON format¶
The top level has these keys:
name,version,license- The resource name, its version (from the
VERSIONfile), and the SPDX id of the content license. An older key,licence, holds the same id under the field’s original spelling, kept as an alias for existing consumers. It will be removed in a later version, so readlicense. sourceGlob,sourceFiles,sourceHash- The pattern the source files match (
data/*.yaml), the files the build read, and a SHA-256 fingerprint of them, the same scheme the Watership guides use. A tool that readstone-scales.jsonbeside a checkout can list the files from the pattern, compute the hash, and stop if the file is out of date. message- The sentence every scale example says.
scales- One object per scale, in order:
id,name,sides(lowandhigh),too_little,mean, andtoo_much(each withnameandexample), and an optionalnote. families- The content type families:
id,name, andwhat. content_types- One object per content type:
id,name,family,what,default_voice(the one of the six voices that suits the type, for an organization that uses the six, ornull, with adefault_voice_notesaying why; the Watership voice is the default for every type, and the field keeps its name for compatibility),tone, andshift. A documentation type that is also a type in the Watership DITA content model (concept, task, reference, interface guide, tutorial, troubleshooting) hascontent_model, the id of that type, and uses its id and name. Glossary entries share the reference row. Theshiftobject has a value for every scale id; “as the voice” means the type leaves that scale where the voice rests. default_voices- The
default_voicepairings grouped by voice: each of the six voice ids, with the ids of the content types it suits (an empty list if none). This file is the one source of these pairings. The voices site and the API docs read them from here, so a “suits” line on any Watership site comes from it. no_default_voice- The ids of the content types that none of the six voices suits, such as interface text.
locked- The locked tone for errors, billing, security, and legal:
nameandshift, with a value for every scale. calibration- One object per pair:
id(also the anchor on the calibration page),voice,from_type,to_type,locked(error,billing,security, ornull),facts,from,to, andshifts, which holds only the scales that moved.
Scale ids and content type ids are stable. A change to an id is a breaking change and is noted in the changelog.