Skip to content

About

Style guide for technical documentation in English and Russian, extracted from The Go Programming Language and The Swift Programming Language, with a blacklist of generated-text patterns and the review discipline that enforces it

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Engineering Prose Style

A style guide for technical documentation in English and Russian, and the review discipline that keeps documents matching it. The rules were extracted from two reference books and then hardened against real documentation work across two managers of the same protocol.

prose-style.md is the guide itself. Copy it into a project as docs/prose-style.md and cite it as binding.

Where the rules come from

Two book analyses in sources/ hold the derivation. Each rule there carries verbatim quotes as evidence.

The Go Programming Language (Donovan, Kernighan) supplies the sentence and paragraph discipline: a short flat claim first, elaboration after; the software as grammatical subject; a definition before its consequences; a term italicized once and then repeated verbatim; enumerations announced and delivered as ordinal paragraphs rather than bullets; costs stated as plainly as features.

The Swift Programming Language supplies the reference-manual patterns: goal-first constructions ("To do X, you write Y"), one concept per paragraph, every code listing bracketed by a colon lead-in and a walkthrough, full API names repeated instead of pronouns, caveats stated next to the safe default.

The Russian section follows engineering prose practice rather than either book: name the actor, prefer the verb to the verbal noun, keep an English term only when no exact Russian equivalent exists.

Two rules deliberately contradict the sources. Both books use em-dashes freely; this guide forbids them, because generated text overuses them as rhetorical glue. Both books avoid bullet lists almost entirely; this guide allows them for genuinely parallel facts while keeping reasoning in prose.

The blacklist

The guide ends with a list of patterns a reviewer rejects on sight: antithesis constructions, em-dashes as glue, Russian guillemets, triple enumerations, restating summaries, filler openers, bullet lists that carry an argument, and marketing adjectives applied to the project. Each entry carries a Bad and a Good example.

The blacklist exists because these patterns are what an unedited language model produces, and because they survive a casual read. A reviewer with an explicit list catches them; a reviewer asked for "good style" does not.

Using it with writing agents

The guide was written for a pipeline where documentation is produced by one agent and reviewed by another. Four practices made that pipeline work.

Attach the guide as a binding input to every writing task, not as advice. A producer that receives it as one of several context files treats it as optional; a producer that receives it as a stated acceptance criterion does not.

Make the reviewer verify facts, not prose alone. Every claim about a command, a flag, an error identifier, or a file path is checked against the source tree or the actual binary, and the literal command output goes into the review record. In this project's own history that discipline caught invented CLI flags, a fabricated error string, an inverted validation rule, and several confidently reported test counts that never ran.

Require the producer to paste verification output rather than describe it. A claim that a check passed is not evidence; the output of the check is.

Keep the acceptance loop until the reviewer accepts. Documents here took between two and five cycles. The first draft is never the delivered one, and the second is usually still wrong about something specific.

Provenance

The guide was applied across the documentation of two package managers that implement the same protocol: a Python implementation and a Go implementation. It survived roughly thirty producer and reviewer cycles, three trunk rebases under concurrent feature landings, and reviews by a model instructed to refute rather than approve. Rules that did not survive contact with real documents were removed or amended; the amendments about comparative overviews and collapsible blocks are examples.

License and quotations

The guide text is free to copy and adapt. The excerpts quoted in sources/ belong to their authors and publishers and appear here for commentary and analysis.

About

Style guide for technical documentation in English and Russian, extracted from The Go Programming Language and The Swift Programming Language, with a blacklist of generated-text patterns and the review discipline that enforces it

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors