chaffjs 0.50.0 → 0.51.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 (890) hide show
  1. package/README.ja.md +30 -3
  2. package/README.md +30 -2
  3. package/dist/allow.d.ts +49 -0
  4. package/dist/allow.d.ts.map +1 -0
  5. package/dist/allow.js +111 -0
  6. package/dist/allow.js.map +1 -0
  7. package/dist/check-source.d.ts +13 -3
  8. package/dist/check-source.d.ts.map +1 -1
  9. package/dist/check-source.js +23 -6
  10. package/dist/check-source.js.map +1 -1
  11. package/dist/cli-text.d.ts +7 -1
  12. package/dist/cli-text.d.ts.map +1 -1
  13. package/dist/cli-text.js +8 -2
  14. package/dist/cli-text.js.map +1 -1
  15. package/dist/cli.d.ts.map +1 -1
  16. package/dist/cli.js +12 -11
  17. package/dist/cli.js.map +1 -1
  18. package/dist/commands/eval.js +1 -1
  19. package/dist/commands/eval.js.map +1 -1
  20. package/dist/commands/suppressions.d.ts +4 -1
  21. package/dist/commands/suppressions.d.ts.map +1 -1
  22. package/dist/commands/suppressions.js +2 -2
  23. package/dist/commands/suppressions.js.map +1 -1
  24. package/dist/commands/test.js +1 -1
  25. package/dist/commands/test.js.map +1 -1
  26. package/dist/compound-head.d.ts +5 -2
  27. package/dist/compound-head.d.ts.map +1 -1
  28. package/dist/compound-head.js +17 -8
  29. package/dist/compound-head.js.map +1 -1
  30. package/dist/config/allow-problems.d.ts +8 -0
  31. package/dist/config/allow-problems.d.ts.map +1 -0
  32. package/dist/config/allow-problems.js +61 -0
  33. package/dist/config/allow-problems.js.map +1 -0
  34. package/dist/config/by-path-problems.d.ts +3 -0
  35. package/dist/config/by-path-problems.d.ts.map +1 -1
  36. package/dist/config/by-path-problems.js +21 -2
  37. package/dist/config/by-path-problems.js.map +1 -1
  38. package/dist/config/by-path-rules.d.ts +34 -0
  39. package/dist/config/by-path-rules.d.ts.map +1 -0
  40. package/dist/config/by-path-rules.js +53 -0
  41. package/dist/config/by-path-rules.js.map +1 -0
  42. package/dist/config/by-path.d.ts +15 -0
  43. package/dist/config/by-path.d.ts.map +1 -1
  44. package/dist/config/by-path.js.map +1 -1
  45. package/dist/config/consistent-problems.d.ts +5 -0
  46. package/dist/config/consistent-problems.d.ts.map +1 -0
  47. package/dist/config/consistent-problems.js +24 -0
  48. package/dist/config/consistent-problems.js.map +1 -0
  49. package/dist/config/load.d.ts +23 -1
  50. package/dist/config/load.d.ts.map +1 -1
  51. package/dist/config/load.js +63 -10
  52. package/dist/config/load.js.map +1 -1
  53. package/dist/config/option-problems.d.ts +6 -4
  54. package/dist/config/option-problems.d.ts.map +1 -1
  55. package/dist/config/option-problems.js +5 -2
  56. package/dist/config/option-problems.js.map +1 -1
  57. package/dist/config/prefer-problems.d.ts +5 -0
  58. package/dist/config/prefer-problems.d.ts.map +1 -0
  59. package/dist/config/prefer-problems.js +15 -0
  60. package/dist/config/prefer-problems.js.map +1 -0
  61. package/dist/config/prefer.d.ts +21 -0
  62. package/dist/config/prefer.d.ts.map +1 -0
  63. package/dist/config/prefer.js +35 -0
  64. package/dist/config/prefer.js.map +1 -0
  65. package/dist/config/term-problems.d.ts +5 -0
  66. package/dist/config/term-problems.d.ts.map +1 -0
  67. package/dist/config/term-problems.js +25 -0
  68. package/dist/config/term-problems.js.map +1 -0
  69. package/dist/config/warnings.d.ts +1 -1
  70. package/dist/config/warnings.d.ts.map +1 -1
  71. package/dist/config/warnings.js +9 -2
  72. package/dist/config/warnings.js.map +1 -1
  73. package/dist/cross-variants.d.ts +1 -1
  74. package/dist/cross-variants.d.ts.map +1 -1
  75. package/dist/cross-variants.js +4 -8
  76. package/dist/cross-variants.js.map +1 -1
  77. package/dist/cross-votes.d.ts +13 -0
  78. package/dist/cross-votes.d.ts.map +1 -1
  79. package/dist/cross-votes.js +25 -2
  80. package/dist/cross-votes.js.map +1 -1
  81. package/dist/custom/parse.d.ts +9 -0
  82. package/dist/custom/parse.d.ts.map +1 -1
  83. package/dist/custom/parse.js +11 -2
  84. package/dist/custom/parse.js.map +1 -1
  85. package/dist/custom/problems.d.ts.map +1 -1
  86. package/dist/custom/problems.js +9 -3
  87. package/dist/custom/problems.js.map +1 -1
  88. package/dist/custom/scope-field.d.ts +7 -0
  89. package/dist/custom/scope-field.d.ts.map +1 -0
  90. package/dist/custom/scope-field.js +14 -0
  91. package/dist/custom/scope-field.js.map +1 -0
  92. package/dist/date-format.d.ts +5 -3
  93. package/dist/date-format.d.ts.map +1 -1
  94. package/dist/date-format.js +30 -5
  95. package/dist/date-format.js.map +1 -1
  96. package/dist/derived/elapsed.d.ts +4 -1
  97. package/dist/derived/elapsed.d.ts.map +1 -1
  98. package/dist/derived/elapsed.js +11 -1
  99. package/dist/derived/elapsed.js.map +1 -1
  100. package/dist/detectors/acronym-context.d.ts +3 -1
  101. package/dist/detectors/acronym-context.d.ts.map +1 -1
  102. package/dist/detectors/acronym-context.js +7 -1
  103. package/dist/detectors/acronym-context.js.map +1 -1
  104. package/dist/detectors/acronym-gloss.d.ts +20 -7
  105. package/dist/detectors/acronym-gloss.d.ts.map +1 -1
  106. package/dist/detectors/acronym-gloss.js +50 -13
  107. package/dist/detectors/acronym-gloss.js.map +1 -1
  108. package/dist/detectors/bare-comparative.d.ts +4 -0
  109. package/dist/detectors/bare-comparative.d.ts.map +1 -1
  110. package/dist/detectors/bare-comparative.js +27 -3
  111. package/dist/detectors/bare-comparative.js.map +1 -1
  112. package/dist/detectors/blank-structure.d.ts +5 -1
  113. package/dist/detectors/blank-structure.d.ts.map +1 -1
  114. package/dist/detectors/blank-structure.js +13 -7
  115. package/dist/detectors/blank-structure.js.map +1 -1
  116. package/dist/detectors/bold-label.d.ts.map +1 -1
  117. package/dist/detectors/bold-label.js +12 -6
  118. package/dist/detectors/bold-label.js.map +1 -1
  119. package/dist/detectors/bracket-title-date.d.ts +6 -0
  120. package/dist/detectors/bracket-title-date.d.ts.map +1 -0
  121. package/dist/detectors/bracket-title-date.js +29 -0
  122. package/dist/detectors/bracket-title-date.js.map +1 -0
  123. package/dist/detectors/broken-link.d.ts.map +1 -1
  124. package/dist/detectors/broken-link.js +12 -1
  125. package/dist/detectors/broken-link.js.map +1 -1
  126. package/dist/detectors/capitalised-term.d.ts.map +1 -1
  127. package/dist/detectors/capitalised-term.js +24 -11
  128. package/dist/detectors/capitalised-term.js.map +1 -1
  129. package/dist/detectors/change-rate.d.ts.map +1 -1
  130. package/dist/detectors/change-rate.js +27 -4
  131. package/dist/detectors/change-rate.js.map +1 -1
  132. package/dist/detectors/char-shape.d.ts.map +1 -1
  133. package/dist/detectors/char-shape.js +12 -17
  134. package/dist/detectors/char-shape.js.map +1 -1
  135. package/dist/detectors/clause-shape.d.ts +4 -2
  136. package/dist/detectors/clause-shape.d.ts.map +1 -1
  137. package/dist/detectors/clause-shape.js +8 -4
  138. package/dist/detectors/clause-shape.js.map +1 -1
  139. package/dist/detectors/contraction-mix.d.ts.map +1 -1
  140. package/dist/detectors/contraction-mix.js +3 -2
  141. package/dist/detectors/contraction-mix.js.map +1 -1
  142. package/dist/detectors/contraction-set-apart.d.ts +7 -1
  143. package/dist/detectors/contraction-set-apart.d.ts.map +1 -1
  144. package/dist/detectors/contraction-set-apart.js +14 -1
  145. package/dist/detectors/contraction-set-apart.js.map +1 -1
  146. package/dist/detectors/coordinate-adjective.d.ts +5 -3
  147. package/dist/detectors/coordinate-adjective.d.ts.map +1 -1
  148. package/dist/detectors/coordinate-adjective.js +49 -1
  149. package/dist/detectors/coordinate-adjective.js.map +1 -1
  150. package/dist/detectors/count-per-section.d.ts.map +1 -1
  151. package/dist/detectors/count-per-section.js +29 -23
  152. package/dist/detectors/count-per-section.js.map +1 -1
  153. package/dist/detectors/counter-edge.d.ts +11 -0
  154. package/dist/detectors/counter-edge.d.ts.map +1 -1
  155. package/dist/detectors/counter-edge.js +17 -0
  156. package/dist/detectors/counter-edge.js.map +1 -1
  157. package/dist/detectors/cross-variant.d.ts.map +1 -1
  158. package/dist/detectors/cross-variant.js +14 -2
  159. package/dist/detectors/cross-variant.js.map +1 -1
  160. package/dist/detectors/custom.d.ts.map +1 -1
  161. package/dist/detectors/custom.js +6 -4
  162. package/dist/detectors/custom.js.map +1 -1
  163. package/dist/detectors/date-format.js +1 -1
  164. package/dist/detectors/date-format.js.map +1 -1
  165. package/dist/detectors/date-repeated-day.d.ts +11 -0
  166. package/dist/detectors/date-repeated-day.d.ts.map +1 -0
  167. package/dist/detectors/date-repeated-day.js +15 -0
  168. package/dist/detectors/date-repeated-day.js.map +1 -0
  169. package/dist/detectors/date-year.d.ts.map +1 -1
  170. package/dist/detectors/date-year.js +8 -1
  171. package/dist/detectors/date-year.js.map +1 -1
  172. package/dist/detectors/defined-term-form.d.ts.map +1 -1
  173. package/dist/detectors/defined-term-form.js +6 -3
  174. package/dist/detectors/defined-term-form.js.map +1 -1
  175. package/dist/detectors/definition-use.d.ts.map +1 -1
  176. package/dist/detectors/definition-use.js +7 -1
  177. package/dist/detectors/definition-use.js.map +1 -1
  178. package/dist/detectors/derived-numbers.d.ts.map +1 -1
  179. package/dist/detectors/derived-numbers.js +1 -0
  180. package/dist/detectors/derived-numbers.js.map +1 -1
  181. package/dist/detectors/document-shape.d.ts +1 -1
  182. package/dist/detectors/document-shape.d.ts.map +1 -1
  183. package/dist/detectors/document-shape.js +4 -1
  184. package/dist/detectors/document-shape.js.map +1 -1
  185. package/dist/detectors/email-letter.d.ts +3 -1
  186. package/dist/detectors/email-letter.d.ts.map +1 -1
  187. package/dist/detectors/email-letter.js +4 -2
  188. package/dist/detectors/email-letter.js.map +1 -1
  189. package/dist/detectors/empty-section.d.ts +1 -0
  190. package/dist/detectors/empty-section.d.ts.map +1 -1
  191. package/dist/detectors/empty-section.js +10 -1
  192. package/dist/detectors/empty-section.js.map +1 -1
  193. package/dist/detectors/en-shape.d.ts.map +1 -1
  194. package/dist/detectors/en-shape.js +15 -1
  195. package/dist/detectors/en-shape.js.map +1 -1
  196. package/dist/detectors/enumeration-marker.d.ts +7 -0
  197. package/dist/detectors/enumeration-marker.d.ts.map +1 -0
  198. package/dist/detectors/enumeration-marker.js +8 -0
  199. package/dist/detectors/enumeration-marker.js.map +1 -0
  200. package/dist/detectors/event-title-item.d.ts +8 -0
  201. package/dist/detectors/event-title-item.d.ts.map +1 -0
  202. package/dist/detectors/event-title-item.js +45 -0
  203. package/dist/detectors/event-title-item.js.map +1 -0
  204. package/dist/detectors/example-baseline.d.ts +5 -0
  205. package/dist/detectors/example-baseline.d.ts.map +1 -1
  206. package/dist/detectors/example-baseline.js +15 -1
  207. package/dist/detectors/example-baseline.js.map +1 -1
  208. package/dist/detectors/filler-word.d.ts +11 -0
  209. package/dist/detectors/filler-word.d.ts.map +1 -0
  210. package/dist/detectors/filler-word.js +73 -0
  211. package/dist/detectors/filler-word.js.map +1 -0
  212. package/dist/detectors/fullwidth-alnum.d.ts.map +1 -1
  213. package/dist/detectors/fullwidth-alnum.js +19 -0
  214. package/dist/detectors/fullwidth-alnum.js.map +1 -1
  215. package/dist/detectors/heading-case.d.ts.map +1 -1
  216. package/dist/detectors/heading-case.js +6 -1
  217. package/dist/detectors/heading-case.js.map +1 -1
  218. package/dist/detectors/heading-marker-no-space.d.ts +3 -0
  219. package/dist/detectors/heading-marker-no-space.d.ts.map +1 -0
  220. package/dist/detectors/heading-marker-no-space.js +49 -0
  221. package/dist/detectors/heading-marker-no-space.js.map +1 -0
  222. package/dist/detectors/hyphen-name-suffix.d.ts.map +1 -1
  223. package/dist/detectors/hyphen-name-suffix.js +3 -2
  224. package/dist/detectors/hyphen-name-suffix.js.map +1 -1
  225. package/dist/detectors/inline-item-label.d.ts +6 -0
  226. package/dist/detectors/inline-item-label.d.ts.map +1 -0
  227. package/dist/detectors/inline-item-label.js +68 -0
  228. package/dist/detectors/inline-item-label.js.map +1 -0
  229. package/dist/detectors/kanji-name-edge.d.ts +5 -0
  230. package/dist/detectors/kanji-name-edge.d.ts.map +1 -1
  231. package/dist/detectors/kanji-name-edge.js +9 -0
  232. package/dist/detectors/kanji-name-edge.js.map +1 -1
  233. package/dist/detectors/known-correction.d.ts.map +1 -1
  234. package/dist/detectors/known-correction.js +13 -1
  235. package/dist/detectors/known-correction.js.map +1 -1
  236. package/dist/detectors/link-definition.d.ts +3 -0
  237. package/dist/detectors/link-definition.d.ts.map +1 -0
  238. package/dist/detectors/link-definition.js +78 -0
  239. package/dist/detectors/link-definition.js.map +1 -0
  240. package/dist/detectors/list-item-asides.d.ts +7 -0
  241. package/dist/detectors/list-item-asides.d.ts.map +1 -0
  242. package/dist/detectors/list-item-asides.js +25 -0
  243. package/dist/detectors/list-item-asides.js.map +1 -0
  244. package/dist/detectors/list-item.d.ts +2 -0
  245. package/dist/detectors/list-item.d.ts.map +1 -1
  246. package/dist/detectors/list-item.js +6 -0
  247. package/dist/detectors/list-item.js.map +1 -1
  248. package/dist/detectors/list-items.d.ts.map +1 -1
  249. package/dist/detectors/list-items.js +12 -3
  250. package/dist/detectors/list-items.js.map +1 -1
  251. package/dist/detectors/list-opening-conjunction.d.ts +7 -0
  252. package/dist/detectors/list-opening-conjunction.d.ts.map +1 -0
  253. package/dist/detectors/list-opening-conjunction.js +22 -0
  254. package/dist/detectors/list-opening-conjunction.js.map +1 -0
  255. package/dist/detectors/list-parallel.d.ts.map +1 -1
  256. package/dist/detectors/list-parallel.js +11 -14
  257. package/dist/detectors/list-parallel.js.map +1 -1
  258. package/dist/detectors/list-run.d.ts.map +1 -1
  259. package/dist/detectors/list-run.js +15 -3
  260. package/dist/detectors/list-run.js.map +1 -1
  261. package/dist/detectors/list-verb-series.d.ts +6 -0
  262. package/dist/detectors/list-verb-series.d.ts.map +1 -0
  263. package/dist/detectors/list-verb-series.js +20 -0
  264. package/dist/detectors/list-verb-series.js.map +1 -0
  265. package/dist/detectors/mark-shape.d.ts +5 -2
  266. package/dist/detectors/mark-shape.d.ts.map +1 -1
  267. package/dist/detectors/mark-shape.js +12 -15
  268. package/dist/detectors/mark-shape.js.map +1 -1
  269. package/dist/detectors/markdown-slip.d.ts +5 -0
  270. package/dist/detectors/markdown-slip.d.ts.map +1 -1
  271. package/dist/detectors/markdown-slip.js +23 -0
  272. package/dist/detectors/markdown-slip.js.map +1 -1
  273. package/dist/detectors/marked-word.d.ts +10 -0
  274. package/dist/detectors/marked-word.d.ts.map +1 -0
  275. package/dist/detectors/marked-word.js +30 -0
  276. package/dist/detectors/marked-word.js.map +1 -0
  277. package/dist/detectors/middle-dot.d.ts +1 -1
  278. package/dist/detectors/middle-dot.d.ts.map +1 -1
  279. package/dist/detectors/middle-dot.js +21 -2
  280. package/dist/detectors/middle-dot.js.map +1 -1
  281. package/dist/detectors/missing-final-period.d.ts.map +1 -1
  282. package/dist/detectors/missing-final-period.js +8 -1
  283. package/dist/detectors/missing-final-period.js.map +1 -1
  284. package/dist/detectors/name-variant-two-things.d.ts +2 -1
  285. package/dist/detectors/name-variant-two-things.d.ts.map +1 -1
  286. package/dist/detectors/name-variant-two-things.js +30 -2
  287. package/dist/detectors/name-variant-two-things.js.map +1 -1
  288. package/dist/detectors/net-amount-mismatch.d.ts.map +1 -1
  289. package/dist/detectors/net-amount-mismatch.js +26 -4
  290. package/dist/detectors/net-amount-mismatch.js.map +1 -1
  291. package/dist/detectors/nominalization.d.ts.map +1 -1
  292. package/dist/detectors/nominalization.js +6 -1
  293. package/dist/detectors/nominalization.js.map +1 -1
  294. package/dist/detectors/number-style.d.ts +2 -0
  295. package/dist/detectors/number-style.d.ts.map +1 -1
  296. package/dist/detectors/number-style.js +5 -0
  297. package/dist/detectors/number-style.js.map +1 -1
  298. package/dist/detectors/ordinary-phrase.d.ts +5 -0
  299. package/dist/detectors/ordinary-phrase.d.ts.map +1 -1
  300. package/dist/detectors/ordinary-phrase.js +12 -0
  301. package/dist/detectors/ordinary-phrase.js.map +1 -1
  302. package/dist/detectors/organisation-run.d.ts +2 -0
  303. package/dist/detectors/organisation-run.d.ts.map +1 -1
  304. package/dist/detectors/organisation-run.js +7 -0
  305. package/dist/detectors/organisation-run.js.map +1 -1
  306. package/dist/detectors/orthographic-variant-kanji-word.d.ts +22 -0
  307. package/dist/detectors/orthographic-variant-kanji-word.d.ts.map +1 -0
  308. package/dist/detectors/orthographic-variant-kanji-word.js +27 -0
  309. package/dist/detectors/orthographic-variant-kanji-word.js.map +1 -0
  310. package/dist/detectors/orthographic-variant-open.d.ts.map +1 -1
  311. package/dist/detectors/orthographic-variant-open.js +2 -1
  312. package/dist/detectors/orthographic-variant-open.js.map +1 -1
  313. package/dist/detectors/orthographic-variant-text.d.ts +7 -0
  314. package/dist/detectors/orthographic-variant-text.d.ts.map +1 -0
  315. package/dist/detectors/orthographic-variant-text.js +14 -0
  316. package/dist/detectors/orthographic-variant-text.js.map +1 -0
  317. package/dist/detectors/orthographic-variant.d.ts.map +1 -1
  318. package/dist/detectors/orthographic-variant.js +22 -23
  319. package/dist/detectors/orthographic-variant.js.map +1 -1
  320. package/dist/detectors/orthography.d.ts.map +1 -1
  321. package/dist/detectors/orthography.js +12 -2
  322. package/dist/detectors/orthography.js.map +1 -1
  323. package/dist/detectors/oxford-comma.d.ts.map +1 -1
  324. package/dist/detectors/oxford-comma.js +14 -3
  325. package/dist/detectors/oxford-comma.js.map +1 -1
  326. package/dist/detectors/paragraph-run.d.ts +1 -1
  327. package/dist/detectors/paragraph-run.d.ts.map +1 -1
  328. package/dist/detectors/paragraph-run.js +4 -2
  329. package/dist/detectors/paragraph-run.js.map +1 -1
  330. package/dist/detectors/placeholder-text.d.ts.map +1 -1
  331. package/dist/detectors/placeholder-text.js +12 -4
  332. package/dist/detectors/placeholder-text.js.map +1 -1
  333. package/dist/detectors/placeholder.d.ts +1 -0
  334. package/dist/detectors/placeholder.d.ts.map +1 -1
  335. package/dist/detectors/placeholder.js +8 -0
  336. package/dist/detectors/placeholder.js.map +1 -1
  337. package/dist/detectors/pseudo-heading.d.ts +9 -0
  338. package/dist/detectors/pseudo-heading.d.ts.map +1 -0
  339. package/dist/detectors/pseudo-heading.js +54 -0
  340. package/dist/detectors/pseudo-heading.js.map +1 -0
  341. package/dist/detectors/quote-around.d.ts +1 -1
  342. package/dist/detectors/quote-around.d.ts.map +1 -1
  343. package/dist/detectors/quote-around.js +26 -5
  344. package/dist/detectors/quote-around.js.map +1 -1
  345. package/dist/detectors/quoted-label.d.ts +8 -0
  346. package/dist/detectors/quoted-label.d.ts.map +1 -0
  347. package/dist/detectors/quoted-label.js +18 -0
  348. package/dist/detectors/quoted-label.js.map +1 -0
  349. package/dist/detectors/ra-nuki.d.ts +1 -7
  350. package/dist/detectors/ra-nuki.d.ts.map +1 -1
  351. package/dist/detectors/ra-nuki.js +2 -27
  352. package/dist/detectors/ra-nuki.js.map +1 -1
  353. package/dist/detectors/register-required.d.ts +27 -0
  354. package/dist/detectors/register-required.d.ts.map +1 -0
  355. package/dist/detectors/register-required.js +33 -0
  356. package/dist/detectors/register-required.js.map +1 -0
  357. package/dist/detectors/register-voice.d.ts +13 -1
  358. package/dist/detectors/register-voice.d.ts.map +1 -1
  359. package/dist/detectors/register-voice.js +27 -0
  360. package/dist/detectors/register-voice.js.map +1 -1
  361. package/dist/detectors/registry/enumeration-marker.d.ts +3 -0
  362. package/dist/detectors/registry/enumeration-marker.d.ts.map +1 -0
  363. package/dist/detectors/registry/enumeration-marker.js +3 -0
  364. package/dist/detectors/registry/enumeration-marker.js.map +1 -0
  365. package/dist/detectors/registry/filler-word.d.ts +3 -0
  366. package/dist/detectors/registry/filler-word.d.ts.map +1 -0
  367. package/dist/detectors/registry/filler-word.js +3 -0
  368. package/dist/detectors/registry/filler-word.js.map +1 -0
  369. package/dist/detectors/registry/heading-marker-no-space.d.ts +3 -0
  370. package/dist/detectors/registry/heading-marker-no-space.d.ts.map +1 -0
  371. package/dist/detectors/registry/heading-marker-no-space.js +3 -0
  372. package/dist/detectors/registry/heading-marker-no-space.js.map +1 -0
  373. package/dist/detectors/registry/link-definition-unused.d.ts +3 -0
  374. package/dist/detectors/registry/link-definition-unused.d.ts.map +1 -0
  375. package/dist/detectors/registry/link-definition-unused.js +3 -0
  376. package/dist/detectors/registry/link-definition-unused.js.map +1 -0
  377. package/dist/detectors/registry/pseudo-heading.d.ts +3 -0
  378. package/dist/detectors/registry/pseudo-heading.d.ts.map +1 -0
  379. package/dist/detectors/registry/pseudo-heading.js +3 -0
  380. package/dist/detectors/registry/pseudo-heading.js.map +1 -0
  381. package/dist/detectors/registry/reversed-link.d.ts +3 -0
  382. package/dist/detectors/registry/reversed-link.d.ts.map +1 -0
  383. package/dist/detectors/registry/reversed-link.js +3 -0
  384. package/dist/detectors/registry/reversed-link.js.map +1 -0
  385. package/dist/detectors/registry/sa-ire.d.ts +3 -0
  386. package/dist/detectors/registry/sa-ire.d.ts.map +1 -0
  387. package/dist/detectors/registry/sa-ire.js +3 -0
  388. package/dist/detectors/registry/sa-ire.js.map +1 -0
  389. package/dist/detectors/registry/table-absorbed-line.d.ts +3 -0
  390. package/dist/detectors/registry/table-absorbed-line.d.ts.map +1 -0
  391. package/dist/detectors/registry/table-absorbed-line.js +3 -0
  392. package/dist/detectors/registry/table-absorbed-line.js.map +1 -0
  393. package/dist/detectors/registry/term-consistency.d.ts +3 -0
  394. package/dist/detectors/registry/term-consistency.d.ts.map +1 -0
  395. package/dist/detectors/registry/term-consistency.js +3 -0
  396. package/dist/detectors/registry/term-consistency.js.map +1 -0
  397. package/dist/detectors/registry/term-form.d.ts +3 -0
  398. package/dist/detectors/registry/term-form.d.ts.map +1 -0
  399. package/dist/detectors/registry/term-form.js +3 -0
  400. package/dist/detectors/registry/term-form.js.map +1 -0
  401. package/dist/detectors/relative-pronoun-mix.d.ts +1 -1
  402. package/dist/detectors/relative-pronoun-mix.d.ts.map +1 -1
  403. package/dist/detectors/relative-pronoun-mix.js +14 -3
  404. package/dist/detectors/relative-pronoun-mix.js.map +1 -1
  405. package/dist/detectors/release-notes.d.ts +7 -0
  406. package/dist/detectors/release-notes.d.ts.map +1 -0
  407. package/dist/detectors/release-notes.js +12 -0
  408. package/dist/detectors/release-notes.js.map +1 -0
  409. package/dist/detectors/request-owner.d.ts +5 -1
  410. package/dist/detectors/request-owner.d.ts.map +1 -1
  411. package/dist/detectors/request-owner.js +53 -1
  412. package/dist/detectors/request-owner.js.map +1 -1
  413. package/dist/detectors/reversed-link.d.ts +3 -0
  414. package/dist/detectors/reversed-link.d.ts.map +1 -0
  415. package/dist/detectors/reversed-link.js +31 -0
  416. package/dist/detectors/reversed-link.js.map +1 -0
  417. package/dist/detectors/sa-ire.d.ts +3 -0
  418. package/dist/detectors/sa-ire.d.ts.map +1 -0
  419. package/dist/detectors/sa-ire.js +5 -0
  420. package/dist/detectors/sa-ire.js.map +1 -0
  421. package/dist/detectors/sentence-counts.d.ts.map +1 -1
  422. package/dist/detectors/sentence-counts.js +19 -6
  423. package/dist/detectors/sentence-counts.js.map +1 -1
  424. package/dist/detectors/sentence-ending.d.ts.map +1 -1
  425. package/dist/detectors/sentence-ending.js +35 -11
  426. package/dist/detectors/sentence-ending.js.map +1 -1
  427. package/dist/detectors/sentence-length.d.ts.map +1 -1
  428. package/dist/detectors/sentence-length.js +11 -1
  429. package/dist/detectors/sentence-length.js.map +1 -1
  430. package/dist/detectors/sentence-rhythm.d.ts.map +1 -1
  431. package/dist/detectors/sentence-rhythm.js +6 -2
  432. package/dist/detectors/sentence-rhythm.js.map +1 -1
  433. package/dist/detectors/signals.js +2 -2
  434. package/dist/detectors/signals.js.map +1 -1
  435. package/dist/detectors/structure.d.ts +1 -0
  436. package/dist/detectors/structure.d.ts.map +1 -1
  437. package/dist/detectors/structure.js +5 -0
  438. package/dist/detectors/structure.js.map +1 -1
  439. package/dist/detectors/technical-docs.d.ts +8 -1
  440. package/dist/detectors/technical-docs.d.ts.map +1 -1
  441. package/dist/detectors/technical-docs.js +16 -3
  442. package/dist/detectors/technical-docs.js.map +1 -1
  443. package/dist/detectors/term-consistency.d.ts +4 -0
  444. package/dist/detectors/term-consistency.d.ts.map +1 -0
  445. package/dist/detectors/term-consistency.js +35 -0
  446. package/dist/detectors/term-consistency.js.map +1 -0
  447. package/dist/detectors/term-form.d.ts +4 -0
  448. package/dist/detectors/term-form.d.ts.map +1 -0
  449. package/dist/detectors/term-form.js +17 -0
  450. package/dist/detectors/term-form.js.map +1 -0
  451. package/dist/detectors/token-shape.d.ts.map +1 -1
  452. package/dist/detectors/token-shape.js +4 -1
  453. package/dist/detectors/token-shape.js.map +1 -1
  454. package/dist/detectors/unbalanced-bracket.d.ts +1 -1
  455. package/dist/detectors/unbalanced-bracket.d.ts.map +1 -1
  456. package/dist/detectors/unbalanced-bracket.js +4 -2
  457. package/dist/detectors/unbalanced-bracket.js.map +1 -1
  458. package/dist/detectors/unknown-word-context.d.ts +2 -0
  459. package/dist/detectors/unknown-word-context.d.ts.map +1 -1
  460. package/dist/detectors/unknown-word-context.js +3 -0
  461. package/dist/detectors/unknown-word-context.js.map +1 -1
  462. package/dist/detectors/unknown-word.d.ts.map +1 -1
  463. package/dist/detectors/unknown-word.js +7 -2
  464. package/dist/detectors/unknown-word.js.map +1 -1
  465. package/dist/detectors/vague-density.d.ts.map +1 -1
  466. package/dist/detectors/vague-density.js +10 -2
  467. package/dist/detectors/vague-density.js.map +1 -1
  468. package/dist/detectors/version-mismatch.d.ts.map +1 -1
  469. package/dist/detectors/version-mismatch.js +5 -1
  470. package/dist/detectors/version-mismatch.js.map +1 -1
  471. package/dist/detectors/weasel-word.d.ts.map +1 -1
  472. package/dist/detectors/weasel-word.js +11 -2
  473. package/dist/detectors/weasel-word.js.map +1 -1
  474. package/dist/document-prose.d.ts +17 -0
  475. package/dist/document-prose.d.ts.map +1 -0
  476. package/dist/document-prose.js +35 -0
  477. package/dist/document-prose.js.map +1 -0
  478. package/dist/document-scope.d.ts +16 -0
  479. package/dist/document-scope.d.ts.map +1 -0
  480. package/dist/document-scope.js +51 -0
  481. package/dist/document-scope.js.map +1 -0
  482. package/dist/document.d.ts +10 -1
  483. package/dist/document.d.ts.map +1 -1
  484. package/dist/document.js +26 -37
  485. package/dist/document.js.map +1 -1
  486. package/dist/enumeration-marks.d.ts +23 -0
  487. package/dist/enumeration-marks.d.ts.map +1 -0
  488. package/dist/enumeration-marks.js +184 -0
  489. package/dist/enumeration-marks.js.map +1 -0
  490. package/dist/facts/cross-facts.d.ts +1 -1
  491. package/dist/facts/cross-facts.d.ts.map +1 -1
  492. package/dist/facts/cross-facts.js +8 -3
  493. package/dist/facts/cross-facts.js.map +1 -1
  494. package/dist/facts/labelled-facts.d.ts.map +1 -1
  495. package/dist/facts/labelled-facts.js +7 -4
  496. package/dist/facts/labelled-facts.js.map +1 -1
  497. package/dist/file-header.d.ts +2 -6
  498. package/dist/file-header.d.ts.map +1 -1
  499. package/dist/file-header.js +1 -1
  500. package/dist/file-header.js.map +1 -1
  501. package/dist/files.d.ts +18 -1
  502. package/dist/files.d.ts.map +1 -1
  503. package/dist/files.js +58 -8
  504. package/dist/files.js.map +1 -1
  505. package/dist/gitignore.d.ts +30 -0
  506. package/dist/gitignore.d.ts.map +1 -0
  507. package/dist/gitignore.js +68 -0
  508. package/dist/gitignore.js.map +1 -0
  509. package/dist/grade/stamp.d.ts.map +1 -1
  510. package/dist/grade/stamp.js +5 -0
  511. package/dist/grade/stamp.js.map +1 -1
  512. package/dist/latin-word-boundary.d.ts +5 -0
  513. package/dist/latin-word-boundary.d.ts.map +1 -1
  514. package/dist/latin-word-boundary.js +11 -0
  515. package/dist/latin-word-boundary.js.map +1 -1
  516. package/dist/markdown-node.d.ts +1 -0
  517. package/dist/markdown-node.d.ts.map +1 -1
  518. package/dist/markdown-node.js.map +1 -1
  519. package/dist/name-separator.d.ts.map +1 -1
  520. package/dist/name-separator.js +27 -5
  521. package/dist/name-separator.js.map +1 -1
  522. package/dist/news-dateline.d.ts +7 -0
  523. package/dist/news-dateline.d.ts.map +1 -0
  524. package/dist/news-dateline.js +24 -0
  525. package/dist/news-dateline.js.map +1 -0
  526. package/dist/plugin.d.ts +24 -0
  527. package/dist/plugin.d.ts.map +1 -1
  528. package/dist/reasons.d.ts +4 -0
  529. package/dist/reasons.d.ts.map +1 -1
  530. package/dist/reasons.js +4 -0
  531. package/dist/reasons.js.map +1 -1
  532. package/dist/render/explain.d.ts +3 -0
  533. package/dist/render/explain.d.ts.map +1 -1
  534. package/dist/render/explain.js +19 -1
  535. package/dist/render/explain.js.map +1 -1
  536. package/dist/render/rules-json.d.ts.map +1 -1
  537. package/dist/render/rules-json.js +12 -2
  538. package/dist/render/rules-json.js.map +1 -1
  539. package/dist/render/summary.d.ts +5 -2
  540. package/dist/render/summary.d.ts.map +1 -1
  541. package/dist/render/summary.js +25 -4
  542. package/dist/render/summary.js.map +1 -1
  543. package/dist/render/suppressions.d.ts +6 -1
  544. package/dist/render/suppressions.d.ts.map +1 -1
  545. package/dist/render/suppressions.js +76 -3
  546. package/dist/render/suppressions.js.map +1 -1
  547. package/dist/rule-load.d.ts.map +1 -1
  548. package/dist/rule-load.js +2 -1
  549. package/dist/rule-load.js.map +1 -1
  550. package/dist/run-in-title.d.ts +4 -0
  551. package/dist/run-in-title.d.ts.map +1 -0
  552. package/dist/run-in-title.js +82 -0
  553. package/dist/run-in-title.js.map +1 -0
  554. package/dist/run.d.ts +2 -0
  555. package/dist/run.d.ts.map +1 -1
  556. package/dist/run.js +20 -8
  557. package/dist/run.js.map +1 -1
  558. package/dist/scope-markers.d.ts +9 -0
  559. package/dist/scope-markers.d.ts.map +1 -0
  560. package/dist/scope-markers.js +19 -0
  561. package/dist/scope-markers.js.map +1 -0
  562. package/dist/scope-problem-text.d.ts +4 -0
  563. package/dist/scope-problem-text.d.ts.map +1 -0
  564. package/dist/scope-problem-text.js +17 -0
  565. package/dist/scope-problem-text.js.map +1 -0
  566. package/dist/scoped-sentences.d.ts +21 -0
  567. package/dist/scoped-sentences.d.ts.map +1 -0
  568. package/dist/scoped-sentences.js +21 -0
  569. package/dist/scoped-sentences.js.map +1 -0
  570. package/dist/setting-problems.d.ts.map +1 -1
  571. package/dist/setting-problems.js +4 -0
  572. package/dist/setting-problems.js.map +1 -1
  573. package/dist/spelling.js +4 -4
  574. package/dist/spelling.js.map +1 -1
  575. package/dist/stet-body.d.ts +13 -0
  576. package/dist/stet-body.d.ts.map +1 -0
  577. package/dist/stet-body.js +49 -0
  578. package/dist/stet-body.js.map +1 -0
  579. package/dist/stet.d.ts +30 -4
  580. package/dist/stet.d.ts.map +1 -1
  581. package/dist/stet.js +78 -28
  582. package/dist/stet.js.map +1 -1
  583. package/dist/structure/alert-lines.d.ts +4 -0
  584. package/dist/structure/alert-lines.d.ts.map +1 -0
  585. package/dist/structure/alert-lines.js +19 -0
  586. package/dist/structure/alert-lines.js.map +1 -0
  587. package/dist/structure/catch-all-row-blank.d.ts +9 -0
  588. package/dist/structure/catch-all-row-blank.d.ts.map +1 -0
  589. package/dist/structure/catch-all-row-blank.js +19 -0
  590. package/dist/structure/catch-all-row-blank.js.map +1 -0
  591. package/dist/structure/change-rate-tied.d.ts +22 -0
  592. package/dist/structure/change-rate-tied.d.ts.map +1 -0
  593. package/dist/structure/change-rate-tied.js +85 -0
  594. package/dist/structure/change-rate-tied.js.map +1 -0
  595. package/dist/structure/cross-definitions.d.ts +1 -1
  596. package/dist/structure/cross-definitions.d.ts.map +1 -1
  597. package/dist/structure/cross-definitions.js +3 -9
  598. package/dist/structure/cross-definitions.js.map +1 -1
  599. package/dist/structure/defining-names.d.ts +1 -1
  600. package/dist/structure/defining-names.d.ts.map +1 -1
  601. package/dist/structure/defining-names.js +12 -1
  602. package/dist/structure/defining-names.js.map +1 -1
  603. package/dist/structure/net-amount.d.ts +16 -0
  604. package/dist/structure/net-amount.d.ts.map +1 -1
  605. package/dist/structure/net-amount.js +28 -1
  606. package/dist/structure/net-amount.js.map +1 -1
  607. package/dist/structure/period-label-conflict.d.ts +2 -2
  608. package/dist/structure/period-label-conflict.d.ts.map +1 -1
  609. package/dist/structure/period-label-conflict.js +17 -3
  610. package/dist/structure/period-label-conflict.js.map +1 -1
  611. package/dist/structure/serial-range.d.ts.map +1 -1
  612. package/dist/structure/serial-range.js +14 -6
  613. package/dist/structure/serial-range.js.map +1 -1
  614. package/dist/structure/version-mismatch.d.ts +6 -1
  615. package/dist/structure/version-mismatch.d.ts.map +1 -1
  616. package/dist/structure/version-mismatch.js +28 -6
  617. package/dist/structure/version-mismatch.js.map +1 -1
  618. package/dist/structure/weekday.d.ts.map +1 -1
  619. package/dist/structure/weekday.js +14 -1
  620. package/dist/structure/weekday.js.map +1 -1
  621. package/dist/table-cells.d.ts +1 -1
  622. package/dist/table-cells.d.ts.map +1 -1
  623. package/dist/table-cells.js.map +1 -1
  624. package/dist/term-form.d.ts +15 -0
  625. package/dist/term-form.d.ts.map +1 -0
  626. package/dist/term-form.js +72 -0
  627. package/dist/term-form.js.map +1 -0
  628. package/dist/term-groups.d.ts +33 -0
  629. package/dist/term-groups.d.ts.map +1 -0
  630. package/dist/term-groups.js +46 -0
  631. package/dist/term-groups.js.map +1 -0
  632. package/dist/text-scope.d.ts +35 -0
  633. package/dist/text-scope.d.ts.map +1 -0
  634. package/dist/text-scope.js +55 -0
  635. package/dist/text-scope.js.map +1 -0
  636. package/dist/topic-clause.d.ts.map +1 -1
  637. package/dist/topic-clause.js +85 -16
  638. package/dist/topic-clause.js.map +1 -1
  639. package/dist/unclosed-code-quote.d.ts +7 -0
  640. package/dist/unclosed-code-quote.d.ts.map +1 -0
  641. package/dist/unclosed-code-quote.js +37 -0
  642. package/dist/unclosed-code-quote.js.map +1 -0
  643. package/package.json +4 -3
  644. package/rules/adverb-overuse.yaml +2 -2
  645. package/rules/bold-density.yaml +2 -2
  646. package/rules/bold-label-list.yaml +2 -2
  647. package/rules/bracket-width-consistency.yaml +2 -2
  648. package/rules/broken-link.yaml +2 -2
  649. package/rules/change-rate-mismatch.yaml +2 -2
  650. package/rules/code-fence-language-mix.yaml +2 -2
  651. package/rules/comparative-without-baseline.yaml +2 -2
  652. package/rules/contraction-consistency.yaml +3 -3
  653. package/rules/cross-doc-duplicate-definition.yaml +2 -2
  654. package/rules/cross-doc-fact-conflict.yaml +2 -2
  655. package/rules/cross-doc-term-variant.yaml +4 -4
  656. package/rules/date-format-consistency.yaml +2 -2
  657. package/rules/date-weekday-mismatch.yaml +2 -2
  658. package/rules/date-without-year.yaml +2 -2
  659. package/rules/defined-term-form.yaml +2 -2
  660. package/rules/elapsed-years-mismatch.yaml +2 -2
  661. package/rules/empty-section.yaml +2 -2
  662. package/rules/empty-table-cell.yaml +2 -2
  663. package/rules/enumeration-marker-mix.yaml +102 -0
  664. package/rules/filler-word.yaml +74 -0
  665. package/rules/fullwidth-alnum-consistency.yaml +2 -2
  666. package/rules/heading-marker-no-space.yaml +79 -0
  667. package/rules/hyphen-as-dash.yaml +2 -2
  668. package/rules/known-misspelling.yaml +2 -2
  669. package/rules/latin-spacing.yaml +4 -4
  670. package/rules/link-definition-unused.yaml +107 -0
  671. package/rules/list-item-form-mix.yaml +2 -2
  672. package/rules/max-kanji-continuous.yaml +5 -2
  673. package/rules/max-sentence-length.yaml +2 -2
  674. package/rules/missing-final-period.yaml +2 -2
  675. package/rules/name-variant.yaml +2 -2
  676. package/rules/net-amount-mismatch.yaml +5 -5
  677. package/rules/no-doubled-joshi.yaml +2 -2
  678. package/rules/no-mixed-desumasu.yaml +62 -2
  679. package/rules/no-nakaguro-parallel.yaml +2 -2
  680. package/rules/nominalization.yaml +2 -2
  681. package/rules/number-style-consistency.yaml +2 -2
  682. package/rules/obligation-without-deadline.yaml +2 -2
  683. package/rules/one-sentence-paragraph-run.yaml +2 -2
  684. package/rules/orthographic-variant.yaml +2 -2
  685. package/rules/oxford-comma-consistency.yaml +2 -2
  686. package/rules/period-label-conflict.yaml +2 -2
  687. package/rules/preamble-length.yaml +2 -2
  688. package/rules/pseudo-heading.yaml +79 -0
  689. package/rules/quote-without-source.yaml +2 -2
  690. package/rules/repeated-sentence-ending.yaml +2 -2
  691. package/rules/request-without-deadline.yaml +2 -2
  692. package/rules/reversed-link.yaml +78 -0
  693. package/rules/sa-ire.yaml +43 -0
  694. package/rules/sentence-rhythm.yaml +2 -2
  695. package/rules/serial-range-reversed.yaml +4 -4
  696. package/rules/shell-prompt-mix.yaml +2 -2
  697. package/rules/table-absorbed-line.yaml +88 -0
  698. package/rules/teki-overuse.yaml +2 -2
  699. package/rules/term-consistency.yaml +56 -0
  700. package/rules/term-form.yaml +56 -0
  701. package/rules/title-case-consistency.yaml +4 -4
  702. package/rules/title-length.yaml +2 -2
  703. package/rules/topic-predicate-distance.yaml +2 -2
  704. package/rules/unbalanced-bracket.yaml +2 -2
  705. package/rules/undefined-acronym.yaml +4 -2
  706. package/rules/undefined-term.yaml +2 -2
  707. package/rules/unfilled-placeholder.yaml +2 -2
  708. package/rules/unknown-word.yaml +2 -2
  709. package/rules/use-before-definition.yaml +2 -2
  710. package/rules/vague-word-density.yaml +2 -2
  711. package/rules/version-mismatch.yaml +2 -2
  712. package/rules/weasel-word.yaml +3 -3
  713. package/rules/which-that-consistency.yaml +2 -2
  714. package/skills/chaff/SKILL.md +51 -7
  715. package/src/allow.ts +146 -0
  716. package/src/check-source.ts +33 -9
  717. package/src/cli-text.ts +13 -4
  718. package/src/cli.ts +16 -15
  719. package/src/commands/eval.ts +1 -1
  720. package/src/commands/suppressions.ts +3 -3
  721. package/src/commands/test.ts +1 -1
  722. package/src/compound-head.ts +17 -8
  723. package/src/config/allow-problems.ts +75 -0
  724. package/src/config/by-path-problems.ts +29 -3
  725. package/src/config/by-path-rules.ts +78 -0
  726. package/src/config/by-path.ts +9 -0
  727. package/src/config/consistent-problems.ts +36 -0
  728. package/src/config/load.ts +87 -15
  729. package/src/config/option-problems.ts +8 -5
  730. package/src/config/prefer-problems.ts +22 -0
  731. package/src/config/prefer.ts +52 -0
  732. package/src/config/term-problems.ts +38 -0
  733. package/src/config/warnings.ts +9 -2
  734. package/src/cross-variants.ts +4 -7
  735. package/src/cross-votes.ts +35 -4
  736. package/src/custom/parse.ts +16 -3
  737. package/src/custom/problems.ts +9 -3
  738. package/src/custom/scope-field.ts +16 -0
  739. package/src/date-format.ts +43 -8
  740. package/src/derived/elapsed.ts +17 -2
  741. package/src/detectors/acronym-context.ts +7 -1
  742. package/src/detectors/acronym-gloss.ts +59 -11
  743. package/src/detectors/bare-comparative.ts +35 -3
  744. package/src/detectors/blank-structure.ts +18 -9
  745. package/src/detectors/bold-label.ts +7 -2
  746. package/src/detectors/bracket-title-date.ts +36 -0
  747. package/src/detectors/broken-link.ts +14 -1
  748. package/src/detectors/capitalised-term.ts +18 -4
  749. package/src/detectors/change-rate.ts +29 -4
  750. package/src/detectors/char-shape.ts +13 -17
  751. package/src/detectors/clause-shape.ts +8 -4
  752. package/src/detectors/contraction-mix.ts +8 -2
  753. package/src/detectors/contraction-set-apart.ts +22 -2
  754. package/src/detectors/coordinate-adjective.ts +54 -1
  755. package/src/detectors/count-per-section.ts +13 -8
  756. package/src/detectors/counter-edge.ts +20 -0
  757. package/src/detectors/cross-variant.ts +16 -2
  758. package/src/detectors/custom.ts +6 -4
  759. package/src/detectors/date-format.ts +1 -1
  760. package/src/detectors/date-repeated-day.ts +20 -0
  761. package/src/detectors/date-year.ts +8 -1
  762. package/src/detectors/defined-term-form.ts +6 -3
  763. package/src/detectors/definition-use.ts +7 -1
  764. package/src/detectors/derived-numbers.ts +1 -0
  765. package/src/detectors/document-shape.ts +4 -1
  766. package/src/detectors/email-letter.ts +6 -2
  767. package/src/detectors/empty-section.ts +10 -2
  768. package/src/detectors/en-shape.ts +17 -1
  769. package/src/detectors/enumeration-marker.ts +14 -0
  770. package/src/detectors/event-title-item.ts +57 -0
  771. package/src/detectors/example-baseline.ts +16 -1
  772. package/src/detectors/filler-word.ts +96 -0
  773. package/src/detectors/fullwidth-alnum.ts +24 -0
  774. package/src/detectors/heading-case.ts +7 -1
  775. package/src/detectors/heading-marker-no-space.ts +62 -0
  776. package/src/detectors/hyphen-name-suffix.ts +3 -2
  777. package/src/detectors/inline-item-label.ts +98 -0
  778. package/src/detectors/kanji-name-edge.ts +11 -0
  779. package/src/detectors/known-correction.ts +17 -1
  780. package/src/detectors/link-definition.ts +91 -0
  781. package/src/detectors/list-item-asides.ts +29 -0
  782. package/src/detectors/list-item.ts +7 -0
  783. package/src/detectors/list-items.ts +13 -2
  784. package/src/detectors/list-opening-conjunction.ts +22 -0
  785. package/src/detectors/list-parallel.ts +11 -15
  786. package/src/detectors/list-run.ts +16 -3
  787. package/src/detectors/list-verb-series.ts +24 -0
  788. package/src/detectors/mark-shape.ts +15 -19
  789. package/src/detectors/markdown-slip.ts +25 -1
  790. package/src/detectors/marked-word.ts +40 -0
  791. package/src/detectors/middle-dot.ts +27 -2
  792. package/src/detectors/missing-final-period.ts +9 -1
  793. package/src/detectors/name-variant-two-things.ts +37 -2
  794. package/src/detectors/net-amount-mismatch.ts +41 -4
  795. package/src/detectors/nominalization.ts +8 -1
  796. package/src/detectors/number-style.ts +8 -0
  797. package/src/detectors/ordinary-phrase.ts +13 -0
  798. package/src/detectors/organisation-run.ts +9 -0
  799. package/src/detectors/orthographic-variant-kanji-word.ts +33 -0
  800. package/src/detectors/orthographic-variant-open.ts +2 -1
  801. package/src/detectors/orthographic-variant-text.ts +20 -0
  802. package/src/detectors/orthographic-variant.ts +25 -32
  803. package/src/detectors/orthography.ts +18 -2
  804. package/src/detectors/oxford-comma.ts +14 -2
  805. package/src/detectors/paragraph-run.ts +7 -10
  806. package/src/detectors/placeholder-text.ts +22 -5
  807. package/src/detectors/placeholder.ts +10 -0
  808. package/src/detectors/pseudo-heading.ts +59 -0
  809. package/src/detectors/quote-around.ts +31 -6
  810. package/src/detectors/quoted-label.ts +22 -0
  811. package/src/detectors/ra-nuki.ts +3 -34
  812. package/src/detectors/register-required.ts +56 -0
  813. package/src/detectors/register-voice.ts +36 -1
  814. package/src/detectors/registry/enumeration-marker.ts +4 -0
  815. package/src/detectors/registry/filler-word.ts +4 -0
  816. package/src/detectors/registry/heading-marker-no-space.ts +4 -0
  817. package/src/detectors/registry/link-definition-unused.ts +4 -0
  818. package/src/detectors/registry/pseudo-heading.ts +4 -0
  819. package/src/detectors/registry/reversed-link.ts +4 -0
  820. package/src/detectors/registry/sa-ire.ts +4 -0
  821. package/src/detectors/registry/table-absorbed-line.ts +4 -0
  822. package/src/detectors/registry/term-consistency.ts +4 -0
  823. package/src/detectors/registry/term-form.ts +4 -0
  824. package/src/detectors/relative-pronoun-mix.ts +18 -3
  825. package/src/detectors/release-notes.ts +19 -0
  826. package/src/detectors/request-owner.ts +62 -2
  827. package/src/detectors/reversed-link.ts +39 -0
  828. package/src/detectors/sa-ire.ts +7 -0
  829. package/src/detectors/sentence-counts.ts +28 -9
  830. package/src/detectors/sentence-ending.ts +53 -12
  831. package/src/detectors/sentence-length.ts +16 -2
  832. package/src/detectors/sentence-rhythm.ts +6 -2
  833. package/src/detectors/signals.ts +2 -2
  834. package/src/detectors/structure.ts +4 -0
  835. package/src/detectors/technical-docs.ts +27 -3
  836. package/src/detectors/term-consistency.ts +41 -0
  837. package/src/detectors/term-form.ts +17 -0
  838. package/src/detectors/token-shape.ts +4 -1
  839. package/src/detectors/unbalanced-bracket.ts +4 -2
  840. package/src/detectors/unknown-word-context.ts +6 -0
  841. package/src/detectors/unknown-word.ts +7 -1
  842. package/src/detectors/vague-density.ts +10 -2
  843. package/src/detectors/version-mismatch.ts +7 -1
  844. package/src/detectors/weasel-word.ts +13 -2
  845. package/src/document-prose.ts +43 -0
  846. package/src/document-scope.ts +66 -0
  847. package/src/document.ts +43 -50
  848. package/src/enumeration-marks.ts +233 -0
  849. package/src/facts/cross-facts.ts +10 -4
  850. package/src/facts/labelled-facts.ts +7 -4
  851. package/src/file-header.ts +3 -5
  852. package/src/files.ts +87 -8
  853. package/src/gitignore.ts +83 -0
  854. package/src/grade/stamp.ts +5 -0
  855. package/src/latin-word-boundary.ts +12 -0
  856. package/src/markdown-node.ts +1 -0
  857. package/src/name-separator.ts +29 -7
  858. package/src/news-dateline.ts +29 -0
  859. package/src/plugin.ts +21 -3
  860. package/src/reasons.ts +8 -0
  861. package/src/render/explain.ts +26 -1
  862. package/src/render/rules-json.ts +16 -2
  863. package/src/render/summary.ts +33 -4
  864. package/src/render/suppressions.ts +101 -4
  865. package/src/rule-load.ts +3 -2
  866. package/src/run-in-title.ts +91 -0
  867. package/src/run.ts +21 -8
  868. package/src/scope-markers.ts +25 -0
  869. package/src/scope-problem-text.ts +21 -0
  870. package/src/scoped-sentences.ts +41 -0
  871. package/src/setting-problems.ts +4 -0
  872. package/src/spelling.ts +4 -4
  873. package/src/stet-body.ts +74 -0
  874. package/src/stet.ts +113 -32
  875. package/src/structure/alert-lines.ts +19 -0
  876. package/src/structure/catch-all-row-blank.ts +22 -0
  877. package/src/structure/change-rate-tied.ts +113 -0
  878. package/src/structure/cross-definitions.ts +6 -9
  879. package/src/structure/defining-names.ts +14 -1
  880. package/src/structure/net-amount.ts +44 -5
  881. package/src/structure/period-label-conflict.ts +22 -7
  882. package/src/structure/serial-range.ts +14 -6
  883. package/src/structure/version-mismatch.ts +41 -8
  884. package/src/structure/weekday.ts +14 -1
  885. package/src/table-cells.ts +2 -2
  886. package/src/term-form.ts +99 -0
  887. package/src/term-groups.ts +68 -0
  888. package/src/text-scope.ts +79 -0
  889. package/src/topic-clause.ts +96 -17
  890. package/src/unclosed-code-quote.ts +42 -0
