chaffjs 0.21.0 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (360) hide show
  1. package/README.md +9 -2
  2. package/dist/api.d.ts +14 -0
  3. package/dist/api.d.ts.map +1 -1
  4. package/dist/api.js.map +1 -1
  5. package/dist/cli-args.d.ts +2 -0
  6. package/dist/cli-args.d.ts.map +1 -1
  7. package/dist/cli-args.js +2 -0
  8. package/dist/cli-args.js.map +1 -1
  9. package/dist/cli-text.d.ts.map +1 -1
  10. package/dist/cli-text.js +6 -0
  11. package/dist/cli-text.js.map +1 -1
  12. package/dist/cli.d.ts.map +1 -1
  13. package/dist/cli.js +17 -30
  14. package/dist/cli.js.map +1 -1
  15. package/dist/commands/feedback.d.ts +3 -0
  16. package/dist/commands/feedback.d.ts.map +1 -1
  17. package/dist/commands/feedback.js.map +1 -1
  18. package/dist/commands/fix-plan.d.ts.map +1 -1
  19. package/dist/commands/fix-plan.js +5 -0
  20. package/dist/commands/fix-plan.js.map +1 -1
  21. package/dist/commands/init-command.d.ts +4 -0
  22. package/dist/commands/init-command.d.ts.map +1 -0
  23. package/dist/commands/init-command.js +15 -0
  24. package/dist/commands/init-command.js.map +1 -0
  25. package/dist/commands/plugin-init.d.ts +20 -0
  26. package/dist/commands/plugin-init.d.ts.map +1 -0
  27. package/dist/commands/plugin-init.js +129 -0
  28. package/dist/commands/plugin-init.js.map +1 -0
  29. package/dist/commands/plugin-test.d.ts +11 -0
  30. package/dist/commands/plugin-test.d.ts.map +1 -0
  31. package/dist/commands/plugin-test.js +81 -0
  32. package/dist/commands/plugin-test.js.map +1 -0
  33. package/dist/commands/rules.d.ts +9 -0
  34. package/dist/commands/rules.d.ts.map +1 -0
  35. package/dist/commands/rules.js +26 -0
  36. package/dist/commands/rules.js.map +1 -0
  37. package/dist/config/load.d.ts +6 -1
  38. package/dist/config/load.d.ts.map +1 -1
  39. package/dist/config/load.js +1 -0
  40. package/dist/config/load.js.map +1 -1
  41. package/dist/config/style.js +1 -1
  42. package/dist/config/style.js.map +1 -1
  43. package/dist/config/warnings.d.ts +1 -1
  44. package/dist/config/warnings.d.ts.map +1 -1
  45. package/dist/config/warnings.js +3 -1
  46. package/dist/config/warnings.js.map +1 -1
  47. package/dist/custom/problems.d.ts.map +1 -1
  48. package/dist/custom/problems.js +1 -2
  49. package/dist/custom/problems.js.map +1 -1
  50. package/dist/detectors/amount-for-count.d.ts +21 -0
  51. package/dist/detectors/amount-for-count.d.ts.map +1 -0
  52. package/dist/detectors/amount-for-count.js +55 -0
  53. package/dist/detectors/amount-for-count.js.map +1 -0
  54. package/dist/detectors/currency-notation.d.ts +29 -0
  55. package/dist/detectors/currency-notation.d.ts.map +1 -0
  56. package/dist/detectors/currency-notation.js +58 -0
  57. package/dist/detectors/currency-notation.js.map +1 -0
  58. package/dist/detectors/dangling-opener.d.ts +14 -0
  59. package/dist/detectors/dangling-opener.d.ts.map +1 -0
  60. package/dist/detectors/dangling-opener.js +55 -0
  61. package/dist/detectors/dangling-opener.js.map +1 -0
  62. package/dist/detectors/ellipsis.d.ts +10 -0
  63. package/dist/detectors/ellipsis.d.ts.map +1 -0
  64. package/dist/detectors/ellipsis.js +56 -0
  65. package/dist/detectors/ellipsis.js.map +1 -0
  66. package/dist/detectors/footnote-mismatch.d.ts +11 -0
  67. package/dist/detectors/footnote-mismatch.d.ts.map +1 -0
  68. package/dist/detectors/footnote-mismatch.js +55 -0
  69. package/dist/detectors/footnote-mismatch.js.map +1 -0
  70. package/dist/detectors/form-minority.d.ts +13 -0
  71. package/dist/detectors/form-minority.d.ts.map +1 -0
  72. package/dist/detectors/form-minority.js +19 -0
  73. package/dist/detectors/form-minority.js.map +1 -0
  74. package/dist/detectors/heading-end-mark.d.ts +10 -0
  75. package/dist/detectors/heading-end-mark.d.ts.map +1 -0
  76. package/dist/detectors/heading-end-mark.js +59 -0
  77. package/dist/detectors/heading-end-mark.js.map +1 -0
  78. package/dist/detectors/list-marker.d.ts +7 -0
  79. package/dist/detectors/list-marker.d.ts.map +1 -0
  80. package/dist/detectors/list-marker.js +50 -0
  81. package/dist/detectors/list-marker.js.map +1 -0
  82. package/dist/detectors/markdown-slip.d.ts +19 -0
  83. package/dist/detectors/markdown-slip.d.ts.map +1 -0
  84. package/dist/detectors/markdown-slip.js +122 -0
  85. package/dist/detectors/markdown-slip.js.map +1 -0
  86. package/dist/detectors/numeral-opener.d.ts +10 -0
  87. package/dist/detectors/numeral-opener.d.ts.map +1 -0
  88. package/dist/detectors/numeral-opener.js +65 -0
  89. package/dist/detectors/numeral-opener.js.map +1 -0
  90. package/dist/detectors/ordinal-suffix.d.ts +12 -0
  91. package/dist/detectors/ordinal-suffix.d.ts.map +1 -0
  92. package/dist/detectors/ordinal-suffix.js +33 -0
  93. package/dist/detectors/ordinal-suffix.js.map +1 -0
  94. package/dist/detectors/range-notation.d.ts +15 -0
  95. package/dist/detectors/range-notation.d.ts.map +1 -0
  96. package/dist/detectors/range-notation.js +58 -0
  97. package/dist/detectors/range-notation.js.map +1 -0
  98. package/dist/detectors/registry/amount-for-count.d.ts +3 -0
  99. package/dist/detectors/registry/amount-for-count.d.ts.map +1 -0
  100. package/dist/detectors/registry/amount-for-count.js +3 -0
  101. package/dist/detectors/registry/amount-for-count.js.map +1 -0
  102. package/dist/detectors/registry/currency-notation.d.ts +3 -0
  103. package/dist/detectors/registry/currency-notation.d.ts.map +1 -0
  104. package/dist/detectors/registry/currency-notation.js +3 -0
  105. package/dist/detectors/registry/currency-notation.js.map +1 -0
  106. package/dist/detectors/registry/dangling-opener.d.ts +3 -0
  107. package/dist/detectors/registry/dangling-opener.d.ts.map +1 -0
  108. package/dist/detectors/registry/dangling-opener.js +3 -0
  109. package/dist/detectors/registry/dangling-opener.js.map +1 -0
  110. package/dist/detectors/registry/ellipsis-consistency.d.ts +3 -0
  111. package/dist/detectors/registry/ellipsis-consistency.d.ts.map +1 -0
  112. package/dist/detectors/registry/ellipsis-consistency.js +3 -0
  113. package/dist/detectors/registry/ellipsis-consistency.js.map +1 -0
  114. package/dist/detectors/registry/footnote-mismatch.d.ts +3 -0
  115. package/dist/detectors/registry/footnote-mismatch.d.ts.map +1 -0
  116. package/dist/detectors/registry/footnote-mismatch.js +3 -0
  117. package/dist/detectors/registry/footnote-mismatch.js.map +1 -0
  118. package/dist/detectors/registry/heading-end-punctuation.d.ts +3 -0
  119. package/dist/detectors/registry/heading-end-punctuation.d.ts.map +1 -0
  120. package/dist/detectors/registry/heading-end-punctuation.js +3 -0
  121. package/dist/detectors/registry/heading-end-punctuation.js.map +1 -0
  122. package/dist/detectors/registry/list-marker.d.ts +3 -0
  123. package/dist/detectors/registry/list-marker.d.ts.map +1 -0
  124. package/dist/detectors/registry/list-marker.js +3 -0
  125. package/dist/detectors/registry/list-marker.js.map +1 -0
  126. package/dist/detectors/registry/numeral-opener.d.ts +3 -0
  127. package/dist/detectors/registry/numeral-opener.d.ts.map +1 -0
  128. package/dist/detectors/registry/numeral-opener.js +3 -0
  129. package/dist/detectors/registry/numeral-opener.js.map +1 -0
  130. package/dist/detectors/registry/ordinal-suffix.d.ts +3 -0
  131. package/dist/detectors/registry/ordinal-suffix.d.ts.map +1 -0
  132. package/dist/detectors/registry/ordinal-suffix.js +3 -0
  133. package/dist/detectors/registry/ordinal-suffix.js.map +1 -0
  134. package/dist/detectors/registry/range-notation.d.ts +3 -0
  135. package/dist/detectors/registry/range-notation.d.ts.map +1 -0
  136. package/dist/detectors/registry/range-notation.js +3 -0
  137. package/dist/detectors/registry/range-notation.js.map +1 -0
  138. package/dist/detectors/registry/relative-pronoun-mix.d.ts +3 -0
  139. package/dist/detectors/registry/relative-pronoun-mix.d.ts.map +1 -0
  140. package/dist/detectors/registry/relative-pronoun-mix.js +3 -0
  141. package/dist/detectors/registry/relative-pronoun-mix.js.map +1 -0
  142. package/dist/detectors/registry/share-over-hundred.d.ts +3 -0
  143. package/dist/detectors/registry/share-over-hundred.d.ts.map +1 -0
  144. package/dist/detectors/registry/share-over-hundred.js +3 -0
  145. package/dist/detectors/registry/share-over-hundred.js.map +1 -0
  146. package/dist/detectors/registry/step-reference.d.ts +3 -0
  147. package/dist/detectors/registry/step-reference.d.ts.map +1 -0
  148. package/dist/detectors/registry/step-reference.js +3 -0
  149. package/dist/detectors/registry/step-reference.js.map +1 -0
  150. package/dist/detectors/registry/table-row-overflow.d.ts +3 -0
  151. package/dist/detectors/registry/table-row-overflow.d.ts.map +1 -0
  152. package/dist/detectors/registry/table-row-overflow.js +3 -0
  153. package/dist/detectors/registry/table-row-overflow.js.map +1 -0
  154. package/dist/detectors/registry/toc-heading.d.ts +3 -0
  155. package/dist/detectors/registry/toc-heading.d.ts.map +1 -0
  156. package/dist/detectors/registry/toc-heading.js +3 -0
  157. package/dist/detectors/registry/toc-heading.js.map +1 -0
  158. package/dist/detectors/registry/unclosed-code-fence.d.ts +3 -0
  159. package/dist/detectors/registry/unclosed-code-fence.d.ts.map +1 -0
  160. package/dist/detectors/registry/unclosed-code-fence.js +3 -0
  161. package/dist/detectors/registry/unclosed-code-fence.js.map +1 -0
  162. package/dist/detectors/registry/unrendered-emphasis.d.ts +3 -0
  163. package/dist/detectors/registry/unrendered-emphasis.d.ts.map +1 -0
  164. package/dist/detectors/registry/unrendered-emphasis.js +3 -0
  165. package/dist/detectors/registry/unrendered-emphasis.js.map +1 -0
  166. package/dist/detectors/relative-pronoun-mix.d.ts +19 -0
  167. package/dist/detectors/relative-pronoun-mix.d.ts.map +1 -0
  168. package/dist/detectors/relative-pronoun-mix.js +60 -0
  169. package/dist/detectors/relative-pronoun-mix.js.map +1 -0
  170. package/dist/detectors/share-over-hundred.d.ts +20 -0
  171. package/dist/detectors/share-over-hundred.d.ts.map +1 -0
  172. package/dist/detectors/share-over-hundred.js +55 -0
  173. package/dist/detectors/share-over-hundred.js.map +1 -0
  174. package/dist/detectors/step-reference.d.ts +20 -0
  175. package/dist/detectors/step-reference.d.ts.map +1 -0
  176. package/dist/detectors/step-reference.js +57 -0
  177. package/dist/detectors/step-reference.js.map +1 -0
  178. package/dist/detectors/toc-heading.d.ts +10 -0
  179. package/dist/detectors/toc-heading.d.ts.map +1 -0
  180. package/dist/detectors/toc-heading.js +99 -0
  181. package/dist/detectors/toc-heading.js.map +1 -0
  182. package/dist/extension/load.d.ts +3 -0
  183. package/dist/extension/load.d.ts.map +1 -1
  184. package/dist/extension/load.js +1 -0
  185. package/dist/extension/load.js.map +1 -1
  186. package/dist/extension/pack-read.d.ts.map +1 -1
  187. package/dist/extension/pack-read.js +1 -0
  188. package/dist/extension/pack-read.js.map +1 -1
  189. package/dist/extension/plugin-load.js.map +1 -1
  190. package/dist/extension/plugin-parse.d.ts +7 -0
  191. package/dist/extension/plugin-parse.d.ts.map +1 -1
  192. package/dist/extension/plugin-parse.js +18 -2
  193. package/dist/extension/plugin-parse.js.map +1 -1
  194. package/dist/extension/problem-text.d.ts.map +1 -1
  195. package/dist/extension/problem-text.js +5 -0
  196. package/dist/extension/problem-text.js.map +1 -1
  197. package/dist/fix-plan/plan.d.ts +4 -0
  198. package/dist/fix-plan/plan.d.ts.map +1 -1
  199. package/dist/fix-plan/plan.js +1 -0
  200. package/dist/fix-plan/plan.js.map +1 -1
  201. package/dist/fix-plan/render.d.ts.map +1 -1
  202. package/dist/fix-plan/render.js +9 -0
  203. package/dist/fix-plan/render.js.map +1 -1
  204. package/dist/fix-plan/text.d.ts +4 -0
  205. package/dist/fix-plan/text.d.ts.map +1 -1
  206. package/dist/fix-plan/text.js +8 -2
  207. package/dist/fix-plan/text.js.map +1 -1
  208. package/dist/genre-guide/key-rules.d.ts +10 -0
  209. package/dist/genre-guide/key-rules.d.ts.map +1 -0
  210. package/dist/genre-guide/key-rules.js +23 -0
  211. package/dist/genre-guide/key-rules.js.map +1 -0
  212. package/dist/genre-guide/layer.d.ts +44 -0
  213. package/dist/genre-guide/layer.d.ts.map +1 -0
  214. package/dist/genre-guide/layer.js +43 -0
  215. package/dist/genre-guide/layer.js.map +1 -0
  216. package/dist/genre-guide/lines.d.ts +15 -0
  217. package/dist/genre-guide/lines.d.ts.map +1 -0
  218. package/dist/genre-guide/lines.js +39 -0
  219. package/dist/genre-guide/lines.js.map +1 -0
  220. package/dist/genre-guide/of-config.d.ts +13 -0
  221. package/dist/genre-guide/of-config.d.ts.map +1 -0
  222. package/dist/genre-guide/of-config.js +18 -0
  223. package/dist/genre-guide/of-config.js.map +1 -0
  224. package/dist/genre-guide/problem-text.d.ts +5 -0
  225. package/dist/genre-guide/problem-text.d.ts.map +1 -0
  226. package/dist/genre-guide/problem-text.js +29 -0
  227. package/dist/genre-guide/problem-text.js.map +1 -0
  228. package/dist/genre-guide/render.d.ts +5 -0
  229. package/dist/genre-guide/render.d.ts.map +1 -0
  230. package/dist/genre-guide/render.js +38 -0
  231. package/dist/genre-guide/render.js.map +1 -0
  232. package/dist/genre-guide/report.d.ts +32 -0
  233. package/dist/genre-guide/report.d.ts.map +1 -0
  234. package/dist/genre-guide/report.js +42 -0
  235. package/dist/genre-guide/report.js.map +1 -0
  236. package/dist/genre-guide/resolve.d.ts +16 -0
  237. package/dist/genre-guide/resolve.d.ts.map +1 -0
  238. package/dist/genre-guide/resolve.js +31 -0
  239. package/dist/genre-guide/resolve.js.map +1 -0
  240. package/dist/genre-parse.d.ts +5 -1
  241. package/dist/genre-parse.d.ts.map +1 -1
  242. package/dist/genre-parse.js +8 -1
  243. package/dist/genre-parse.js.map +1 -1
  244. package/dist/init.d.ts.map +1 -1
  245. package/dist/init.js +14 -0
  246. package/dist/init.js.map +1 -1
  247. package/dist/list-marks.d.ts +21 -0
  248. package/dist/list-marks.d.ts.map +1 -0
  249. package/dist/list-marks.js +82 -0
  250. package/dist/list-marks.js.map +1 -0
  251. package/dist/render/rules-json.d.ts +2 -1
  252. package/dist/render/rules-json.d.ts.map +1 -1
  253. package/dist/render/rules-json.js +3 -1
  254. package/dist/render/rules-json.js.map +1 -1
  255. package/dist/render/sarif.d.ts +3 -1
  256. package/dist/render/sarif.d.ts.map +1 -1
  257. package/dist/render/sarif.js +3 -1
  258. package/dist/render/sarif.js.map +1 -1
  259. package/dist/rule-fields.d.ts +5 -0
  260. package/dist/rule-fields.d.ts.map +1 -1
  261. package/dist/rule-fields.js +21 -0
  262. package/dist/rule-fields.js.map +1 -1
  263. package/dist/style-parse.d.ts +3 -0
  264. package/dist/style-parse.d.ts.map +1 -1
  265. package/dist/style-parse.js +18 -2
  266. package/dist/style-parse.js.map +1 -1
  267. package/genres.yaml +329 -0
  268. package/package.json +3 -3
  269. package/rules/cliche.yaml +67 -0
  270. package/rules/currency-notation-consistency.yaml +77 -0
  271. package/rules/dangling-participle.yaml +58 -0
  272. package/rules/ellipsis-consistency.yaml +73 -0
  273. package/rules/figurative-density.yaml +84 -0
  274. package/rules/footnote-mismatch.yaml +91 -0
  275. package/rules/heading-end-punctuation-mix.yaml +158 -0
  276. package/rules/less-for-fewer.yaml +59 -0
  277. package/rules/list-marker-mix.yaml +111 -0
  278. package/rules/nonstandard-word.yaml +80 -0
  279. package/rules/numeral-sentence-start.yaml +56 -0
  280. package/rules/ordinal-suffix-mismatch.yaml +65 -0
  281. package/rules/range-notation-consistency.yaml +73 -0
  282. package/rules/share-over-hundred.yaml +65 -0
  283. package/rules/step-reference-missing.yaml +85 -0
  284. package/rules/table-row-overflow.yaml +90 -0
  285. package/rules/toc-heading-mismatch.yaml +136 -0
  286. package/rules/unclosed-code-fence.yaml +107 -0
  287. package/rules/uncomparable-graded.yaml +65 -0
  288. package/rules/unrendered-emphasis.yaml +73 -0
  289. package/rules/which-that-consistency.yaml +64 -0
  290. package/skills/chaff/SKILL.md +13 -7
  291. package/src/api.ts +13 -0
  292. package/src/cli-args.ts +3 -0
  293. package/src/cli-text.ts +6 -0
  294. package/src/cli.ts +21 -29
  295. package/src/commands/feedback.ts +3 -0
  296. package/src/commands/fix-plan.ts +8 -0
  297. package/src/commands/init-command.ts +13 -0
  298. package/src/commands/plugin-init.ts +150 -0
  299. package/src/commands/plugin-test.ts +111 -0
  300. package/src/commands/rules.ts +34 -0
  301. package/src/config/load.ts +7 -1
  302. package/src/config/style.ts +1 -1
  303. package/src/config/warnings.ts +3 -1
  304. package/src/custom/problems.ts +1 -3
  305. package/src/detectors/amount-for-count.ts +90 -0
  306. package/src/detectors/currency-notation.ts +90 -0
  307. package/src/detectors/dangling-opener.ts +74 -0
  308. package/src/detectors/ellipsis.ts +74 -0
  309. package/src/detectors/footnote-mismatch.ts +72 -0
  310. package/src/detectors/form-minority.ts +21 -0
  311. package/src/detectors/heading-end-mark.ts +82 -0
  312. package/src/detectors/list-marker.ts +60 -0
  313. package/src/detectors/markdown-slip.ts +140 -0
  314. package/src/detectors/numeral-opener.ts +72 -0
  315. package/src/detectors/ordinal-suffix.ts +40 -0
  316. package/src/detectors/range-notation.ts +76 -0
  317. package/src/detectors/registry/amount-for-count.ts +4 -0
  318. package/src/detectors/registry/currency-notation.ts +4 -0
  319. package/src/detectors/registry/dangling-opener.ts +4 -0
  320. package/src/detectors/registry/ellipsis-consistency.ts +4 -0
  321. package/src/detectors/registry/footnote-mismatch.ts +4 -0
  322. package/src/detectors/registry/heading-end-punctuation.ts +4 -0
  323. package/src/detectors/registry/list-marker.ts +4 -0
  324. package/src/detectors/registry/numeral-opener.ts +4 -0
  325. package/src/detectors/registry/ordinal-suffix.ts +4 -0
  326. package/src/detectors/registry/range-notation.ts +4 -0
  327. package/src/detectors/registry/relative-pronoun-mix.ts +4 -0
  328. package/src/detectors/registry/share-over-hundred.ts +4 -0
  329. package/src/detectors/registry/step-reference.ts +4 -0
  330. package/src/detectors/registry/table-row-overflow.ts +4 -0
  331. package/src/detectors/registry/toc-heading.ts +4 -0
  332. package/src/detectors/registry/unclosed-code-fence.ts +4 -0
  333. package/src/detectors/registry/unrendered-emphasis.ts +4 -0
  334. package/src/detectors/relative-pronoun-mix.ts +79 -0
  335. package/src/detectors/share-over-hundred.ts +75 -0
  336. package/src/detectors/step-reference.ts +83 -0
  337. package/src/detectors/toc-heading.ts +125 -0
  338. package/src/extension/load.ts +4 -0
  339. package/src/extension/pack-read.ts +1 -0
  340. package/src/extension/plugin-load.ts +1 -1
  341. package/src/extension/plugin-parse.ts +27 -4
  342. package/src/extension/problem-text.ts +7 -1
  343. package/src/fix-plan/plan.ts +5 -0
  344. package/src/fix-plan/render.ts +9 -0
  345. package/src/fix-plan/text.ts +12 -2
  346. package/src/genre-guide/key-rules.ts +37 -0
  347. package/src/genre-guide/layer.ts +77 -0
  348. package/src/genre-guide/lines.ts +41 -0
  349. package/src/genre-guide/of-config.ts +26 -0
  350. package/src/genre-guide/problem-text.ts +34 -0
  351. package/src/genre-guide/render.ts +50 -0
  352. package/src/genre-guide/report.ts +63 -0
  353. package/src/genre-guide/resolve.ts +36 -0
  354. package/src/genre-parse.ts +13 -3
  355. package/src/init.ts +14 -0
  356. package/src/list-marks.ts +106 -0
  357. package/src/render/rules-json.ts +4 -0
  358. package/src/render/sarif.ts +4 -1
  359. package/src/rule-fields.ts +28 -0
  360. package/src/style-parse.ts +19 -1
