A strong specification removes guesswork between design and implementation. Ambiguous prose leads to incompatible edge-case behavior across clients and parsers.
Normative Keywords (RFC 2119 / RFC 8174)
Define requirement levels explicitly in uppercase:
- MUST / REQUIRED: Absolute requirement of the specification.
- MUST NOT / SHALL NOT: Absolute prohibition.
- SHOULD / RECOMMENDED: Valid reasons may exist to ignore in particular circumstances, but full implications must be understood.
- MAY / OPTIONAL: Truly optional behavior; implementations must interoperate whether or not the feature is present.
Replacing Prose with Decision Tables
Whenever behavior depends on multiple boolean or enum states, replace paragraphs with an exhaustive truth table:
| Input Token | Trailing Whitespace | Escaped | Resulting State |
|---|---|---|---|
# |
Any | No | Begin single-line comment |
# |
Any | Yes (\#) |
Literal # character |
" |
No | No | Begin quoted string literal |
#specifications
#architecture
#documentation