You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(km): add Chicago title case, Oxford comma, and number formatting rules
- Extend titleCase rule to apply to H1, H2, and H3 (was H1/H2 only)
- Document Chicago-style title case: lowercase articles, short prepositions
(four letters or fewer), and coordinating conjunctions unless first/last word
- Add Oxford comma rule: required in all lists of three or more items
- Add number formatting rules: spell out one through ten in prose,
use numerals for 11 and above; exceptions for version numbers,
code values, measurements, percentages, and ranges
- Update km-style-guide.md with full examples and rationale for each rule
- Update last-updated date to March 2026
Copy file name to clipboardExpand all lines: docs-linter/rules/formatting.json
+23-2Lines changed: 23 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,11 @@
1
1
{
2
2
"headings": {
3
3
"titleCase": {
4
-
"applyTo": ["h1", "h2"],
4
+
"applyTo": ["h1", "h2", "h3"],
5
+
"style": "chicago",
6
+
"description": "Chicago title case: capitalize all major words; lowercase articles (a, an, the), short prepositions (in, of, on, for, to, at, by, up), and coordinating conjunctions (and, but, or, nor, yet, so) unless first or last word",
5
7
"severity": "info",
6
-
"message": "Consider using title case for main headings"
8
+
"message": "Use Chicago-style title case for H1, H2, and H3 headings"
7
9
},
8
10
"sentenceCase": {
9
11
"applyTo": ["h4", "h5", "h6"],
@@ -97,5 +99,24 @@
97
99
"severity": "info",
98
100
"message": "Remove trailing spaces"
99
101
}
102
+
},
103
+
"punctuation": {
104
+
"oxfordComma": {
105
+
"severity": "warning",
106
+
"message": "Use the Oxford comma in lists of three or more items (e.g. 'red, white, and blue')"
107
+
}
108
+
},
109
+
"numbers": {
110
+
"spellOut": {
111
+
"range": [1, 10],
112
+
"severity": "info",
113
+
"message": "Spell out numbers one through ten in prose (e.g. 'three steps', not '3 steps')"
114
+
},
115
+
"useNumerals": {
116
+
"threshold": 11,
117
+
"severity": "info",
118
+
"message": "Use numerals for numbers 11 and above (e.g. '12 files', not 'twelve files')"
0 commit comments