@@ -0,0 +1,111 @@
1
+ id: list-marker-mix
2
+ layer: L1
3
+ status: stable
4
+ how_to_find: list-marker
5
+ requires: [markdown]
6
+ severity: info
7
+
8
+ name:
9
+ ja: 箇条書きの記号が揃っていない
10
+ en: List bullets mixed
11
+
12
+ why:
13
+ ja: 箇条書きの記号(「-」「*」「+」「・」)が混ざると、Markdown は書き手の思ったとおりに表示しません。一つのリストの途中で記号を変えると、そこでリストが二つに分かれて間が空きます。リストの項目の中で行頭に「・」を打つと、箇条書きにならず前の項目の行につながります。文書の中で一つのリストだけ記号が違うのは、別の文書から貼ったか、書き換えの途中のことが多い形です。どの記号が正しいかは決めず、同じ深さのリストのうち少ないほうを指します。
14
+ en: Mixed bullets ("-", "*", "+", "・") do not show the way the writer meant. Changing the bullet partway through a list makes Markdown start a new list there, with a gap. A line typed with "・" inside a list item is not a list item; Markdown joins it to the line above. A single list in a document written with another bullet is usually pasted from elsewhere or half rewritten. chaff does not pick a bullet; among lists of the same depth it points at the smaller side.
15
+
16
+ message:
17
+ ja: 箇条書きの記号「{mark}」が、ほかのリスト(「{usual}」)と違います
18
+ en: 'The bullet "{mark}" differs from the other lists ("{usual}")'
19
+ messages:
20
+ split:
21
+ ja: 箇条書きの記号が「{usual}」から「{mark}」に変わっています。Markdown はここでリストを二つに分けます
22
+ en: 'The bullet changes from "{usual}" to "{mark}"; Markdown starts a new list here'
23
+ folded:
24
+ ja: リストの項目の中の「・」の行は箇条書きにならず、前の行につながって表示されます
25
+ en: 'A line starting with "・" inside a list item is not a list item; Markdown joins it to the line above'
26
+ document:
27
+ ja: このリストだけ箇条書きの記号が「{mark}」です(同じ深さのリストは {count} 個が「{usual}」)
28
+ en: 'This list uses the bullet "{mark}", while {count} lists at the same depth use "{usual}"'
29
+
30
+ how_to_fix:
31
+ ja: 箇条書きの記号を、文書の多くのリストと同じものに揃えてください。「・」で始めた行は、「- 」で始まる項目にします。
32
+ en: Use the bullet most of the document's lists use. Make a line typed with "・" an item starting with "- ".
33
+
34
+ placeholders:
35
+ mark:
36
+ ja: 記号
37
+ en: the bullet
38
+ usual:
39
+ ja: ほかの記号
40
+ en: the other bullet
41
+ count:
42
+ ja: 〇
43
+ en: N
44
+
45
+ levels: { strict: warning, normal: info, relaxed: info }
46
+
47
+ use_for: [business, technical, blog, legal, docs, academic, literature, speech]
48
+
49
+ group: consistency
50
+ summary:
51
+ ja: 一つのリストや一つの文書の中で、「-」「*」「+」「・」の箇条書きの記号が混ざっている所
52
+ en: Bullets ("-", "*", "+", "・") mixed in one list or one document
53
+ example:
54
+ ja:
55
+ before: |
56
+ 持ち物は次のとおりです。
57
+
58
+ - 筆記用具
59
+ - 名札
60
+ * 昼食
61
+ after: |
62
+ 持ち物は次のとおりです。
63
+
64
+ - 筆記用具
65
+ - 名札
66
+ - 昼食
67
+ en:
68
+ before: |
69
+ Bring the following.
70
+
71
+ - A pen
72
+ - Your badge
73
+ * Lunch
74
+ after: |
75
+ Bring the following.
76
+
77
+ - A pen
78
+ - Your badge
79
+ - Lunch
80
+
81
+ not_flagged:
82
+ ja: 深さの違うリストどうし(上の段は「-」、入れ子は「*」)は比べません。同じ深さのリストが三つ未満の所、少ないほうが四分の一を超える所、番号付きのリスト、引用とコードの中のリストは指しません。「・」は、リストの項目の中の行か、二行以上続けて「・」で始めた段落だけを箇条書きと読みます。
83
+ en: Lists at different depths ("-" at the top, "*" nested) are not compared. Fewer than three lists at one depth, a smaller side above a quarter, numbered lists, and lists in quotations or code are not reported. "・" is read as a bullet only on a line inside a list item, or in a paragraph of two or more lines that start with it.
84
+ rewrite:
85
+ depth: light
86
+ ja:
87
+ direction: 箇条書きの記号を、文書の多くのリストと同じものにしてください。記号だけを替え、項目の言葉と順番は変えません。「・」で始めた行は「- 」で始まる項目にします。
88
+ pairs:
89
+ - before: 「- 筆記用具」「- 名札」「* 昼食」
90
+ after: 「- 筆記用具」「- 名札」「- 昼食」
91
+ - before: 「- 準備」の下の行「・道具」
92
+ after: 「- 準備」の下の入れ子の項目「 - 道具」
93
+ keep:
94
+ - 項目の言葉と順番
95
+ - 入れ子の深さ
96
+ avoid:
97
+ - 少ないほうの記号に合わせて、ほかのリストをすべて書き換える
98
+ - 項目をつないで文にする
99
+ en:
100
+ direction: Use the bullet most of the document's lists use. Change only the bullet; keep each item's words and order. Make a line typed with "・" an item starting with "- ".
101
+ pairs:
102
+ - before: '"- A pen", "- Your badge", "* Lunch"'
103
+ after: '"- A pen", "- Your badge", "- Lunch"'
104
+ - before: 'a line "・Tools" under "- Preparation"'
105
+ after: 'a nested item " - Tools" under "- Preparation"'
106
+ keep:
107
+ - each item's words and order
108
+ - the nesting depth
109
+ avoid:
110
+ - rewriting every other list to match the odd one
111
+ - joining the items into a sentence
@@ -0,0 +1,80 @@
1
+ id: nonstandard-word
2
+ layer: L2
3
+ status: stable
4
+ how_to_find: known-correction
5
+ word_list: nonstandard-word
6
+ uses: [pos]
7
+ severity: info
8
+
9
+ name:
10
+ ja: 標準的でない語
11
+ en: Nonstandard word
12
+
13
+ why:
14
+ ja: 「違かった」「すいません」や、英語の「irregardless」「comprised of」は、話し言葉ではよく聞きますが、書き言葉では誤りと読まれます。読み手は語に引っかかり、文書の手入れが足りないと受け取ります。標準的でない形と標準の形の組は言語ごとの語彙表にあり、chaff は語彙表にある形だけを指します。
15
+ en: '"Irregardless", "comprised of" and "anyways" are common in speech, but a formal reader takes them as mistakes and starts to doubt the care taken over the rest. The pairs of nonstandard and standard form are in each language''s lexicon, and chaff reports only the forms listed there.'
16
+
17
+ message:
18
+ ja: 「{matched}」は書き言葉では標準的でない形です。「{suggestion}」と書きます
19
+ en: '"{matched}" is nonstandard in formal writing; write "{suggestion}"'
20
+
21
+ how_to_fix:
22
+ ja: 標準の形に直してください(違かった → 違った、すいません → すみません)。
23
+ en: Use the standard form ("irregardless" becomes "regardless", "is comprised of" becomes "comprises").
24
+
25
+ placeholders:
26
+ matched:
27
+ ja: 書いた語
28
+ en: the word as written
29
+ suggestion:
30
+ ja: 標準の形
31
+ en: the standard form
32
+
33
+ levels: { strict: warning, normal: info, relaxed: info }
34
+
35
+ use_for: [blog, business, technical, legal, docs, academic, literature, speech]
36
+ off_for:
37
+ literature: 'A narrator and a character speak as they speak: 違くて and "anyways" in dialogue are the voice.'
38
+ speech: "A transcript keeps the speaker's words."
39
+ legal/patent: 'Patent claims use "comprised of" as a term of art, a transition that leaves the list open.'
40
+
41
+ group: wording
42
+ summary:
43
+ ja: 「違かった」「すいません」「irregardless」のように、書き言葉では標準的でない語
44
+ en: A word that formal writing treats as nonstandard, such as "irregardless" or "comprised of"
45
+ example:
46
+ ja:
47
+ before: 昨日の数字は、先週の報告と違かった。
48
+ after: 昨日の数字は、先週の報告と違った。
49
+ en:
50
+ before: The team is comprised of five engineers.
51
+ after: The team comprises five engineers.
52
+
53
+ not_flagged:
54
+ ja: 語彙表にない形は指しません。書き誤り(シュミレーション)は known-misspelling、ら抜き(見れる)は ra-nuki が扱います。
55
+ en: Forms not in the lexicon are not reported. Misspellings ("seperate") are left to known-misspelling and homophone slips ("could of") to homophone-slip.
56
+
57
+ rewrite:
58
+ depth: light
59
+ ja:
60
+ direction: 指された語を語彙表の標準の形に直してください。直すのはその語だけです。
61
+ pairs:
62
+ - before: 昨日の数字は、先週の報告と違かった。
63
+ after: 昨日の数字は、先週の報告と違った。
64
+ - before: 返信が遅くなり、すいません。
65
+ after: 返信が遅くなり、すみません。
66
+ keep:
67
+ - 文の言い回しと語順
68
+ avoid:
69
+ - 指された語の近くの言い回しまで書き換える
70
+ en:
71
+ direction: Replace the flagged word with the standard form the lexicon gives. Change only those words.
72
+ pairs:
73
+ - before: The team is comprised of five engineers.
74
+ after: The team comprises five engineers.
75
+ - before: We will ship on Friday, irregardless of the forecast.
76
+ after: We will ship on Friday, regardless of the forecast.
77
+ keep:
78
+ - the wording around the word
79
+ avoid:
80
+ - rewording the sentence while fixing the word
@@ -0,0 +1,56 @@
1
+ id: numeral-sentence-start
2
+ layer: L2
3
+ status: stable
4
+ how_to_find: numeral-opener
5
+ languages: [en]
6
+ severity: info
7
+
8
+ name:
9
+ ja: 数字で始まる英語の文
10
+ en: A sentence that opens with a numeral
11
+
12
+ why:
13
+ ja: 英語の読み手は、大文字を目印に文の始まりを見つけます。「20 people came.」のように数字で始まる文は、前の文の終わりと区切りが見えにくく、前の文の数の続きにも読めます。多くの英語の書き方の手引きは、文頭の数を綴るか、数が文の途中に来るよう書き換えるように言います。年(2026 was a good year.)は綴れないので指しません。
14
+ en: 'English readers find the start of a sentence by its capital letter. A sentence that opens with a numeral ("20 people came.") hides that boundary, and the number can read as the end of the sentence before. Most English style guides ask for the number to be spelled out at the start of a sentence, or for the sentence to be recast. A year ("2026 was a good year.") cannot be spelled out and is not reported.'
15
+
16
+ message:
17
+ ja: 文が数字「{numeral}」で始まっています
18
+ en: The sentence opens with the numeral "{numeral}"
19
+
20
+ how_to_fix:
21
+ ja: 数を綴るか(Twenty people came.)、数が文の途中に来るよう書き換えてください(The meeting drew 20 people.)。
22
+ en: Spell the number out ("Twenty people came.") or recast the sentence so the number comes later ("The meeting drew 20 people.").
23
+
24
+ levels: { strict: warning, normal: info, relaxed: info }
25
+
26
+ use_for: [business, technical, blog, legal, docs, academic, literature, speech]
27
+ off_for:
28
+ speech: "A transcript writes numbers as the transcriber heard them."
29
+
30
+ group: wording
31
+ summary:
32
+ ja: 英語で、「20 people came.」のように数字で始まる文
33
+ en: A sentence that opens with a numeral, such as "20 people came."
34
+
35
+ example:
36
+ en:
37
+ before: The meeting ran long. 20 people stayed for the vote.
38
+ after: The meeting ran long. Twenty people stayed for the vote.
39
+
40
+ not_flagged:
41
+ ja: 年(2026 was a good year.)、数字の後ろが大文字の語や記号のもの(1 Introduction、9:00 Opening remarks)、箇条書きの項目、見出しと表、言い終えていない行は指しません。前の文が句点で終わっていない数(Lane の行の次の「2 contains」)、番号に付ける略した語の後ろの数(vol. 28、H.R. 5376)も、文の頭と決められないので指しません。英語の文だけを読みます。
42
+ en: 'A year ("2026 was a good year."), a numeral followed by a capitalised word or a mark ("1 Introduction", "9:00 Opening remarks"), list items, headings and tables, and lines that do not end as a sentence are not reported. Nor is a number after text with no full stop ("Lane" on the line before "2 contains"), after a label written with a full stop ("vol. 28", "H.R. 5376"), since chaff cannot tell that a sentence starts there. Only English sentences are read.'
43
+
44
+ rewrite:
45
+ depth: light
46
+ en:
47
+ direction: Spell out the number at the start of the sentence, or move the number later in the sentence. Keep the number's value.
48
+ pairs:
49
+ - before: 20 people stayed for the vote.
50
+ after: Twenty people stayed for the vote.
51
+ - before: 3,400 orders shipped in March.
52
+ after: In March, 3,400 orders shipped.
53
+ keep:
54
+ - the number's value and its unit
55
+ avoid:
56
+ - spelling out a large or exact figure that reads worse in words
@@ -0,0 +1,65 @@
1
+ id: ordinal-suffix-mismatch
2
+ layer: L2
3
+ status: stable
4
+ how_to_find: ordinal-suffix
5
+ severity: warning
6
+
7
+ name:
8
+ ja: 数に合わない序数の字
9
+ en: An ordinal with the wrong ending
10
+
11
+ why:
12
+ ja: 英語の序数は、数の終わりで付く字が決まっています(1st、2nd、3rd、4th、11th、12th、13th、21st)。「3th」「22th」「11st」は打ち間違いか、数だけを書き換えて字を残したもので、読み手はどの数が正しいのかを疑います。数と字の対応は決まっているので、機械で言えます。
13
+ en: An English ordinal's ending is fixed by how the number ends (1st, 2nd, 3rd, 4th, 11th, 12th, 13th, 21st). "3th", "22th" or "11st" is a slip, or a number changed with its old ending left on, and the reader starts to doubt the number. The ending follows from the number, so a machine can tell.
14
+
15
+ message:
16
+ ja: 「{written}」は「{expected}」と書きます
17
+ en: '"{written}" is written "{expected}"'
18
+
19
+ how_to_fix:
20
+ ja: 数が正しいかを確かめ、その数に合う字に直してください。
21
+ en: Check that the number is right, then give it the ending that goes with it.
22
+
23
+ levels: { normal: warning, relaxed: info }
24
+
25
+ use_for: [business, technical, blog, legal, docs, academic, literature, speech]
26
+
27
+ group: wording
28
+ summary:
29
+ ja: 「3th」「22th」「11st」のように、英語の序数の字が数と合わない所
30
+ en: An English ordinal whose ending does not go with its number, such as "3th", "22th" or "11st"
31
+ example:
32
+ ja:
33
+ before: 今年で 3th イベントになります。
34
+ after: 今年で 3rd イベントになります。
35
+ en:
36
+ before: This is our 22th annual meeting.
37
+ after: This is our 22nd annual meeting.
38
+
39
+ not_flagged:
40
+ ja: 語や番号の一部(v1th、0x2nd、1-2th)と、法律の引用の「2d」「3d」は読みません。コードの中は読みません。
41
+ en: Parts of a word or an identifier (v1th, 0x2nd, 1-2th) and the "2d" and "3d" of legal citations are not read. Code is not read.
42
+
43
+ rewrite:
44
+ ja:
45
+ direction: 数が正しいかを確かめ、その数に合う序数の字に直してください。日本語の文なら「第3回」のように書き換えてもかまいません。
46
+ pairs:
47
+ - before: 今年で 3th イベントになります。
48
+ after: 今年で 3rd イベントになります。
49
+ - before: 11st の候補を選びました。
50
+ after: 11th の候補を選びました。
51
+ keep:
52
+ - 数そのもの(数が違っていれば、まず数を確かめる)
53
+ avoid:
54
+ - 数を確かめずに字だけを直す
55
+ en:
56
+ direction: Check that the number is right, then give it the ending that goes with it. Where the number is small, spelling the ordinal out also works.
57
+ pairs:
58
+ - before: This is our 22th annual meeting.
59
+ after: This is our 22nd annual meeting.
60
+ - before: She finished 11st out of forty.
61
+ after: She finished 11th out of forty.
62
+ keep:
63
+ - the number itself (if it is wrong, fix the number first)
64
+ avoid:
65
+ - changing the ending without checking the number
@@ -0,0 +1,73 @@
1
+ id: range-notation-consistency
2
+ layer: L2
3
+ status: stable
4
+ how_to_find: range-notation
5
+ severity: info
6
+
7
+ name:
8
+ ja: 範囲の記号が混ざっている
9
+ en: Ranges written with two marks
10
+
11
+ why:
12
+ ja: 数の範囲を「10〜20」と「10-20」、「10–20」と「10-20」のように二通りの記号で書くと、読み手は記号の違いに意味があるのか(ハイフンは引き算や番号か)と迷います。資料を寄せ集めたときや、入力のしかたが人によって違うときに起きます。どの記号が正しいかは決めず、文書の中で少ないほうを指します。
13
+ en: When one document writes ranges with two marks ("10–20" and "10-20", "10〜20" and "10-20"), the reader wonders whether the difference means something, a hyphen being also a minus sign or part of a number. It happens when texts are pasted together or typed by different people. chaff does not decide which mark is right; it points at the one the document uses less.
14
+
15
+ message:
16
+ ja: 範囲を「{written}」と書いています(この文書はふつう「{usual}」のように書きます。{of} 箇所のうち {count} 箇所が違う)
17
+ en: 'The range "{written}" here, where the document usually writes ranges like "{usual}" ({count} of {of})'
18
+
19
+ how_to_fix:
20
+ ja: 文書の多いほうの記号に合わせてください。チームで決めているなら、STYLE.md に書いておくと迷いません。
21
+ en: Match the mark the rest of the document uses. If the team has decided, write it in the style guide.
22
+
23
+ # 少ないほうが、範囲の何パーセントまでなら「混ざっている」と見るか。これを超えたら、文書が使い分けている。
24
+ levels: { strict: 49, normal: 34, relaxed: 20 }
25
+
26
+ use_for: [business, technical, blog, legal, docs, academic, literature, speech]
27
+
28
+ group: consistency
29
+ summary:
30
+ ja: 「10〜20」と「10-20」のように、一つの文書で数の範囲を二通りの記号で書いている所
31
+ en: Ranges written with two marks in one document, such as "10–20" and "10-20"
32
+ example:
33
+ ja:
34
+ before: |
35
+ 定員は 10〜20 名、所要は 30〜40 分、費用は 500〜800 円です。対象は 6-12 歳です。
36
+ after: |
37
+ 定員は 10〜20 名、所要は 30〜40 分、費用は 500〜800 円です。対象は 6〜12 歳です。
38
+ en:
39
+ before: |
40
+ Groups of 10–20 meet for 30–40 minutes, at 5–8 dollars each. Children aged 6-12 are welcome.
41
+ after: |
42
+ Groups of 10–20 meet for 30–40 minutes, at 5–8 dollars each. Children aged 6–12 are welcome.
43
+
44
+ not_flagged:
45
+ ja: 前後にさらに数の続く並び(日付の 2026-10-02、電話番号、時刻の 10:00〜12:00、版)と、終わりが始まりより小さいもの(郵便番号の 100-0001、試合の 3-2)は範囲と読みません。「10から20」のような言葉の範囲は比べません。少ないほうが範囲の三分の一を超える文書と、二つの記号が同じ数の文書は、使い分けと読んで言いません。コードの中は読みません。
46
+ en: Runs with more numbers around them (the date 2026-10-02, phone numbers, times such as 10:00–12:00, versions) and pairs whose end is smaller than the start (a score of 3-2, a postcode such as 100-0001) are not read as ranges. Words ("10 to 20") are not compared. When the less common mark is over a third of the ranges, or the two are equally common, the document is read as using both on purpose. Code is not read.
47
+ level_meaning:
48
+ ja: 少ないほうの記号が、範囲の {limit}% 以下のとき指摘
49
+ en: reported when the less common mark is {limit}% of the ranges or less
50
+
51
+ rewrite:
52
+ ja:
53
+ direction: 範囲の記号を、文書で多いほうにそろえてください。数と単位はそのまま残します。
54
+ pairs:
55
+ - before: 定員は 10〜20 名、対象は 6-12 歳です。
56
+ after: 定員は 10〜20 名、対象は 6〜12 歳です。
57
+ - before: 所要は 30~40 分、費用は 500〜800 円です。
58
+ after: 所要は 30〜40 分、費用は 500〜800 円です。
59
+ keep:
60
+ - 範囲の数と単位
61
+ avoid:
62
+ - 日付や電話番号のハイフンまで範囲の記号に変える
63
+ en:
64
+ direction: Write every range with the mark the document mostly uses. Keep the numbers and units as they are.
65
+ pairs:
66
+ - before: Groups of 10–20 meet. Children aged 6-12 are welcome.
67
+ after: Groups of 10–20 meet. Children aged 6–12 are welcome.
68
+ - before: Sessions last 30–40 minutes and cost 5~8 dollars.
69
+ after: Sessions last 30–40 minutes and cost 5–8 dollars.
70
+ keep:
71
+ - the numbers and units of each range
72
+ avoid:
73
+ - changing the hyphens in dates, phone numbers or part numbers
@@ -0,0 +1,65 @@
1
+ id: share-over-hundred
2
+ layer: L3
3
+ status: stable
4
+ how_to_find: share-over-hundred
5
+ severity: error
6
+
7
+ name:
8
+ ja: 100% を超える一部の割合
9
+ en: A share above 100%
10
+
11
+ why:
12
+ ja: 「回答者の120%」「150% of respondents」のように、集まりの一部の割合が 100% を超えることはありません。小数点の打ち間違い(12.0%)、別の数(前年比)との取り違え、桁の書き損じのどれかで、読み手は数そのものを信じなくなります。一部は全体を超えないので、機械で言えます。
13
+ en: A share of a group, such as "120% of respondents", cannot pass 100%. It is a misplaced decimal point (12.0%), a mix-up with another figure (growth on last year), or a mistyped digit, and the reader stops trusting the number. A part never exceeds the whole, so a machine can tell.
14
+
15
+ message:
16
+ ja: 「{written}」は{whole}の一部の割合なので、100% を超えません
17
+ en: '"{written}" is a share of {whole}, so it cannot pass 100%'
18
+
19
+ how_to_fix:
20
+ ja: 元の数を確かめて直してください。前年比や伸びのつもりなら、そう書きます(前年の120%、20%増)。
21
+ en: Check the source figure and correct it. If growth or a comparison was meant, say so ("120% of last year's level", "up 20%").
22
+
23
+ levels: { normal: error, relaxed: warning }
24
+
25
+ use_for: [business, technical, blog, legal, docs, academic, literature, speech]
26
+
27
+ group: facts
28
+ summary:
29
+ ja: 「回答者の120%」のように、集まりの一部の割合なのに 100% を超える百分率
30
+ en: A percentage that is a share of a group but passes 100%, such as "120% of respondents"
31
+ example:
32
+ ja:
33
+ before: 調査では、回答者の120%が満足と答えました。
34
+ after: 調査では、回答者の12.0%が満足と答えました。
35
+ en:
36
+ before: In the survey, 120% of respondents said they were satisfied.
37
+ after: In the survey, 12.0% of respondents said they were satisfied.
38
+
39
+ not_flagged:
40
+ ja: 語彙表 share-whole にある集まり(回答者、社員、利用者など)の一部と書いた百分率だけを見ます。伸びや比べる元(前年の120%、予算の110%)、集まりを書いていない百分率(120%の達成率)は言いません。コードの中は読みません。
41
+ en: Only percentages written as a share of a group in the share-whole word list (respondents, employees, users and so on) are read. Growth and comparisons ("120% of last year", "110% of the budget") and percentages with no group ("120% attainment") are not reported. Code is not read.
42
+
43
+ rewrite:
44
+ ja:
45
+ direction: 元の数を確かめて、一部の割合なら 100% 以下に直してください。伸びや前年との比べなら、何と比べたかを書きます。
46
+ pairs:
47
+ - before: 回答者の120%が満足と答えました。
48
+ after: 回答者の12.0%が満足と答えました。
49
+ - before: 社員の150%が研修を受けました。
50
+ after: 研修を受けた社員は前年の1.5倍になりました。
51
+ keep:
52
+ - 元の調べで得た数
53
+ avoid:
54
+ - 元の数を確かめずに、100% に丸める
55
+ en:
56
+ direction: Check the source figure. A share of a group stays at or under 100%; if growth or a comparison was meant, say what it is compared with.
57
+ pairs:
58
+ - before: 120% of respondents said they were satisfied.
59
+ after: 12.0% of respondents said they were satisfied.
60
+ - before: 150% of employees took the training.
61
+ after: One and a half times as many employees took the training as last year.
62
+ keep:
63
+ - the figure the source gives
64
+ avoid:
65
+ - rounding the figure down to 100% without checking the source
@@ -0,0 +1,85 @@
1
+ id: step-reference-missing
2
+ layer: L3
3
+ status: stable
4
+ how_to_find: step-reference
5
+ severity: warning
6
+
7
+ name:
8
+ ja: 無い手順を指す参照
9
+ en: A reference to a step that does not exist
10
+
11
+ why:
12
+ ja: 「手順5を参照」と書いたのに手順が4つしか無ければ、読み手は手順5を探して手を止めます。手順を減らしたり並べ替えたりしたあとに、本文の参照だけが古い番号のまま残ると起きます。手順の番号と参照の番号を突き合わせれば、機械で言えます。
13
+ en: When the text says "see step 5" and there are only four steps, the reader stops to look for step 5. It happens when steps are removed or reordered and a reference keeps the old number. Matching the references against the steps' numbers is mechanical.
14
+
15
+ message:
16
+ ja: 「{label}」を指していますが、手順は {last} までです
17
+ en: '"{label}" is referred to, but the steps end at {last}'
18
+
19
+ how_to_fix:
20
+ ja: 指したい手順の番号を確かめて、参照を直してください。手順を消したのなら、参照の文も直します。
21
+ en: Check which step is meant and correct the reference. If the step was removed, rewrite the sentence that refers to it.
22
+
23
+ levels: { normal: warning, relaxed: info }
24
+
25
+ use_for: [business, technical, blog, legal, docs, academic, literature, speech]
26
+
27
+ group: structure
28
+ summary:
29
+ ja: 「手順5を参照」のように、文書の手順の最後の番号を超える手順を指す参照
30
+ en: A reference such as "see step 5" past the last step the document has
31
+ example:
32
+ ja:
33
+ before: |
34
+ 1. アプリを開きます。
35
+ 2. 設定を選びます。
36
+ 3. 保存します。
37
+
38
+ うまくいかないときは、手順4からやり直してください。
39
+ after: |
40
+ 1. アプリを開きます。
41
+ 2. 設定を選びます。
42
+ 3. 保存します。
43
+
44
+ うまくいかないときは、手順2からやり直してください。
45
+ en:
46
+ before: |
47
+ 1. Open the app.
48
+ 2. Choose Settings.
49
+ 3. Save.
50
+
51
+ If it fails, start again from step 4.
52
+ after: |
53
+ 1. Open the app.
54
+ 2. Choose Settings.
55
+ 3. Save.
56
+
57
+ If it fails, start again from step 2.
58
+
59
+ not_flagged:
60
+ ja: 手順は、手順の語(手順、ステップ、Step)と番号で始まる見出しと、番号付きの箇条書きの項目です。手順が一つも無い文書の参照は、ほかの文書の手順かもしれないので言いません。番号付きの箇条書きがいくつかあれば、いちばん大きい番号を超える参照だけを言います。コードの中は読みません。
61
+ en: Steps are headings that start with a step word and a number (Step 3) and the items of numbered lists. In a document with no steps at all, a reference may be to another document's steps and is not reported. With several numbered lists, only a reference past the largest number is reported. Code is not read.
62
+
63
+ rewrite:
64
+ ja:
65
+ direction: 指したい手順を確かめ、参照の番号を文書の手順の番号に合わせてください。手順を消したのなら、参照する文を直すか消します。
66
+ pairs:
67
+ - before: うまくいかないときは、手順4からやり直してください。(手順は3まで)
68
+ after: うまくいかないときは、手順2からやり直してください。
69
+ - before: 詳しくはステップ6を参照してください。(ステップは5まで)
70
+ after: 詳しくはステップ5を参照してください。
71
+ keep:
72
+ - 手順の中身と順番
73
+ avoid:
74
+ - どの手順を指すか確かめずに、最後の番号に直す
75
+ en:
76
+ direction: Find out which step is meant and correct the reference's number. If the step was removed, rewrite or remove the sentence that refers to it.
77
+ pairs:
78
+ - before: If it fails, start again from step 4. (three steps)
79
+ after: If it fails, start again from step 2.
80
+ - before: See Step 6 for the details. (five steps)
81
+ after: See Step 5 for the details.
82
+ keep:
83
+ - the steps and their order
84
+ avoid:
85
+ - changing the reference to the last step without checking which was meant
@@ -0,0 +1,90 @@
1
+ id: table-row-overflow
2
+ layer: L1
3
+ status: stable
4
+ how_to_find: table-row-overflow
5
+ requires: [markdown]
6
+ severity: warning
7
+
8
+ name:
9
+ ja: 表の行のセルが見出しの行より多い
10
+ en: Table row with more cells than the header
11
+
12
+ why:
13
+ ja: Markdown の表(GFM)は、見出しの行にある列の数だけセルを表示し、それより多いセルは黙って捨てます。値の中に「|」を書いた、列を足したのに見出しを直していない、といったときに起き、書いたはずの値が読み手には見えません。
14
+ en: A Markdown table (GFM) shows only as many cells as its header row has, and silently drops the rest. It happens when a value holds a "|", or when a column was added to the rows but not to the header, and the reader never sees the value that was written.
15
+
16
+ message:
17
+ ja: この行はセルが {cells} 個あり、見出しの行の {columns} 列を超えた分は表示されません
18
+ en: "This row has {cells} cells; past the header's {columns} columns they are not shown"
19
+
20
+ how_to_fix:
21
+ ja: 見出しの行に列を足すか、行のセルを減らしてください。値の中の「|」は「\|」と書きます。
22
+ en: Add the column to the header row, or remove the extra cell. Write a "|" inside a value as "\|".
23
+
24
+ placeholders:
25
+ cells:
26
+ ja: 〇
27
+ en: N
28
+ columns:
29
+ ja: 〇
30
+ en: N
31
+
32
+ levels: { strict: error, normal: warning, relaxed: info }
33
+
34
+ use_for: [business, technical, blog, legal, docs, academic, literature, speech]
35
+
36
+ group: structure
37
+ summary:
38
+ ja: 見出しの行より多いセルを持つ表の行(多い分は表示されない)
39
+ en: A table row with more cells than the header row (the extra ones are not shown)
40
+ example:
41
+ ja:
42
+ before: |
43
+ | 項目 | 金額 |
44
+ | --- | --- |
45
+ | 会場 | 5万円 |
46
+ | 飲食 | 3万円 | 予備費込み |
47
+ after: |
48
+ | 項目 | 金額 | 備考 |
49
+ | --- | --- | --- |
50
+ | 会場 | 5万円 | |
51
+ | 飲食 | 3万円 | 予備費込み |
52
+ en:
53
+ before: |
54
+ | Item | Cost |
55
+ | --- | --- |
56
+ | Venue | $500 |
57
+ | Food | $300 | includes reserve |
58
+ after: |
59
+ | Item | Cost | Note |
60
+ | --- | --- | --- |
61
+ | Venue | $500 | |
62
+ | Food | $300 | includes reserve |
63
+
64
+ not_flagged:
65
+ ja: 見出しの行よりセルが少ない行(空のセルとして表示されます)、「\|」と書いた値、コードと引用の中の表は指しません。
66
+ en: A row with fewer cells than the header (shown as empty cells), a value written with "\|", and tables in code or quotations are not reported.
67
+ rewrite:
68
+ depth: light
69
+ ja:
70
+ direction: 見出しの行と行のセルの数を揃えてください。多いセルが値なら見出しに列を足し、値の中の「|」なら「\|」にします。値は消しません。
71
+ pairs:
72
+ - before: 「| 飲食 | 3万円 | 予備費込み |」(見出しは 2 列)
73
+ after: 見出しに「備考」の列を足し、「| 飲食 | 3万円 | 予備費込み |」
74
+ - before: 「| 区切り | a | b |」(見出しは 2 列、値が「a | b」)
75
+ after: 「| 区切り | a \| b |」
76
+ keep:
77
+ - 行に書いた値
78
+ avoid:
79
+ - はみ出したセルの値を消す
80
+ en:
81
+ direction: Make the row and the header hold the same number of cells. If the extra cell is a value, add the column to the header; if it is a "|" inside a value, write it as "\|". Do not drop the value.
82
+ pairs:
83
+ - before: '"| Food | $300 | includes reserve |" (the header has 2 columns)'
84
+ after: 'a "Note" column added to the header, and "| Food | $300 | includes reserve |"'
85
+ - before: '"| Separator | a | b |" (the header has 2 columns; the value is "a | b")'
86
+ after: '"| Separator | a \| b |"'
87
+ keep:
88
+ - the values written in the row
89
+ avoid:
90
+ - deleting the value that spilled over