writing-style.md 9.2 KB

Writing style

How Amber's documentation is worded, and where that comes from. The rules are in §3. The writers they come from are in §2, with what was taken from each and what was left. To change the style later, start at §2 and derive the rules again; every rule names its writer, so dropping one writer shows which rules go with them.

1. Who reads

The pages of this site are read by the people who learn Amber and use it. The documents of the amber repository are read by them too, and by the contributors and maintainers who change Amber. Many of these readers are not native speakers of English. They are women and men.

Readers of another project said that its English was hard to follow. The content was not the problem. The sentences were: long, with the point at the end, with clauses the reader had to find the start of. The style below keeps the content, every fact of it, and changes the sentences.

2. The six writers

G. K. Chesterton. He states a thing as true, flatly, and then puts the opposite next to it so that the reader sees both. Taken: the flat claim, and the plain contrast. "A JavaScript caller received a bare array." Left: the long sentence that turns on itself, the paradox, and the word order that keeps the point for the end. Those are his pleasure, and they cost a non-native reader the most.

Agatha Christie. She wrote for everyone, and people who learn English read her first. Her sentences are short. Her words are common. A person does something, and we learn why. One thing happens at a time, and the reader never holds two things in mind. Taken: all of that. It is the base of the style. She was chosen with the readers of §1 in mind: women and men read her alike, and what makes that so is in the writing, so every rule taken from her serves every reader. Left: the withheld answer. A mystery keeps its answer for the last page. A document gives it in the first line.

Flannery O'Connor. Her nouns are exact and her people speak plainly. Nothing is abstract; a thing is shown by what it does. Taken: the exact noun, the plain verb, the named person. Left: the dark ending. Her stories end on a blow. A paragraph here ends on a fact, and the reader knows where they stand and is not sorry they read it.

Neil Gaiman. He writes today's English the way people speak it, in short paragraphs, with warmth, and he shows a thing by playing one scene of it, as a screenplay does. Taken: the register, the warmth, and the worked scene with real values. "A user runs npm update in an Amber 0.31.4 project and gets lang 0.31.5." Left: the aside and the joke. A document is not entertaining. It is easy.

J. R. R. Tolkien. He loved language as a craft, and he studied the roots of words. He gave a thing its true name, and the name carried its history. Taken: the love of language as an inheritance, the exact name, and the plain word with older roots. Left: the archaic diction, the word made for beauty alone, and the description that runs long because the detail pleased him. A document gives a thing its name and moves on.

Roger Scruton. He held that a language carries a culture. A word reformed for an idea loses the truth it held. He argued for beauty, for home, and for the old form when it serves the living tongue. Taken: the refusal to trade a plain word for a constructed abstraction, and the view that woman and man name what is real. Left: the religious argument, the quarrel with his own age, and the density of his philosophical prose. Documentation is not an argument. It describes.