@@ -82,16 +82,65 @@ const closesFirstClauseWithNoun = (tokens, topic, at, last) => tokens[at]?.surfa
82
82
  isComma(tokens[at + 1]) &&
83
83
  !tokens.slice(topic + 1, at).some(isComma) &&
84
84
  newTopicAfter(tokens, at + 1, last);
85
+ /** 〜の積上げであり、: the copula's continuing あり after で, and a comma. */
86
+ const isCopulaContinuing = (tokens, at) => tokens[at]?.surface === "あり" && tokens[at]?.lemma === "ある" && tokens[at - 1]?.surface === "で" && isCopula(tokens[at - 1]) && isComma(tokens[at + 1]);
87
+ /** The sentence ends on a copula (〜ものではありません, 〜ということです) or on ある after が (〜する必要があります). */
88
+ const endsOnCopulaOrBeing = (tokens, last) => {
89
+ const head = beforeTail(tokens, last);
90
+ const token = tokens[head];
91
+ return isCopula(token) || (token !== undefined && isParticle(token, "が") && tokens[head + 1]?.lemma === "ある");
92
+ };
93
+ /** A が on a noun, a nominaliser too (感染するものが増えている), past at and past the last comma: the final predicate's subject. */
94
+ const finalGaAfter = (tokens, at, last) => {
95
+ const lastComma = tokens.findLastIndex((token, index) => index < last && isComma(token));
96
+ return tokens.some((token, index) => index > Math.max(at, lastComma) && index < last && isParticle(token, "が") && NOMINAL.has(tokens[index - 1]?.pos ?? ""));
97
+ };
98
+ /** The sentence ends on a noun and a copula, and a が straight before the noun is its subject (〜を図ることが必要である), past at. */
99
+ const predicateNounTakesGa = (tokens, at, last) => {
100
+ const copula = beforeTail(tokens, last);
101
+ const ga = tokens[copula - 2];
102
+ return (copula - 2 > at &&
103
+ isCopula(tokens[copula]) &&
104
+ isOwnNoun(tokens[copula - 1]) &&
105
+ ga !== undefined &&
106
+ isParticle(ga, "が") &&
107
+ NOMINAL.has(tokens[copula - 3]?.pos ?? ""));
108
+ };
109
+ /**
110
+ * 収益は、…の積上げであり、…ストック型が主要を占めております: the copula's continuing form closes the topic's clause when a new
111
+ * topic follows, or a subject of its own (が, a clause made a noun too: 〜することが求められている) whose predicate is not again a
112
+ * copula or ある, or the subject of the final copula's noun (〜を図ることが必要である). 信頼型は、…ものであり、…ものではありません
113
+ * and これは…リンクであり、ユーザーが…ということです say two things of the same topic. With another topic between the topic and it
114
+ * (復興は、…進んでいる一方で、…状況は様々であり、), the copula is that topic's, not the first one's. A が there (〜ことは、パレスチナが
115
+ * …共存することであり、) is inside a clause the topic's own predicate takes, and does not count.
116
+ */
117
+ const closesWithCopulaContinuing = (tokens, topic, at, last, subject) => isCopulaContinuing(tokens, at) &&
118
+ !newTopicAfter(tokens, topic, at) &&
119
+ (newTopicAfter(tokens, at + 1, last) ||
120
+ ((subject > at || finalGaAfter(tokens, at, last)) && !endsOnCopulaOrBeing(tokens, last)) ||
121
+ predicateNounTakesGa(tokens, at, last));
122
+ /**
123
+ * 〜する想定のため: a clause, a noun it ends on, and の before ため, the copula's attributive form (想定であるため). A bare noun
124
+ * before のため (安全管理のため) is more often a purpose, which the topic's own predicate still follows.
125
+ */
126
+ const clauseNounBeforeTame = (tokens, at) => {
127
+ const before = tokens[at - 1];
128
+ const clauseEnd = tokens[at - 3];
129
+ const endsClause = clauseEnd?.pos === "VERB" || (clauseEnd?.pos === "AUX" && clauseEnd.lemma !== "だ");
130
+ return before !== undefined && isParticle(before, "の") && isOwnNoun(tokens[at - 2]) && endsClause;
131
+ };
85
132
  /**
86
133
  * A clause that may close the topic's predicate, when a new subject follows, each stopped by a comma: a copula after ない or
87
- * ため (〜ではなく、, 〜であるため、), a copula's condition (〜であるならば、), ところ (〜にあるところ、), and a continuing verb
88
- * (〜を続けており、).
134
+ * ため (〜ではなく、, 〜であるため、, 〜の想定のため、), a copula's condition (〜であるならば、), ところ (〜にあるところ、), and a
135
+ * continuing verb (〜を続けており、).
89
136
  */
