14 Documentation Principles
Japanese Quality (1-3)
Use Natural Japanese - Avoid programming jargon
- NG: スローする, リターンする, フェッチする
- OK: 発生させる, 返す, 取得する
Follow Textlint Rules - Avoid redundant expressions
- NG: 〜を行う, 〜することができる
- OK: 〜する, 〜できる
Avoid Sentence-Ending Colons - Do not end sentences with
:or:- NG: 以下のシナリオで発生する可能性があります:
- OK: 以下のシナリオで発生します。
Conciseness (4-8)
Eliminate Redundant Explanations - If process flow is clear, results are self-evident
- Remove: この仕組みにより〜, これによって〜
Keep Overview Sections Concise - State document purpose only (1-3 sentences)
- Details belong in specific sections
Avoid Outcome/Benefit Statements - If feature description is clear, benefits are self-evident
- Remove: 〜できます, 〜を削減, 〜が可能になり
Avoid Abstract Verbs - Specify concrete changes
- NG: 改善しました, 最適化しました
- OK: 接続タイムアウト時に3回まで自動リトライします
Explain Reasons Concisely - Provide technical justification in 2-3 sentences
Visual Expression (9)
- Use Emphasis Sparingly
- Headers: H2→H3→H4 only
- Bold: 1 per sentence maximum
Technical Documentation (10-12)
Avoid Implementation Details - Describe what features do, not how
- NG: LoanRepository.ExtendLoanPeriod() を呼び出して貸出期間を延長します
- OK: 貸出期間を延長します
Explicitly State Conditional Behavior - Clearly state when behavior varies
- Avoid: always, must (unless truly unconditional)
Distinguish Admonitions - Use correct types:
Type Purpose :::infoDocument scope, references :::noteDesign rationale, technical reasons :::tipBest practices, recommendations :::warningDocument status (TODO, WIP) :::cautionOperation warnings :::dangerCritical risks, irreversible actions
Project-Specific (13-14)
Match UI Terminology - Use exact terms from KNOWLEDGE
- Check KNOWLEDGE for project-specific terms
Standardize Document Structure - Use consistent structure
- Overview → Process Flow → Error Cases
Severity Levels
| Level | Violation Type |
|---|---|
| Critical | Principles 1-3 (Japanese Quality) |
| High | Principles 4-8, 10-12 (Conciseness, Technical) |
| Medium | Principles 9, 13-14 (Visual, Project-specific) |
Converted and distributed by TomeVault — claim your Tome and manage your conversions.