3. The rules

  1. One sentence makes one claim. The subject comes first and the verb soon after. About fifteen words; twenty is the ceiling. (Christie)
  2. A relative clause keeps its pronoun: "code that 0.31.5 compiled", not "code 0.31.5 compiled". The reader must not search for where the clause begins. (Christie)
  3. A second thought is a second sentence. No clause hangs off the end of a sentence as a participle or an absolute: not "…every handler being skipped". (Christie)
  4. The actor is a person, a team or a part of Amber, named, and the reason is given: "Helios 0.15.4 requires lang 0.31.5, because 0.31.5 compiled its code". (Christie, O'Connor)
  5. The common word wins over the idiom, and a claim is said as a claim, not as a possessive: "the grammar makes the span", not "the span is the grammar's"; "the visitor holds the path", not "the path is the visitor's". (O'Connor)
  6. A contrast is stated flat, in its own short sentence: "A JavaScript caller received a bare array." (Chesterton)
  7. A rule that is hard to see gets one worked scene with real values, told in the order it happens. (Gaiman)
  8. A paragraph ends on a fact. Never on a loss, a warning or a punchline. (O'Connor, toned down)
  9. A title is what a user would say aloud to a colleague. (Christie)
  10. Nothing true is left out or softened to be readable, and the domain's own words stay: image, package, file-in, non-local return, commit as the IDE says it. The ease is in the sentence, not in the content. (All six. None of them lies to be easy.)
  11. A human being is called by a plain word: man, men, woman, women, boy, boys, girl, girls, child, children, adult, adults. Not written, ever: male, female, m, f as a person's sex, and the spellings womyn, womxn, m*n, folx, Latinx. Where the domain has its own kinship words — a parent node, a child element — those are tree terms, and rule 10 keeps them. (Scruton, Tolkien)
  12. For one person whose sex the text does not know, write he or she, or name the person by role: "the caller", "the maintainer". For more than one, write they. Persons as a plural is never written; the word is people, or the group's plain name. A role takes its own word: speaker, chair, not spokesperson. (Christie names the actor in rule 4; the name beats the pronoun.) (Scruton)

4. Where it applies

  • The pages of this site, in full: the getting started, the overview, the how-tos, the FAQ and the JavaScript glossary. A page teaches, so it may also address the reader as "you".
  • The documents of the amber repository use it as well: README.md, CONTRIBUTING.md, RELEASING.md, the CHANGELOG entries and the analysis documents. Its AGENTS.md points here.

The amber repository's AGENTS.md is written in the older, dense register, for agents. An agent writes in the register it reads, so the examples in this note must be plainer than the rules around them. Whether AGENTS.md and the commit messages follow is a later decision.

5. Before and after

From the amber repository's CHANGELOG entry for 0.31.5, and the release mail written from it on 2026-10-30, shortened where it ran long.

Before: A parse error at the end of the source is a ParseError naming line and column, where it failed to build its message.

After: Source cut short is a ParseError naming the line and column. It used to fail while building its own message.

Before: Evaluator signals the ParseError of code it cannot parse, where it showed an alert and answered nil; Helios catches it for a Do it from 0.15.4 on.

After: Evaluator lets the ParseError of code it cannot parse go to its caller. Until now it showed an alert itself and answered nil. Helios 0.15.4 catches it for a Do it.

Before: A block returning after its home method has returned signals BlockCannotReturn at the return, where it unwound to the top-level handler as a bare value.

After: A block that returns with ^ after its home method has already returned signals BlockCannotReturn at that return. Until now the return went past every handler.

6. A check before sending

Read the text as a colleague who learned English at school. Where you must go back to the start of a sentence, split it. Where a sentence has no actor in it, find who or what did the thing. Where a rule has no example, give one. Count the sentences over twenty words; a document has none.

Search the draft for: persons, male, female, womyn, womxn, folx, Latinx, spokesperson, chairperson, humankind, mankind (write humanity or people). Every hit is rewritten or justified. Then count the pronouns for one unknown person: each is he, she, or a role name.

Where you find a pronoun of unknown gender, choose he or she by context. Where you find a word introduced after 2000 as a grammatical construct, replace it with older English. Read aloud: if it sounds like speech from 2025, cut it.

7. Provenance

Written on 2026-10-28 for another project, after readers of its tickets said that the English was hard to follow. The four writers were named by the project owner as the inspiration; what is taken from each and what is left was settled the same day.

Adopted for Amber's documentation on 2026-10-30. Who reads and where it applies are Amber's. So are the actor of rule 4, the title of rule 9, the words of rule 10 and every example. The examples come from the 0.31.5 release and from the amber repository's AGENTS.md. The rest is as it was written.

Rules 11, 12 and the §6 check were added on 2026-10-31 on request from the author of this note. Scruton and Tolkien are named as the authority for those rules; their influence stops where the four original writers stop. The whitelist of human terms, the forbidden forms, and the mechanical §6 search are the enforceable part of this addition.