90
137
  const closesIfNewSubject = (tokens, at) => {
91
138
  const token = tokens[at];
92
139
  if (!isComma(tokens[at + 1]))
93
140
  return false;
94
- if (token?.surface === "ため" || token?.lemma === "ない")
141
+ if (token?.surface === "ため")
142
+ return copulaBefore(tokens, at) || clauseNounBeforeTame(tokens, at);
143
+ if (token?.lemma === "ない")
95
144
  return copulaBefore(tokens, at);
96
145
  if (closesWithTokoro(tokens, at) || closesWithCondition(tokens, at))
97
146
  return true;
@@ -115,13 +164,27 @@ const isPoliteMasu = (token) => token?.pos === "AUX" && token.lemma === "ます"
115
164
  const POLITE_TAILS = [[], ["た"], ["ん"], ["ん", "でし", "た"]];
116
165
  const endsPolite = (tokens, at, tail) => isPoliteMasu(tokens[at - tail.length - 1]) &&
117
166
  tail.every((surface, index) => tokens[at - tail.length + index]?.pos === "AUX" && tokens[at - tail.length + index]?.surface === surface);
118
- /** 〜ておりますが / 〜しましたが / 〜できませんでしたが: a polite predicate and the contrastive が. */
167
+ /** The polite copula, past or not, just before at: ほとんどですが, ほとんどでしたが. */
168
+ const endsPoliteCopula = (tokens, at) => {
169
+ const end = tokens[at - 1]?.surface === "た" && tokens[at - 1]?.pos === "AUX" ? at - 1 : at;
170
+ const copula = tokens[end - 1];
171
+ return copula?.pos === "AUX" && copula.lemma === "です";
172
+ };
173
+ /** 〜ておりますが / 〜しましたが / 〜できませんでしたが / 〜でしたが: a polite predicate and the contrastive が. */
119
174
  const isPoliteGa = (tokens, at) => {
120
175
  if (tokens[at]?.surface !== "が" || tokens[at]?.pos !== "SCONJ")
121
176
  return false;
122
- return POLITE_TAILS.some((tail) => endsPolite(tokens, at, tail));
177
+ return POLITE_TAILS.some((tail) => endsPolite(tokens, at, tail)) || endsPoliteCopula(tokens, at);
123
178
  };
124
- const ownGaSubjectBetween = (tokens, from, to) => tokens.some((token, at) => at > from && at < to && isParticle(token, "が") && headsSubject(tokens, at));
179
+ /** A topic on a noun that sets the time or the case (普及以前は, 決定後は): it frames a clause, not the whole sentence. */
180
+ const isSettingTopic = (tokens, topic) => tokens[topic - 1]?.features?.["Adverbial"] === "Yes";
181
+ /** A new topic on a noun after at, before the last word, bare or on に or で (プログラムには, 国内では). */
182
+ const frameTopicAfter = (tokens, at, last) => tokens.some((token, index) => {
183
+ if (index <= at || index >= last || !isParticle(token, "は"))
184
+ return false;
185
+ const head = tokens[index - 1]?.surface === "に" || tokens[index - 1]?.surface === "で" ? index - 2 : index - 1;
186
+ return isOwnNoun(tokens[head]);
187
+ });
125
188
  /** A word of a name (赤澤, 大臣), not a noun that sets the time or the case (今後, 当日). */
126
189
  const isNameWord = (token) => NOMINAL.has(token.pos) && token.features?.["Adverbial"] !== "Yes";
127
190
  /**
@@ -137,20 +200,25 @@ const newNameTopicRunsToEnd = (tokens, comma, last) => {
137
200
  const isActTopic = (tokens, topic) => tokens[topic - 1]?.surface === "こと" && tokens[topic - 1]?.pos === "NOUN" && PREDICATE.has(tokens[topic - 2]?.pos ?? "");
138
201
  /**
139
202
  * 当社は…を営んでおりますが、…の重要性が乏しいため、…の記載は行っておりません: after 〜ますが、 the words up to the next comma
140
- * say something of a subject of their own (が) and a new topic takes what comes after, so the predicate before が was the
141
- * topic's, when no other subject stands between the topic and it (需要の停滞がありましたが is not). A clause with no subject of
142
- * its own there is read to the end, unless a name stands as a new topic straight after the comma (〜ましたが、B大臣は…), or the
143
- * topic is an act made a noun (つまびらかにすることは差し控えますが、…): what is said of an act ends there, and the rest is the
144
- * speaker's.
203
+ * say something of a subject of their own (が) and a new topic (bare, or on に or で: 〜プログラムには) takes what comes after
204
+ * that subject, so the predicate before が was the topic's, when no other subject stands between the topic and it
205
+ * (需要の停滞がありましたが is not). A clause with no subject of its own there is read to the end, unless a name stands as a new
206
+ * topic straight after the comma (〜ましたが、B大臣は…), or the topic is an act made a noun (つまびらかにすることは差し控えますが、…):
207
+ * what is said of an act ends there, and the rest is the speaker's. A topic that sets the time or the case (普及以前は、決定後は)
208
+ * frames only its clause: when a subject of its own follows the comma, its clause ends at 〜ますが even with a subject between.
145
209
  */
146
- const closesWithPoliteGa = (tokens, topic, at, last) => {
147
- if (!isPoliteGa(tokens, at) || !isComma(tokens[at + 1]) || subjectBetween(tokens, topic, at))
210
+ const closesWithPoliteGa = (tokens, topic, at, last, subject) => {
211
+ if (!isPoliteGa(tokens, at) || !isComma(tokens[at + 1]))
212
+ return false;
213
+ if (isSettingTopic(tokens, topic))
214
+ return newTopicAfter(tokens, at + 1, last) || subject > at || finalGaAfter(tokens, at, last);
215
+ if (subjectBetween(tokens, topic, at))
148
216
  return false;
149
217
  if (isActTopic(tokens, topic) || newNameTopicRunsToEnd(tokens, at + 1, last))
150
218
  return true;
151
219
  const comma = tokens.findIndex((token, index) => index > at + 1 && index < last && isComma(token));
152
- const clauseEnd = comma === -1 ? last : comma;
153
- return ownGaSubjectBetween(tokens, at + 1, clauseEnd) && newTopicAfter(tokens, clauseEnd, last);
220
+ const ga = tokens.findIndex((token, index) => index > at + 1 && index < (comma === -1 ? last : comma) && isParticle(token, "が") && headsSubject(tokens, index));
221
+ return ga !== -1 && frameTopicAfter(tokens, ga, last);
154
222
  };
155
223
  /**
156
224
  * 学校は地域の核となることから、…: a closer after a predicate, then a comma, with no subject of its own
@@ -206,8 +274,9 @@ export const topicClauseEnd = (tokens, topic, last, words = NO_WORDS) => {
206
274
  const subject = lastOwnSubject(tokens, last);
207
275
  const closes = (at) => closesSurely(tokens, at, last) ||
208
276
  (closesIfNewSubject(tokens, at) && subject > at) ||
277
+ closesWithCopulaContinuing(tokens, topic, at, last, subject) ||
209
278
  closesFirstClauseWithNoun(tokens, topic, at, last) ||
210
- closesWithPoliteGa(tokens, topic, at, last) ||
279
+ closesWithPoliteGa(tokens, topic, at, last, subject) ||
211
280
  closesAfterPredicate(tokens, topic, at, words) ||
212
281
  closesWithItemMark(tokens, at) ||
213
282
  closesCleftInNounPhrase(tokens, topic, at, last);
@@ -1 +1 @@
1
- {"version":3,"file":"topic-clause.js","sourceRoot":"","sources":["../src/topic-clause.ts"],"names":[],"mappings":"AAIA,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;AAClC,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AACnD,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC;AAC3D,gEAAgE;AAChE,MAAM,gBAAgB,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;AACxD,qGAAqG;AACrG,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;AAE5D;;;GAGG;AACH,MAAM,QAAQ,GAAG,CAAC,KAAwB,EAAW,EAAE,CACrD,KAAK,EAAE,OAAO,KAAK,GAAG,CAAC,CAA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1,7 @@
1
+ /**
2
+ * The offsets in `source` of the quote marks of a quoted value that opens right after a code mark left unclosed in its
3
+ * paragraph (`"my-secure-password" (don't use this)): the writer meant the value as code and dropped the closing mark, so
4
+ * its quotes are the code's, not the prose's. Code marks pair from the left, so with an odd count the last one is unclosed.
5
+ */
6
+ export declare const unclosedCodeQuoteOffsets: (source: string) => ReadonlySet<number>;
7
+ //# sourceMappingURL=unclosed-code-quote.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unclosed-code-quote.d.ts","sourceRoot":"","sources":["../src/unclosed-code-quote.ts"],"names":[],"mappings":"AAmCA;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,GAAI,QAAQ,MAAM,KAAG,WAAW,CAAC,MAAM,CACiB,CAAC"}
@@ -0,0 +1,37 @@
1
+ const CODE_MARK = "`";
2
+ const PARAGRAPH_BREAK = /\n[ \t]*\n/u;
3
+ const PARAGRAPH_BREAKS = new RegExp(PARAGRAPH_BREAK.source, "gu");
4
+ /** The quote that opens right after a code mark, and the mark that closes it. */
5
+ const CLOSER = { '"': '"', "'": "'", "“": "”", "‘": "’" };
6
+ /** The offsets in a paragraph of its single code marks; a run of two or more (``) is a fence or a longer delimiter, not counted. */
7
+ const codeMarksIn = (paragraph) => [...paragraph].flatMap((char, at) => (char === CODE_MARK && paragraph[at - 1] !== CODE_MARK && paragraph[at + 1] !== CODE_MARK ? [at] : []));
8
+ /** The quote's two offsets in a paragraph, when a quote opens right after the code mark at `mark` and closes on the same line. */
9
+ const quoteAfter = (paragraph, mark) => {
10
+ const opening = mark + 1;
11
+ const closer = CLOSER[paragraph[opening] ?? ""];
12
+ if (closer === undefined)
13
+ return [];
14
+ const closing = paragraph.indexOf(closer, opening + 1);
15
+ const lineEnd = paragraph.indexOf("\n", opening);
16
+ return closing === -1 || (lineEnd !== -1 && closing > lineEnd) ? [] : [opening, closing];
17
+ };
18
+ /** Where each paragraph of `source` starts and ends (its break excluded). */
19
+ const paragraphSpans = (source) => {
20
+ const breaks = [...source.matchAll(PARAGRAPH_BREAKS)];
21
+ const starts = [0, ...breaks.map((match) => match.index + match[0].length)];
22
+ return starts.map((start, at) => ({ start, end: breaks[at]?.index ?? source.length }));
23
+ };
24
+ /** The quote offsets in `source` of the one paragraph from start to end. */
25
+ const unclosedIn = (source, start, end) => {
26
+ const paragraph = source.slice(start, end);
27
+ const marks = codeMarksIn(paragraph);
28
+ const last = marks.at(-1);
29
+ return last !== undefined && marks.length % 2 === 1 ? quoteAfter(paragraph, last).map((at) => start + at) : [];
30
+ };
31
+ /**
32
+ * The offsets in `source` of the quote marks of a quoted value that opens right after a code mark left unclosed in its
33
+ * paragraph (`"my-secure-password" (don't use this)): the writer meant the value as code and dropped the closing mark, so
34
+ * its quotes are the code's, not the prose's. Code marks pair from the left, so with an odd count the last one is unclosed.
35
+ */
36
+ export const unclosedCodeQuoteOffsets = (source) => new Set(paragraphSpans(source).flatMap(({ start, end }) => unclosedIn(source, start, end)));
37
+ //# sourceMappingURL=unclosed-code-quote.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unclosed-code-quote.js","sourceRoot":"","sources":["../src/unclosed-code-quote.ts"],"names":[],"mappings":"AAAA,MAAM,SAAS,GAAG,GAAG,CAAC;AACtB,MAAM,eAAe,GAAG,aAAa,CAAC;AACtC,MAAM,gBAAgB,GAAG,IAAI,MAAM,CAAC,eAAe,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;AAClE,iFAAiF;AACjF,MAAM,MAAM,GAAqC,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAE5F,oIAAoI;AACpI,MAAM,WAAW,GAAG,CAAC,SAAiB,EAAY,EAAE,CAClD,CAAC,GAAG,SAAS,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,KAAK,SAAS,IAAI,SAAS,CA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AAK,EAAE,GAAG,EAAE,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AACzF,CAAC,CAAC;AAEF,4EAA4E;AAC5E,MAAM,UAAU,GAAG,CAAC,MAAc,EAAE,KAAa,EAAE,GAAW,EAAY,EAAE;IAC1E,MAAM,SAAS,GAAG,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAC3C,MAAM,KAAK,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC;IACrC,MAAM,IAAI,GAAG,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IAC1B,OAAO,IAAI,KAAK,SAAS,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,KAAK,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACjH,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,MAAc,EAAuB,EAAE,CAC9E,IAAI,GAAG,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chaffjs",
3
- "version": "0.50.0",
3
+ "version": "0.51.0",
4
4
  "description": "Prose validation harness. Finds what is hard to read, and never rewrites it for you.",
5
5
  "keywords": [
6
6
  "chaff",
@@ -89,9 +89,10 @@
89
89
  },
90
90
  "dependencies": {
91
91
  "@anthropic-ai/sdk": "^0.125.0",
92
- "@chaffjs/lang-en": "0.47.0",
93
- "@chaffjs/lang-ja": "0.49.0",
92
+ "@chaffjs/lang-en": "0.48.0",
93
+ "@chaffjs/lang-ja": "0.50.0",
94
94
  "character-entities": "^2.0.2",
95
+ "ignore": "^7.0.5",
95
96
  "mdast-util-from-markdown": "^2.0.3",
96
97
  "mdast-util-frontmatter": "^2.0.1",
97
98
  "mdast-util-gfm-table": "^2.0.0",
@@ -46,8 +46,8 @@ example:
46
46
  She hurried to the room and eased the door open. He needed the report and demanded it.
47
47
 
48
48
  not_flagged:
49
- ja: 短い文書(200 語より短いもの)は測りません。文の途中の頭だけ大文字の -ly の語(July、Kelly)は名前か題の語なので数えません。題の書き方の行の頭の語(Frequently Asked Questions)も、題の語なので数えません。書き手の確かさを言う副詞(probably、apparently、honestly)も、畳む先の動詞が無いので数えません(語の一覧は語彙表 stance-adverb)。
50
- en: Documents under 200 words are not measured. A capitalised -ly word in mid-sentence (July, Kelly) is a name or a word of a title, and is not counted; so is one that opens a line written in title case (Frequently Asked Questions). Nor is an adverb that says how sure or frank the writer is (probably, apparently, honestly), since there is no verb to fold it into (the words are in the stance-adverb lexicon).
49
+ ja: 短い文書(200 語より短いもの)は測りません。文の途中の頭だけ大文字の -ly の語(July、Kelly)は名前か題の語なので数えません。題の書き方の行の頭の語(Frequently Asked Questions)も、題の語なので数えません。書き手の確かさを言う副詞(probably、apparently、honestly)も、畳む先の動詞が無いので数えません(語の一覧は語彙表 stance-adverb)。数の前の語(only 26、nearly 40)と、括弧の頭で呼び名を前置きする語((collectively, the agencies))も、動詞を修飾していないので数えません。
50
+ en: Documents under 200 words are not measured. A capitalised -ly word in mid-sentence (July, Kelly) is a name or a word of a title, and is not counted; so is one that opens a line written in title case (Frequently Asked Questions). Nor is an adverb that says how sure or frank the writer is (probably, apparently, honestly), since there is no verb to fold it into (the words are in the stance-adverb lexicon). Nor is one right before a number (only 26, nearly 40), or one that opens a naming aside in brackets ((collectively, the agencies)), since neither modifies a verb.
51
51
  level_meaning:
52
52
  ja: 1000 語あたり -ly 副詞 {limit} 個まで
53
53
  en: up to {limit} {limit|-ly adverb|-ly adverbs} per 1000 words
@@ -55,8 +55,8 @@ example:
55
55
  Send the form to HR. **The deadline is the end of the month, and late forms will not be accepted, whatever the reason.** The form is in the shared folder. You can print it and fill it in by hand, or type into it on screen and then print it. It needs your manager's signature, so give it to your manager at least three days before the deadline. If you have a question, call the HR desk between nine and five on a weekday.
56
56
 
57
57
  not_flagged:
58
- ja: 200 字より短い節は、1 箇所で割合が跳ねるので測りません。行の頭に置いた短い項目名(**日時:**、**Date:**)は、続く値の名前で強調ではないので数えません。箇条書きの頭の太字の項目名は数えます。
59
- en: Sections under 200 characters are not measured, since one bold span would swing the rate. A short field label opening a line (**Date:**, **Motion:**) names the value after it and is not emphasis, so it is not counted; a bold label opening a list item is.
58
+ ja: 200 字より短い節は、1 箇所で割合が跳ねるので測りません。行の頭に置いた短い項目名(**日時:**、**Date:**)は、続く値の名前で強調ではないので数えません。箇条書きの頭の太字の項目名は数えますが、変更履歴の版の見出しの下で項目の頭に書いたコミットの範囲(* **deps:** …、生成した変更履歴の形)は数えません。
59
+ en: Sections under 200 characters are not measured, since one bold span would swing the rate. A short field label opening a line (**Date:**, **Motion:**) names the value after it and is not emphasis, so it is not counted; a bold label opening a list item is, except a commit scope opening an entry under a changelog's release heading (* **deps:** ..., the format of a generated changelog).
60
60
  level_meaning:
61
61
  ja: 1000 字あたり太字 {limit} 箇所まで
62
62
  en: up to {limit} {limit|bold span|bold spans} per 1000 characters
@@ -94,8 +94,8 @@ example:
94
94
  The monthly bill is lower, and permissions can be split finely.
95
95
 
96
96
  not_flagged:
97
- ja: 札がコードだけの項目(`--flag` の説明のような、設定や引数の一覧)は数えません。段落は、太字が言い切りの文か、句点で閉じた英語の命令の一文(**Pick the quietest room you can.**)のときだけ数え、語だけの太字・コロンで閉じた英語の命令形の札(**Talk to the people:**)・動名詞・問いは数えません。札の後ろにコロンも句点も無い項目(太字が文の頭の語だけのもの)と、その後ろに何も無い項目も数えません。太字の後ろが一項目ずつ段落ほどの長さ(中ほどの項目で英語 40 語、日本語 100 字から)ある箇条書きは、太字の助言をそれぞれ長く説明する手引きの形なので数えません。仕様書(technical/spec)・法務・説明書・論文・文学のジャンルでは見ません。
98
- en: An item whose label is only code (a list of options or fields) is not counted, nor is one whose bold ends in neither a colon nor a full stop (a bold opening word of a sentence), or that has no text after it. A list whose items each run a paragraph after the bold (the middle item 40 words or more, 100 characters in Japanese) is a handbook's tips, the advice in bold and the item explaining it, and is not counted. A paragraph counts only when its bold is a statement, or a whole English instruction closed by its own stop (**Pick the quietest room you can.**), not a term, an imperative run-in head closed by a colon (**Talk to the people:**), a gerund or a question. Specification (technical/spec), legal, documentation, academic and literary genres do not run this rule.
97
+ ja: 札がコードだけの項目(`--flag` の説明のような、設定や引数の一覧)は数えません。段落は、太字が言い切りの文か、句点で閉じた英語の命令の一文(**Pick the quietest room you can.**)のときだけ数え、語だけの太字・コロンで閉じた英語の命令形の札(**Talk to the people:**)・動名詞・問いは数えません。札の後ろにコロンも句点も無い項目(太字が文の頭の語だけのもの)と、その後ろに何も無い項目も数えません。太字の後ろが一項目ずつ段落ほどの長さ(中ほどの項目で英語 40 語、日本語 100 字から)ある箇条書きは、太字の助言をそれぞれ長く説明する手引きの形なので数えません。変更履歴の版の見出しの下で、項目の頭にコミットの範囲を太字で書いたもの(* **deps:** …、生成した変更履歴の形)も数えません。仕様書(technical/spec)・法務・説明書・論文・文学のジャンルでは見ません。
98
+ en: An item whose label is only code (a list of options or fields) is not counted, nor is one whose bold ends in neither a colon nor a full stop (a bold opening word of a sentence), or that has no text after it. A list whose items each run a paragraph after the bold (the middle item 40 words or more, 100 characters in Japanese) is a handbook's tips, the advice in bold and the item explaining it, and is not counted. A paragraph counts only when its bold is a statement, or a whole English instruction closed by its own stop (**Pick the quietest room you can.**), not a term, an imperative run-in head closed by a colon (**Talk to the people:**), a gerund or a question. Entries under a changelog's release headings that open with their commit scope in bold (* **deps:** ..., the format of a generated changelog) are not counted. Specification (technical/spec), legal, documentation, academic and literary genres do not run this rule.
99
99
  level_meaning:
100
100
  ja: 太字の札で始まる項目が {limit} 個あれば指摘(太字の一文で始まる項目は min_leads、言い切りの太字で始まる段落は min_clause_paragraphs の数から)
101
101
  en: reported once {limit} {limit|list item opens|list items open} with a bold label (items opening with a bold lead sentence from min_leads, paragraphs opening with a bold statement from min_clause_paragraphs)
@@ -44,8 +44,8 @@ example:
44
44
  会議(定例)は月曜です。報告(月次)は金曜です。資料(最新版)を配ります。
45
45
 
46
46
  not_flagged:
47
- ja: 日本語の字に接する括弧だけを数え、丸括弧と角括弧は別々に比べます。Markdown のリンクは数えず、注の番号([1]、[^1])は注の番号どうしで、行の頭の番号や英字の札((1)、[Web])と、それを指す番号(4(2)で)は、それどうしで、本文が引く注の番号(注(24)で)は注の番号の引用どうしで比べます。英語の中の括弧(f(x)、API(s))、式の括弧(賃金 × (1 - 時間 ÷ 月平均))、コード、鉤括弧で引いたものの中、行の頭のリンクで引いた外のページの題名(- [題名 (版)](https://…))、文書が自分の見出しを文献として引いた所(著者. 題名(略称)の動向. 誌名.)は数えません。
48
- en: Only brackets touching Japanese text, parentheses and square brackets compared apart; Markdown links are not counted, and note markers ([1], [^1]) are compared only with each other, and so are the labels opening a line ((1), [Web]) and an item's address in the prose (4(2)で), and a note's number cited in the prose (注(24)で) with the other cited note numbers. Brackets in English text (f(x)), brackets in a formula (賃金 × (1 - 時間 ÷ 月平均)), code, 「」 quotations, the title of an outside page quoted by a link at a line's head (- [Title (draft)](https://…)) and the document's own heading quoted in a line of other words (a self-citation) are not counted.
47
+ ja: 日本語の字に接する括弧だけを数え、丸括弧と角括弧は別々に比べます。Markdown のリンクは数えず、注の番号([1]、[^1])は注の番号どうしで、行の頭の番号や英字の札((1)、[Web])と、一行に続けた文書で文の後ろから始まる番号やその続きの番号(。(2)目標、まで(3)価額)、それを指す番号(4(2)で、第3条(a)(1)および(2))は、それどうしで、本文が引く注の番号(注(24)で)は注の番号の引用どうしで比べます。英語の中の括弧(f(x)、API(s))、式の括弧(賃金 × (1 - 時間 ÷ 月平均))、コード、鉤括弧で引いたものの中、行の頭のリンクで引いた外のページの題名(- [題名 (版)](https://…))、文書が自分の見出しを文献として引いた所(著者. 題名(略称)の動向. 誌名.)は数えません。
48
+ en: Only brackets touching Japanese text, parentheses and square brackets compared apart; Markdown links are not counted, and note markers ([1], [^1]) are compared only with each other, and so are the labels opening a line ((1), [Web]), the item numbers that open a sentence or continue their run in a document joined into one line (。(2)目標, まで(3)価額), and an item's address in the prose (4(2)で, 第3条(a)(1)および(2)), and a note's number cited in the prose (注(24)で) with the other cited note numbers. Brackets in English text (f(x)), brackets in a formula (賃金 × (1 - 時間 ÷ 月平均)), code, 「」 quotations, the title of an outside page quoted by a link at a line's head (- [Title (draft)](https://…)) and the document's own heading quoted in a line of other words (a self-citation) are not counted.
49
49
  level_meaning:
50
50
  ja: 少ないほうの書き方が {limit} 箇所あれば指摘
51
51
  en: reported once the less common way appears {limit} {limit|time|times}
@@ -61,5 +61,5 @@ example:
61
61
  Gather the tools. See [Setup](#setup) for more.
62
62
 
63
63
  not_flagged:
64
- ja: 見出しの名前は字と数字だけで比べ、大文字小文字や記号の違いは問いません。「[1][2]」のような文献の番号、「A[i][j]」のような添字、「[Excel:28KB][PDF:47KB]」のようなファイルの種類と大きさの札、使われていない定義、サイトが定義を足す名前を省いた画像の参照(「![完了][]」の印)も指しません。
65
- en: Heading anchors are compared on letters and digits only, ignoring case and punctuation. Citation numbers ("[1][2]"), subscripts ("A[i][j]"), file-type and size labels ("[Excel:28KB][PDF:47KB]"), definitions no link uses and an image reference with its label left out ("![Complete][]", a status icon the site defines) are not reported.
64
+ ja: 見出しの名前は字と数字だけで比べ、大文字小文字や記号の違いは問いません。「[1][2]」のような文献の番号、「A[i][j]」のような添字、「[Excel:28KB][PDF:47KB]」のようなファイルの種類と大きさの札、使われていない定義、サイトが定義を足す名前を省いた画像の参照(「![完了][]」の印)も指しません。MDN の {{Compat}} や {{Specifications}} を置いた節を、MDN が付ける名前(#browser_compatibility、#specifications)で指すリンクも、見出しを訳した文書で指しません。
65
+ en: Heading anchors are compared on letters and digits only, ignoring case and punctuation. Citation numbers ("[1][2]"), subscripts ("A[i][j]"), file-type and size labels ("[Excel:28KB][PDF:47KB]"), definitions no link uses and an image reference with its label left out ("![Complete][]", a status icon the site defines) are not reported. Nor is a link to the name MDN gives the section its {{Compat}} or {{Specifications}} macro builds (#browser_compatibility, #specifications), in a page whose headings are translated.
@@ -12,7 +12,7 @@ name:
12
12
 
13
13
  why:
14
14
  ja: 「前年同月の1,000社から20%増えて1,200社」のように、もとの値・今の値・増減率を一つの文に書くと、読み手は率を確かめずに信じます。数字を一つだけ更新したとき、率だけを去年の文書から写したときに食い違います。一つの文に、もとの値(「から」「に比べて」「前年の」の付いた値)、同じ単位の今の値、向きの語(増加、減少)の付いた百分率が一つずつあるとき、二つの値から率を計算して比べます。率のそばにもとの値が無くても、「昨年の100万円から今年は150万円になり、前年比50%の増加」「2025年度は100万円、2026年度は150万円で」のように二つの値が並んですぐ後に率が続くなら読みます(年が書いてあれば早い年の値がもとの値)。今の値は率の後ろでも、「前年同期の2,400百万円から10.0%増加し、2,640百万円となりました」のように動いた先と分かれば読みます。値は書いた桁までの丸めを認めます(12億円は11.5億円から12.5億円のどれか)。表も読みます。見出しの語で前期の列(前期、前年同期)、当期の列(当期、当第2四半期)、増減率の列(増減率、前年同期比)が一つずつ分かる表(見出しの語が無くても、二つの列の見出しに年が一つずつ書いてあれば早い年の列が前期)では、行ごとに二つの値から率を計算し、書いた率と比べます。△・▲・−の付いた率は減少です。「増減」の列は、升に % があるときだけ率と読みます。
15
- en: When one sentence gives the earlier value, the current one and the rate of change ("1,200 companies, up 20% from 1,000"), readers trust the rate without checking it. It goes wrong when one figure is updated and the others are not, or when the rate is copied from last year's text. When a sentence has one earlier value (marked by "from" or "compared with"), one current value in the same unit, and one percentage with a word of direction (up, decline), chaff computes the rate from the two values and compares. The two values may also stand together right before the rate ("rose from $1.0 million last year to $1.5 million, an increase of 50%", "$1.0 million in 2025 and $1.5 million in 2026, up 50%"; with years, the earlier year's value is the earlier one). The rate may also come first, with the value reached and then the earlier one ("rose 10.0% to $2,640 million from $2,400 million"). Each value may be rounded to its last written digit ($12 million is anything from $11.5 million to $12.5 million). Tables are read too. When the headings name one column of the earlier value (Prior year), one of the current value (Current year) and one of the rate (YoY, Change (%)), or two columns are each headed by one year (FY2025, FY2026; the earlier year's column holds the earlier value), each row's rate is computed from its two values and compared. A rate marked -, −, ▲ or △ is a decrease. A column headed only "Change" or "Growth" is read as a rate only where its cells carry %.
15
+ en: When one sentence gives the earlier value, the current one and the rate of change ("1,200 companies, up 20% from 1,000"), readers trust the rate without checking it. It goes wrong when one figure is updated and the others are not, or when the rate is copied from last year's text. When a sentence has one earlier value (marked by "from" or "compared with"), one current value in the same unit, and one percentage with a word of direction (up, decline), chaff computes the rate from the two values and compares. Right after "up 20% from" or "down 20% from", the earlier value may be written without its noun, and it is read in the unit of the value just before the rate ("1,300 companies, up 30% from 1,000", "Visits reached 186,400, up 22% from 152,800 the year before"). The two values may also stand together right before the rate ("rose from $1.0 million last year to $1.5 million, an increase of 50%", "$1.0 million in 2025 and $1.5 million in 2026, up 50%"; with years, the earlier year's value is the earlier one). The rate may also come first, with the value reached and then the earlier one ("rose 10.0% to $2,640 million from $2,400 million"). Each value may be rounded to its last written digit ($12 million is anything from $11.5 million to $12.5 million). Tables are read too. When the headings name one column of the earlier value (Prior year), one of the current value (Current year) and one of the rate (YoY, Change (%)), or two columns are each headed by one year (FY2025, FY2026; the earlier year's column holds the earlier value), each row's rate is computed from its two values and compared. A rate marked -, −, ▲ or △ is a decrease. A column headed only "Change" or "Growth" is read as a rate only where its cells carry %.
16
16
 
17
17
  message:
18
18
  ja: 「{rate}%」と書いていますが、二つの値からは {computed}% です
@@ -42,4 +42,4 @@ example:
42
42
 
43
43
  not_flagged:
44
44
  ja: 向きの語の付いた率が二つある文、もとの値が「から」「に比べて」や年で名指されていない文、二つの値と率のあいだで主語が変わる文(「…に増え、利益は20%増えた」)、二つの値のあいだで主語が変わる文("$1,000 in 2025 and costs were $1,500 in 2026")、同じ単位の今の値が一つでない文、向きの語が率のそばに無い文は比べません。「前年比20%増」のように値が一つしか無いもの、ポイントの差、倍は見ません。丸めで届く範囲の率は言いません。表では、列の役割が見出しから一つずつ決まらない表、前期と当期の列の見出しが違う単位を書いた表(千円と百万円)、値や率の升が数でない行(—、1.0pt、0.5ポイント、(5.0)%)、値が負か百分率の行、二つの値の単位の書き方が違う行、前期の値が0の行は比べません。
45
- en: 'A sentence with two rates that each have a word of direction, with no value marked as the earlier one (by a word or a year), with another subject between the values and the rate ("…, and costs rose 20%") or between the two values ("$1,000 in 2025 and costs were $1,500 in 2026"), with no single current value in the same unit, or with no word of direction beside the rate is not compared. A change given with one value ("up 20% year on year"), percentage points and "times" are not read. A rate the rounding of the values can reach is not reported. In a table, nothing is compared when the headings do not name one column for each part or name different units for the two periods (thousand yen, million yen); nor is a row whose value or rate cell is not a number (—, 1.0pt, (5.0)% in brackets), whose values are negative or percentages, whose two values are written with different units, or whose earlier value is zero.'
45
+ en: 'A sentence with two rates that each have a word of direction, with no value marked as the earlier one (by a word or a year), with another subject between the values and the rate ("…, and costs rose 20%") or between the two values ("$1,000 in 2025 and costs were $1,500 in 2026"), with no single current value in the same unit, or with no word of direction beside the rate is not compared. An earlier value with a noun of its own ("from 1,000 dollars"), a year ("from 2019") or a word of magnitude ("from 1.0 million") is not read in the unit of the value before the rate. A change given with one value ("up 20% year on year"), percentage points and "times" are not read. A rate the rounding of the values can reach is not reported. In a table, nothing is compared when the headings do not name one column for each part or name different units for the two periods (thousand yen, million yen); nor is a row whose value or rate cell is not a number (—, 1.0pt, (5.0)% in brackets), whose values are negative or percentages, whose two values are written with different units, or whose earlier value is zero.'
@@ -121,8 +121,8 @@ example:
121
121
  ```
122
122
 
123
123
  not_flagged:
124
- ja: 字下げだけのコードブロック、引用の中のブロック、書式の型だけを書いたブロック(<MAJOR>.<MINOR>.<PATCH>)、前置きが出力だと言うブロック(「次のように表示されます:」の後ろ)は見ません。言語名の無いブロックが {limit} 個を超えるとき、または言語名のあるブロックより多いときは、使い分けとみなして指しません。
125
- en: Indented code blocks, blocks inside a quotation, blocks that hold only a format template (<MAJOR>.<MINOR>.<PATCH>), and a block whose lead-in says it is output (after "we'd expect to see:") are not read. When more than {limit} blocks lack a language, or they are as many as those with one, it is taken as a choice and not reported.
124
+ ja: 字下げだけのコードブロック、引用の中のブロック、書式の型だけを書いたブロック(<MAJOR>.<MINOR>.<PATCH>)、前置きが出力やエラーだと言うブロック(「次のように表示されます:」「次のようなエラーが出ます:」の後ろ)、行の頭に結果の記号(✖、⚠)があり、プロンプト($)で始まる行の無い出力だけのブロックは見ません。言語名の無いブロックが {limit} 個を超えるとき、または言語名のあるブロックより多いときは、使い分けとみなして指しません。
125
+ en: Indented code blocks, blocks inside a quotation, blocks that hold only a format template (<MAJOR>.<MINOR>.<PATCH>), and a block whose lead-in says it is output or an error (after "we'd expect to see:" or "fails with an error like the following:"), and a block of output alone, with a line opening with a status mark (✖, ⚠) and none with a shell prompt ($), are not read. When more than {limit} blocks lack a language, or they are as many as those with one, it is taken as a choice and not reported.
126
126
  level_meaning:
127
127
  ja: 言語名の無いブロックが {limit} 個以下で、ある方より少ないとき指摘
128
128
  en: reported when {limit} or fewer blocks lack a language and they are fewer than those with one
@@ -42,8 +42,8 @@ example:
42
42
  after: We rewrote the parser. The new engine is twice as fast as version 2.
43
43
 
44
44
  not_flagged:
45
- ja: 同じ文か直前の文に比べる相手(従来、以前、前回、昨年、「〜より」「〜に比べて」「〜一方」)がある比較、「より多くの」「より詳しく」「さらに一般に」のような決まった言い方、程度を言う語が続かない「さらに」(さらに、〜します)、条件の下の比較(入れるとより良くなる)、今より良くする目当て(より良い社会、より良いものにする、より簡単にする)、願いや目的の中の比較(より広く進めたい、より円滑にするためには)、目当ての語で終わる複合語(より良い高齢社会)、比べた形で終わる決まった言い方(英語の or to be more precise, …)、二つのコードの例のすぐ後ろの比較(例を書き直した後の This is much better!)、比べた語より前に原因を書いた比較(これにより、手続きがより簡単になった。記録を残すことにより、点検がより確実になる)、「場合」の下の比較(負担の大きい作業がある場合は、より軽い作業に替える)、「の実現」が続く比較(より良い多文化共生の実現)、層の並びの中の位置(より低い層で動作する)、何かを取り除いた数との比較(物価の影響を取り除いた指数で、生活水準をより的確に把握できる)は指しません。
46
- en: 'A comparison whose sentence or the one before names a baseline ("than", "previous", "before", "compared", "whereas"), one that goes past what was just named ("even better", "still faster"), a comparative before a noun ("better results", read only in Japanese), a comparative that does not close its clause ("runs faster on large files"), one under a condition or a hypothesis ("if it looks better", "would be easier"), an aim to make something better than it is now (より良い社会, より良い高齢社会, より良いものにする, より簡単にする in Japanese), a comparison inside a wish or a purpose (より広く進めたい, より円滑にするためには), a set phrase ending in a comparative ("or to be more precise, it created"), a comparison right after two code examples ("This is much better!" after a rewritten function, compared with the first), a comparison set against the clause before it ("Log lines work, but a profiler is better"), one in a sentence opening on a change or a topic ("As the service splits, the team can move faster", "By caching the index, …", "As to the second clause, …"), a change from now ("to make releases more predictable", "we can do better"), a maxim ("simpler is better"), another kind of a thing the sentence before names ("Plain backgrounds are fine. A blurred background looks better."), a comparison with what comes before ("the trail that follows is harder"), and in Japanese a place in a stack of layers (より低い層で動作する) and a figure with something taken out (物価の影響を取り除いた指数で、より的確に把握できる, against the figure before) are not reported.'
45
+ ja: 同じ文か直前の文に比べる相手(従来、以前、前回、昨年、「〜より」「〜に比べて」「〜一方」)がある比較、「より多くの」「より詳しく」「さらに一般に」のような決まった言い方、程度を言う語が続かない「さらに」(さらに、〜します)、条件の下の比較(入れるとより良くなる)、今より良くする目当て(より良い社会、より良いものにする、より簡単にする)、願いや目的の中の比較(より広く進めたい、より円滑にするためには)、目当ての語で終わる複合語(より良い高齢社会)、比べた形で終わる決まった言い方(英語の or to be more precise, …)、二つのコードの例のすぐ後ろの比較(例を書き直した後の This is much better!)、比べた語より前に原因を書いた比較(これにより、手続きがより簡単になった。記録を残すことにより、点検がより確実になる)、「場合」の下の比較(負担の大きい作業がある場合は、より軽い作業に替える)、「の実現」が続く比較(より良い多文化共生の実現)、層の並びの中の位置(より低い層で動作する)、何かを取り除いた数との比較(物価の影響を取り除いた指数で、生活水準をより的確に把握できる)、ほかの手立てがあると言う比較(より安全な書き方があるため、while文は使う場面が限られる)、「さらに新たな」(加えて別の)、「〜とよい」の中の比較(より明確に示していただけるとよい)、前の振る舞いを書いたコードの例のすぐ後ろの比較(「Used to error」と書いた例の後の This behavior is more desirable)は指しません。
46
+ en: 'A comparison whose sentence or the one before names a baseline ("than", "previous", "before", "compared", "whereas"), one that goes past what was just named ("even better", "still faster"), a comparative before a noun ("better results", read only in Japanese), a comparative that does not close its clause ("runs faster on large files"), one under a condition or a hypothesis ("if it looks better", "would be easier"), an aim to make something better than it is now (より良い社会, より良い高齢社会, より良いものにする, より簡単にする in Japanese), a comparison inside a wish or a purpose (より広く進めたい, より円滑にするためには), a set phrase ending in a comparative ("or to be more precise, it created"), a comparison right after two code examples ("This is much better!" after a rewritten function, compared with the first), a comparison set against the clause before it ("Log lines work, but a profiler is better"), one in a sentence opening on a change or a topic ("As the service splits, the team can move faster", "By caching the index, …", "As to the second clause, …"), a change from now ("to make releases more predictable", "we can do better"), a maxim ("simpler is better"), another kind of a thing the sentence before names ("Plain backgrounds are fine. A blurred background looks better."), a comparison with what comes before ("the trail that follows is harder"), a comparison right after a code example whose comment names the behaviour before ("This behavior is more desirable" after "// Used to error, now doesn''t."), and in Japanese a place in a stack of layers (より低い層で動作する), a figure with something taken out (物価の影響を取り除いた指数で、より的確に把握できる, against the figure before), another way that exists beside the one discussed (より安全な書き方があるため、while文は使う場面が限られる), さらに新たな (one more), and a comparison inside "it would be good if" (より明確に示していただけるとよい) are not reported.'
47
47
 
48
48
  rewrite:
49
49
  depth: light
@@ -3,7 +3,7 @@ layer: L2
3
3
  status: stable
4
4
  how_to_find: contraction-mix
5
5
  word_list: contraction
6
- extra_word_lists: [notice-phrase, contraction-term, warning-label]
6
+ extra_word_lists: [notice-phrase, contraction-term, summary-label, warning-label]
7
7
  uses: [pos]
8
8
  languages: [en]
9
9
  severity: info
@@ -44,8 +44,8 @@ example:
44
44
  We don't store your password. We don't read your messages. We don't share your data. We don't sell your address.
45
45
 
46
46
  not_flagged:
47
- ja: 短縮形を使うかどうかは決めません。比べるのは同じ語の 2 つの形(「you're」と「you are」)だけで、別の語どうしは比べません。「you're」と書き、否定は「do not」と書く文書は揃っています。同じ語の 2 つの形が同じ回数なら、少ないほうが無いので指しません。引用符で挙げた短い語句("Do Not Disturb"、‘we’re going to x’)と引用の中の引用は、名前か人の言葉なので数えません。それより長い引用(引いた標語、回答の文言、人の言葉)の中の形は、書き手が変えられないので、数えますが指しません。一語だけ強調した語(does **not**)は強勢のために選んだ形、同じ語の 2 つの形を並べた文(Use cannot, instead of can’t.)と語を読点で長く並べた一覧(検索語の一覧)は語を挙げているだけなので、どちらも数えません。掲載元が付けた断り書きの段落(does not constitute or imply its endorsement…)と、短縮形について述べる文(Avoid negative contractions like can’t.)も数えません。警告の中の長い形(「Warning」で始まる段落や、題が Warning の札の中の Do not run this…)は強めるために選んだ形なので、数えますが指しません。
48
- en: Whether to use contractions is not decided. Only the two forms of the same word are compared ("you're" with "you are"), never different words, so a document that writes "you're" but keeps "do not" in full is consistent. When both forms of a word appear as often, there is no minority and nothing is pointed at. A short phrase in quotation marks ("Do Not Disturb", ‘we’re going to x’) and a quotation inside another quotation are a name or someone else's words and are not counted. A form inside a longer quotation (a quoted slogan, a survey answer, someone's words) is counted but never pointed at, since the writer cannot change a quotation. A word emphasised alone (does **not**) is chosen for stress, and a sentence naming both forms of a word (Use cannot, instead of can’t.) or a long comma-separated list of terms (search keywords) only names the words; none of them is counted. Nor are a disclaimer paragraph the publisher appends (does not constitute or imply its endorsement…) and a sentence about contractions (Avoid negative contractions like can't.). A full form in a warning (Do not run this… in a paragraph opening with Warning, or in a box titled Warning) is chosen for stress, so it is counted but never pointed at.
47
+ ja: 短縮形を使うかどうかは決めません。比べるのは同じ語の 2 つの形(「you're」と「you are」)だけで、別の語どうしは比べません。「you're」と書き、否定は「do not」と書く文書は揃っています。同じ語の 2 つの形が同じ回数なら、少ないほうが無いので指しません。引用符で挙げた短い語句("Do Not Disturb"、‘we’re going to x’)と引用の中の引用は、名前か人の言葉なので数えません。それより長い引用(引いた標語、回答の文言、人の言葉)の中の形は、書き手が変えられないので、数えますが指しません。一語だけ強調した語(does **not**)は強勢のために選んだ形、同じ語の 2 つの形を並べた文(Use cannot, instead of can’t.)と語を読点で長く並べた一覧(検索語の一覧)は語を挙げているだけなので、どちらも数えません。掲載元が付けた断り書きの段落(does not constitute or imply its endorsement…)と、短縮形について述べる文(Avoid negative contractions like can’t.)も数えません。警告の中の長い形(「Warning」で始まる段落や、題が Warning の札の中の Do not run this…)は強めるために選んだ形なので、数えますが指しません。条項の横に平易な要約を添えた文書(「Short version:」のような札で始まる段落)では、要約と最初の見出しより前の導入は条項と別に選んだ文体なので、数えますが指しません。
48
+ en: Whether to use contractions is not decided. Only the two forms of the same word are compared ("you're" with "you are"), never different words, so a document that writes "you're" but keeps "do not" in full is consistent. When both forms of a word appear as often, there is no minority and nothing is pointed at. A short phrase in quotation marks ("Do Not Disturb", ‘we’re going to x’) and a quotation inside another quotation are a name or someone else's words and are not counted. A form inside a longer quotation (a quoted slogan, a survey answer, someone's words) is counted but never pointed at, since the writer cannot change a quotation. A word emphasised alone (does **not**) is chosen for stress, and a sentence naming both forms of a word (Use cannot, instead of can’t.) or a long comma-separated list of terms (search keywords) only names the words; none of them is counted. Nor are a disclaimer paragraph the publisher appends (does not constitute or imply its endorsement…) and a sentence about contractions (Avoid negative contractions like can't.). A full form in a warning (Do not run this… in a paragraph opening with Warning, or in a box titled Warning) is chosen for stress, so it is counted but never pointed at. In a document that sums its clauses up in plain language beside them (paragraphs opening with a label such as Short version:), the summaries and the introduction before the first heading are a register chosen apart from the clauses, so they are counted but never pointed at.
49
49
  level_meaning:
50
50
  ja: 同じ語の少ないほうの書き方が {limit} 箇所以下のとき指摘
51
51
  en: reported when the minority form of a word appears {limit} {limit|time|times} or fewer
@@ -13,8 +13,8 @@ name:
13
13
  en: One term defined differently in different files
14
14
 
15
15
  why:
16
- ja: 契約書の束や説明書では、同じ語をいくつものファイルで定義することがあります(本契約と別紙、用語集と各ページ)。後から一方だけを直すと、ファイルによって定義が食い違い、どちらの意味で読めばよいか分からなくなります。一度に渡したファイルどうしで、同じ語の定義(「『X』とは、…をいう」"X" means …)の、語の後ろの言葉を比べ、多くのファイルと違う言葉で定義したファイルを指します。全角半角、空白、両端の句読点の違いは問いません。言葉が違っても意味が同じかは機械では決まらないので、確かめる場所を示すだけです。
17
- en: 'A bundle of contracts or a manual often defines the same term in several files (the agreement and its schedule, the glossary and the pages). When one is changed later and the other is not, the files disagree on what the term means. Across the files given together, the words after the term in each definition ("X" means …, 「X」とは、…をいう) are compared, and a file that defines the term in other words than most files do is pointed out. Width, spaces and the punctuation at either end do not count. Whether two wordings mean the same is not something a machine can decide, so chaff only shows where to look.'
16
+ ja: 契約書の束や説明書では、同じ語をいくつものファイルで定義することがあります(本契約と別紙、用語集と各ページ)。後から一方だけを直すと、ファイルによって定義が食い違い、どちらの意味で読めばよいか分からなくなります。一度に渡したファイルどうしで、同じ語の定義(「『X』とは、…をいう」"X" means …)の、語の後ろの言葉を比べ、多くのファイルと違う言葉で定義したファイルを指します。いちばん多くのファイルが使う言葉が二つ以上あって少ないほうが決まらないときは、どの言葉で定義したファイルも指します。全角半角、空白、両端の句読点の違いは問いません。言葉が違っても意味が同じかは機械では決まらないので、確かめる場所を示すだけです。
17
+ en: 'A bundle of contracts or a manual often defines the same term in several files (the agreement and its schedule, the glossary and the pages). When one is changed later and the other is not, the files disagree on what the term means. Across the files given together, the words after the term in each definition ("X" means …, 「X」とは、…をいう) are compared, and a file that defines the term in other words than most files do is pointed out. When two wordings share the most files, neither is fewer, and the files of every wording are pointed out. Width, spaces and the punctuation at either end do not count. Whether two wordings mean the same is not something a machine can decide, so chaff only shows where to look.'
18
18
 
19
19
  message:
20
20
  ja: 「{term}」を、一緒に見たほかの {count} ファイルと違う言葉で定義しています(例:{example})
@@ -12,8 +12,8 @@ name:
12
12
  en: One item given different values in different files
13
13
 
14
14
  why:
15
- ja: 説明書や文書の束では、料金・版・締切・問い合わせ先のような同じ項目を、いくつものページに書きます。値を直したときに一つのページだけ直し忘れると、ページによって値が食い違い、読み手はどれを信じればよいか分かりません。一度に渡したファイルどうしで、「項目:値」「項目は値です」と書いた所と表の升を読み、同じ項目名(全角半角、大文字小文字は揃えて比べます)に、同じ単位で違う値を書いたファイルを指します。メールアドレスと、三つ以上に区切った版(2.4.1、v3)も値として読みます。どちらが正しいかは決めず、その値を書いたファイルの少ないほうを指します。
16
- en: 'A manual or a bundle of documents repeats the same items, such as a fee, a version, a deadline or a contact address, on page after page. When a value changes and one page is missed, the pages disagree and the reader cannot tell which to trust. Across the files given together, values written as "Item: value" or "The item is value", and table cells, are read; a file that gives the same item name (case and width aside) a different value in the same unit is pointed out. Email addresses and versions of three parts or more (2.4.1, v3) are read as values too. chaff does not decide which is right; it points at the value fewer files give.'
15
+ ja: 説明書や文書の束では、料金・版・締切・問い合わせ先のような同じ項目を、いくつものページに書きます。値を直したときに一つのページだけ直し忘れると、ページによって値が食い違い、読み手はどれを信じればよいか分かりません。一度に渡したファイルどうしで、「項目:値」「項目は値です」と書いた所と表の升を読み、同じ項目名(全角半角、大文字小文字は揃えて比べます)に、同じ単位で違う値を書いたファイルを指します。メールアドレスと、三つ以上に区切った版(2.4.1、v3)も値として読みます。どちらが正しいかは決めず、その値を書いたファイルの少ないほうを指します。二つの値を書いたファイルの数が同じなら、少ないほうが無いので両方のファイルを指します。
16
+ en: 'A manual or a bundle of documents repeats the same items, such as a fee, a version, a deadline or a contact address, on page after page. When a value changes and one page is missed, the pages disagree and the reader cannot tell which to trust. Across the files given together, values written as "Item: value" or "The item is value", and table cells, are read; a file that gives the same item name (case and width aside) a different value in the same unit is pointed out. Email addresses and versions of three parts or more (2.4.1, v3) are read as values too. chaff does not decide which is right; it points at the value fewer files give. When as many files give one value as the other, neither is fewer, and the files of both values are pointed out.'
17
17
 
18
18
  message:
19
19
  ja: 「{label}」が {value} と書かれていますが、一緒に見たほかの {count} ファイルでは {other} です(例:{example})
@@ -13,8 +13,8 @@ name:
13
13
  en: A word spelled differently in different files
14
14
 
15
15
  why:
16
- ja: 説明書や文書の束では、一つのファイルの中ではそろっていても、ファイルどうしで書き方が分かれることがあります(あるページは「サーバ」、ほかのページは「サーバー」)。書いた人や書いた時期が違うと起きます。読み手は別のものかと迷い、サイトの検索でも片方を取りこぼします。一度に渡したファイルどうしを比べ、同じ語をファイルによって違う書き方で書いている所を指します。見る書き方は三つです。カタカナ語の語末の「ー」(サーバ/サーバー)、イギリスとアメリカの綴り(colour/color)、英字の語のハイフンの有無(e-mail/email)。どちらが正しいかは決めず、使うファイルの少ないほうを指します。
17
- en: 'In a manual or a bundle of documents, each file can be consistent on its own while the files disagree with each other: one page writes "e-mail", the others "email". It happens when different people write at different times. A reader wonders whether they are different things, and a site search misses one. The files given together are compared, and a word written one way in some files and another way in the rest is pointed out. Three kinds of spelling are compared: the final ー of a katakana word (サーバ / サーバー), British and American spellings (colour / color), and a Latin word with and without a hyphen (e-mail / email). chaff does not pick a side; it points at the way fewer files use.'
16
+ ja: 説明書や文書の束では、一つのファイルの中ではそろっていても、ファイルどうしで書き方が分かれることがあります(あるページは「サーバ」、ほかのページは「サーバー」)。書いた人や書いた時期が違うと起きます。読み手は別のものかと迷い、サイトの検索でも片方を取りこぼします。一度に渡したファイルどうしを比べ、同じ語をファイルによって違う書き方で書いている所を指します。見る書き方は三つです。カタカナ語の語末の「ー」(サーバ/サーバー)、イギリスとアメリカの綴り(colour/color)、英字の語のハイフンの有無(e-mail/email)。チームが chaff.yaml の consistent に組を並べていれば(顧客/お客様)、その組の語も比べます。どちらが正しいかは決めず、使うファイルの少ないほうを指します。いちばん多く使う書き方が二つ以上あって少ないほうが決まらないときは、どの書き方のファイルも指します。
17
+ en: 'In a manual or a bundle of documents, each file can be consistent on its own while the files disagree with each other: one page writes "e-mail", the others "email". It happens when different people write at different times. A reader wonders whether they are different things, and a site search misses one. The files given together are compared, and a word written one way in some files and another way in the rest is pointed out. Three kinds of spelling are compared: the final ー of a katakana word (サーバ / サーバー), British and American spellings (colour / color), and a Latin word with and without a hyphen (e-mail / email). When the team lists groups under consistent in chaff.yaml (log in / sign in), the words of each group are compared too. chaff does not pick a side; it points at the way fewer files use. When two ways share the most files, neither is fewer, and the files of every way are pointed out.'
18
18
 
19
19
  message:
20
20
  ja: 「{matched}」と書いていますが、一緒に見たほかの {count} ファイルでは「{preferred}」です(例:{other})
@@ -71,5 +71,5 @@ example:
71
71
  Reply to the email by Friday.
72
72
 
73
73
  not_flagged:
74
- ja: 一つのファイルの中で両方の書き方を使っている語は、そのファイルを数えません(ファイルの中の揺れは katakana-long-vowel などが見ます)。違う語どうし(サーバーとブラウザ)は比べません。語末の「ー」の前が 1 音の語(カー)、辞書が固有名詞と知っている語、chaff.yaml の names に並べた名前、引用符の中の英語の綴り、文の途中で大文字で始まる英語の名前も見ません。ハイフンは、一緒に見たファイルのどれかがハイフンで書いた語だけを比べます。
75
- en: A file that writes a word both ways is not counted for that word (the per-file rules, such as katakana-long-vowel, point at that). Different words are not compared (サーバー and ブラウザ). Katakana words of one mora before the final ー (カー), words the dictionary knows as proper nouns, the names under names in chaff.yaml, spellings inside quotation marks, and capitalized names in mid-sentence are left alone. For hyphens, only words that one of the files writes with a hyphen are compared.
74
+ ja: 一つのファイルの中で両方の書き方を使っている語は、そのファイルを数えません(ファイルの中の揺れは katakana-long-vowel や term-consistency などが見ます)。違う語どうし(サーバーとブラウザ)は比べません。語末の「ー」の前が 1 音の語(カー)、辞書が固有名詞と知っている語、chaff.yaml の names に並べた名前、引用符の中の英語の綴り、文の途中で大文字で始まる英語の名前も見ません。ハイフンは、一緒に見たファイルのどれかがハイフンで書いた語だけを比べます。
75
+ en: A file that writes a word both ways is not counted for that word (the per-file rules, such as katakana-long-vowel and term-consistency, point at that). Different words are not compared (サーバー and ブラウザ). Katakana words of one mora before the final ー (カー), words the dictionary knows as proper nouns, the names under names in chaff.yaml, spellings inside quotation marks, and capitalized names in mid-sentence are left alone. For hyphens, only words that one of the files writes with a hyphen are compared.
@@ -53,8 +53,8 @@ example:
53
53
  Registration opens on October 2, 2026 and closes on October 9, 2026. Results are sent on October 16, 2026.
54
54
 
55
55
  not_flagged:
56
- ja: 年だけ、月日だけの日付、URL や版の中の数(/2026/10/02/、1.2026.10)、コードの中の日付は比べません。文献一覧と番号の付いた注の並びの中の日付(引いた文書の題の中の日付、参照日)も比べません。ページの更新日の刻印([更新日 2021年10月1日])と、題のすぐ下の日付だけの行は、本文とは別に比べます。少ないほうが全体の三分の一を超える文書は、二つの書き方を使い分けている(表は 2026-10-02、本文は 2026年10月2日)と読んで指しません。いちばん多い書き方が同じ数で並ぶときも指しません。
57
- en: Year-only and month-day dates, numbers inside URLs and versions (/2026/10/02/, 1.2026.10), and dates in code are not compared, nor are dates in a reference list or a run of numbered notes (dates in cited titles, access dates). A page's update stamp ([Updated 2021-10-01]) and a line holding only a date right under the title are compared apart from the body. When the minority is more than a third of the dates, the document is taken to use two styles on purpose (ISO in tables, long dates in prose) and nothing is reported, nor when the two commonest styles are tied.
56
+ ja: 年だけ、月日だけの日付、URL や版の中の数(/2026/10/02/、1.2026.10)、コードの中の日付は比べません。文献一覧と番号の付いた注の並びの中の日付(引いた文書の題の中の日付、参照日)も比べません。ページの更新日の刻印([更新日 2021年10月1日])と、題のすぐ下の日付だけの行は、本文とは別に比べます。箇条書きの項目の終わりの括弧の日付(催しや記事の一覧の「- 研究集会(2025/11/20)」)も本文とは別に比べ、行の頭の日付(予定表や更新の記録の「- 2025-01-09 …」)は節ごとに比べます。少ないほうが全体の三分の一を超える文書は、二つの書き方を使い分けている(表は 2026-10-02、本文は 2026年10月2日)と読んで指しません。いちばん多い書き方が同じ数で並ぶときも指しません。
57
+ en: Year-only and month-day dates, numbers inside URLs and versions (/2026/10/02/, 1.2026.10), and dates in code are not compared, nor are dates in a reference list or a run of numbered notes (dates in cited titles, access dates). A page's update stamp ([Updated 2021-10-01]) and a line holding only a date right under the title are compared apart from the body. So is a date in brackets at the end of a list item (a list of past events, - 研究集会(2025/11/20)), and dates at the head of lines (a timeline, or an update log of - 2025-01-09 …) are compared within their own section. When the minority is more than a third of the dates, the document is taken to use two styles on purpose (ISO in tables, long dates in prose) and nothing is reported, nor when the two commonest styles are tied.
58
58
  level_meaning:
59
59
  ja: 少ないほうの書き方の日付が全体の {limit}% 以下なら指摘
60
60
  en: reported while the minority style is {limit}% of the dates or less
@@ -10,8 +10,8 @@ name:
10
10
  en: Date and weekday disagree
11
11
 
12
12
  why:
13
- ja: 「2026年10月1日(金)」のように、日付と曜日が食い違っていると、読み手はどちらが正しいのか確かめに行くことになります。日程を書き写すときや、年をまたいで予定を使い回すときに起きます。年を書いていない日付(メールの「10月9日(金)」)は、年を書いたすぐ前の日付(前に無ければ文書で最初のもの)から5か月以内に収まる年の日付として、暦と比べます。
14
- en: When a date and its weekday disagree ("Friday, 1 October 2026"), the reader has to find out which one is right. It happens when a schedule is copied, or reused for another year. A date written without its year ("Friday, October 9" in an email) is checked as the date in the year that puts it within five months of the dated date just before it (or, with none before, the first one in the document).
13
+ ja: 「2026年10月1日(金)」のように、日付と曜日が食い違っていると、読み手はどちらが正しいのか確かめに行くことになります。日程を書き写すときや、年をまたいで予定を使い回すときに起きます。年を書いていない日付(メールの「10月9日(金)」)は、文書が同じ月日を同じ曜日とともに年まで書いていればその年の日付として、そうでなければ年を書いたすぐ前の日付(前に無ければ文書で最初のもの)から5か月以内に収まる年の日付として、暦と比べます。
14
+ en: When a date and its weekday disagree ("Friday, 1 October 2026"), the reader has to find out which one is right. It happens when a schedule is copied, or reused for another year. A date written without its year ("Friday, October 9" in an email) is checked in the year the document gives that same day and weekday elsewhere, or else in the year that puts it within five months of the dated date just before it (or, with none before, the first one in the document).
15
15
 
16
16
  message:
17
17
  ja: 「{date}」は{actual}です({written}と書いてあります)