Goal: the reader reads it once and does not misread it. Method: limit vocabulary, limit sentence patterns, one sentence for one thing.
See the complete rules in spec.md, and see the word list in wordlist.md. This file lists only the most commonly used parts.
Modes
- Normal mode (default): execute all [MUST] rules and the automatic check items of the word list. [SHOULD] rules are handled only when obvious.
- Strict mode: when the user says "strict" or "all rules", execute all rules.
When the user does not specify, use normal mode.
Classify before writing
- Operation sentences: tell the reader what to do. Put them in a numbered list, start with a verb, no more than 30 characters.
- Description sentences: other sentences. No more than 40 characters.
Character counting method: count each Chinese character as 1, each English word or number string as 1, inline code as 1, and punctuation is not counted.
Rules that must be followed
Words:
- Use only one word for one concept in the whole text. Do not switch to synonyms. (1.1)
- Do not use "进行", "加以", "作出", or "予以" plus a verb. Use the verb directly. (1.4)
- Do not use degree words without numeric values: "很", "非常", "较", "大量", "尽快", "及时". Write a numeric value or a condition. (1.5)
- When an abbreviation first appears, write the full name with the abbreviation in parentheses; after that, use the fixed form. (1.6)
- No jargon: "empower", "lever", "closed loop", "align", "accumulate", "pain point", "benchmark", "playbook", "sync up". (1.7)
Sentences:
- One sentence says only one thing. A semicolon must not be used to combine two sentences into one. (2.2)
- Use imperative sentences for operation sentences; do not write "请", "您", "用户需要", or "应该". (2.3)
- Use active sentences and state the actor. "被", "由", and "受到" are signals. (2.4)
- Put the condition before the action: "If X, do Y". Do not put it at the end of the sentence or in parentheses. (2.5)
- Use at most one negation per sentence. Do not use "不得不", "不无", or "没有……不". (2.6)
- Modifiers before a noun must not exceed 15 characters. Consecutive "的" is a signal. (2.7)
- "其", "该", "此", and "它" refer only to the object of the previous sentence. Otherwise, repeat the noun. Do not use "相关" or "上述". (2.8)
- Do not use rhetorical questions, self-answered questions, or exclamations. (2.9)
Paragraphs and steps:
- One paragraph has one topic and no more than 6 sentences. (3.1, 3.2)
- Use a numbered list for steps; each number has one action. Do not write "first... then..." in the body text. (3.3, 4.1)
- Do not use open lists ending in "等". List all items, or write a quantity plus "包括". (3.5)
- A warning is a separate paragraph, placed before the step it applies to, and starts with "警告:". (4.3)
- Use imperative sentences for human actions; write system behavior as "system + verb". (4.4)
- List preconditions separately, before the steps. (4.5)
Numbers:
- Use Arabic numerals, with a space between the number and the unit. (5.1)
- Do not use "above", "below", or "within" after a number. Use "greater than", "not less than", "no more than", or "3 to 5 (inclusive)". (5.2)
- Do not use relative times: "tomorrow", "soon", "shortly", "as soon as possible". Use absolute dates or durations. (5.3)
- In procedural sentences, do not use "about", "a few", "several", or "multiple times". Write the numeric value. (5.4)
- Avoid using "times" (multiplicative). Separate percentages and percentage points. (5.5)
Markup:
- Enclose UI element names in 「」 and match the interface text. (6.1)
- Use code markup for code, commands, paths, and field names, and keep them unchanged. (6.2)
Term list quick reference
The 20 most commonly encountered. See the full table in Term list.md。
| Don't use | Use |
|---|---|
| "perform installation" | install |
| "related configuration" | Write the specific object |
| "supports A, B, etc." | List them all, or "includes 3 types: A, B, C" |
| "10 and above" | greater than 10 / not less than 10 |
| "about 5 seconds or so" | 5 seconds |
| "as soon as possible" | within 30 minutes |
| "if it fails" | if it fails |
| "check it" | check |
| "the situation where an error occurs" | when an error occurs |
| "should", "be sure to", "must" | must (mandatory) / recommended (suggested) |
| "must not", "not allowed" | prohibited |
| "single-click", "tap" | click |
| "delete", "remove" | delete |
| "turn on the feature" | enable the feature |
| "open the program" | launch the program |
| "log out" | sign out |
| "key in" | enter |
| "input parameters", "output parameters" | parameters / return value |
| "log in", "account", "default" | sign in, account, default |
| "error" (noun) | error |
The 4 most commonly mistaken cases of one word, one meaning:
- Open: use only for files, windows, pages, and connections. For features use "enable"; for programs use "launch".
- Can: indicates permission only. For capability use "supports".
- Issue: indicates a question only. Write faults, errors, and defects separately.
- Update: use only for data and content. For versions use "upgrade".
Workflow
-
Determine the content type. Marketing, narrative, and legal source text do not use this specification.
-
Determine the mode. The default is regular mode.
-
Write or rewrite. Define terminology first, then write sentences. Use numbered lists for procedural content.
-
If the result is saved as a file, run the check script:
python3 tools/check.py 文件.mdFor chat answers and other content without numbered steps, add
--kind 描述。 -
Fix all [Must] level findings. Handle [Suggested] level findings at your discretion.
-
When rewriting someone else's draft, do not change facts, numbers, conditions, or degree of certainty. If the original says "may", it still says "may" after rewriting.
What not to do
- Do not rewrite code, commands, paths, field names, or URLs.
- Do not delete conditions, exceptions, or warnings just to shorten sentences.
- Do not change "may" to "will", and do not change "suggested" to "must".
- Do not make up numbers, dates, or time limits that are not in the original. When information is missing, write "to be confirmed".
- Do not apply the standard to text types it does not apply to.
Limitations of the checking script
The script only checks syntax. It cannot detect factual errors, wrong terminology choices, or incorrect logical order. It uses "numbered list items" to identify procedural sentences, approximates long attributives by the number of "的", and approximates passive sentences with a few marker words. All findings must be manually confirmed.