chaffjs 0.18.0 → 0.20.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 (2054) hide show
  1. package/README.md +127 -53
  2. package/bin/chaff.js +17 -2
  3. package/dist/acronym-expansions.d.ts +26 -0
  4. package/dist/acronym-expansions.d.ts.map +1 -0
  5. package/dist/acronym-expansions.js +88 -0
  6. package/dist/acronym-expansions.js.map +1 -0
  7. package/dist/announced-count.d.ts.map +1 -1
  8. package/dist/announced-count.js +44 -10
  9. package/dist/announced-count.js.map +1 -1
  10. package/dist/announced-list.d.ts +30 -0
  11. package/dist/announced-list.d.ts.map +1 -0
  12. package/dist/announced-list.js +95 -0
  13. package/dist/announced-list.js.map +1 -0
  14. package/dist/api.d.ts +168 -0
  15. package/dist/api.d.ts.map +1 -0
  16. package/dist/api.js +10 -0
  17. package/dist/api.js.map +1 -0
  18. package/dist/baseline.d.ts +11 -2
  19. package/dist/baseline.d.ts.map +1 -1
  20. package/dist/baseline.js +13 -4
  21. package/dist/baseline.js.map +1 -1
  22. package/dist/check-source.d.ts +32 -0
  23. package/dist/check-source.d.ts.map +1 -0
  24. package/dist/check-source.js +50 -0
  25. package/dist/check-source.js.map +1 -0
  26. package/dist/checks.js +3 -3
  27. package/dist/checks.js.map +1 -1
  28. package/dist/cli-args.d.ts +4 -0
  29. package/dist/cli-args.d.ts.map +1 -1
  30. package/dist/cli-args.js +6 -1
  31. package/dist/cli-args.js.map +1 -1
  32. package/dist/cli-text.d.ts +3 -3
  33. package/dist/cli-text.d.ts.map +1 -1
  34. package/dist/cli-text.js +27 -18
  35. package/dist/cli-text.js.map +1 -1
  36. package/dist/cli.d.ts +1 -0
  37. package/dist/cli.d.ts.map +1 -1
  38. package/dist/cli.js +86 -93
  39. package/dist/cli.js.map +1 -1
  40. package/dist/closing-paragraph.d.ts +7 -0
  41. package/dist/closing-paragraph.d.ts.map +1 -0
  42. package/dist/closing-paragraph.js +22 -0
  43. package/dist/closing-paragraph.js.map +1 -0
  44. package/dist/commands/compare.d.ts +11 -1
  45. package/dist/commands/compare.d.ts.map +1 -1
  46. package/dist/commands/compare.js +12 -18
  47. package/dist/commands/compare.js.map +1 -1
  48. package/dist/commands/document-commands.d.ts +9 -0
  49. package/dist/commands/document-commands.d.ts.map +1 -0
  50. package/dist/commands/document-commands.js +17 -0
  51. package/dist/commands/document-commands.js.map +1 -0
  52. package/dist/commands/eval.d.ts.map +1 -1
  53. package/dist/commands/eval.js +5 -4
  54. package/dist/commands/eval.js.map +1 -1
  55. package/dist/commands/facts.d.ts +8 -0
  56. package/dist/commands/facts.d.ts.map +1 -0
  57. package/dist/commands/facts.js +30 -0
  58. package/dist/commands/facts.js.map +1 -0
  59. package/dist/commands/feedback.d.ts +10 -0
  60. package/dist/commands/feedback.d.ts.map +1 -1
  61. package/dist/commands/feedback.js +25 -1
  62. package/dist/commands/feedback.js.map +1 -1
  63. package/dist/commands/fix-plan.d.ts +13 -0
  64. package/dist/commands/fix-plan.d.ts.map +1 -0
  65. package/dist/commands/fix-plan.js +46 -0
  66. package/dist/commands/fix-plan.js.map +1 -0
  67. package/dist/commands/grade-baseline.d.ts +15 -0
  68. package/dist/commands/grade-baseline.d.ts.map +1 -0
  69. package/dist/commands/grade-baseline.js +38 -0
  70. package/dist/commands/grade-baseline.js.map +1 -0
  71. package/dist/commands/grade.d.ts +19 -0
  72. package/dist/commands/grade.d.ts.map +1 -0
  73. package/dist/commands/grade.js +160 -0
  74. package/dist/commands/grade.js.map +1 -0
  75. package/dist/commands/outline.d.ts +8 -0
  76. package/dist/commands/outline.d.ts.map +1 -0
  77. package/dist/commands/outline.js +44 -0
  78. package/dist/commands/outline.js.map +1 -0
  79. package/dist/commands/read-document.d.ts +17 -0
  80. package/dist/commands/read-document.d.ts.map +1 -0
  81. package/dist/commands/read-document.js +22 -0
  82. package/dist/commands/read-document.js.map +1 -0
  83. package/dist/commands/suppressions.d.ts +7 -0
  84. package/dist/commands/suppressions.d.ts.map +1 -0
  85. package/dist/commands/suppressions.js +9 -0
  86. package/dist/commands/suppressions.js.map +1 -0
  87. package/dist/commands/test.js +3 -3
  88. package/dist/commands/test.js.map +1 -1
  89. package/dist/commands/tree.d.ts +2 -0
  90. package/dist/commands/tree.d.ts.map +1 -1
  91. package/dist/commands/tree.js +19 -12
  92. package/dist/commands/tree.js.map +1 -1
  93. package/dist/compare/clock-time.d.ts.map +1 -1
  94. package/dist/compare/clock-time.js +5 -2
  95. package/dist/compare/clock-time.js.map +1 -1
  96. package/dist/compare/distinct.d.ts +9 -0
  97. package/dist/compare/distinct.d.ts.map +1 -0
  98. package/dist/compare/distinct.js +18 -0
  99. package/dist/compare/distinct.js.map +1 -0
  100. package/dist/compare/extract.d.ts.map +1 -1
  101. package/dist/compare/extract.js +7 -5
  102. package/dist/compare/extract.js.map +1 -1
  103. package/dist/compare/fact-key.d.ts +17 -0
  104. package/dist/compare/fact-key.d.ts.map +1 -0
  105. package/dist/compare/fact-key.js +25 -0
  106. package/dist/compare/fact-key.js.map +1 -0
  107. package/dist/compare/fact-text.d.ts +5 -0
  108. package/dist/compare/fact-text.d.ts.map +1 -1
  109. package/dist/compare/fact-text.js +16 -2
  110. package/dist/compare/fact-text.js.map +1 -1
  111. package/dist/compare/facts-render.d.ts +17 -0
  112. package/dist/compare/facts-render.d.ts.map +1 -0
  113. package/dist/compare/facts-render.js +43 -0
  114. package/dist/compare/facts-render.js.map +1 -0
  115. package/dist/compare/facts-text.d.ts +15 -0
  116. package/dist/compare/facts-text.d.ts.map +1 -0
  117. package/dist/compare/facts-text.js +27 -0
  118. package/dist/compare/facts-text.js.map +1 -0
  119. package/dist/compare/match.d.ts +1 -0
  120. package/dist/compare/match.d.ts.map +1 -1
  121. package/dist/compare/match.js +1 -1
  122. package/dist/compare/match.js.map +1 -1
  123. package/dist/compare/outcome.d.ts +4 -1
  124. package/dist/compare/outcome.d.ts.map +1 -1
  125. package/dist/compare/outcome.js +10 -4
  126. package/dist/compare/outcome.js.map +1 -1
  127. package/dist/compare/proper-nouns.d.ts +5 -3
  128. package/dist/compare/proper-nouns.d.ts.map +1 -1
  129. package/dist/compare/proper-nouns.js +10 -8
  130. package/dist/compare/proper-nouns.js.map +1 -1
  131. package/dist/compare/render.d.ts +4 -0
  132. package/dist/compare/render.d.ts.map +1 -1
  133. package/dist/compare/render.js +2 -2
  134. package/dist/compare/render.js.map +1 -1
  135. package/dist/compare/text-atoms.d.ts +5 -2
  136. package/dist/compare/text-atoms.d.ts.map +1 -1
  137. package/dist/compare/text-atoms.js +7 -5
  138. package/dist/compare/text-atoms.js.map +1 -1
  139. package/dist/compare/text.d.ts.map +1 -1
  140. package/dist/compare/text.js +2 -2
  141. package/dist/compare/text.js.map +1 -1
  142. package/dist/config/load.d.ts +12 -0
  143. package/dist/config/load.d.ts.map +1 -1
  144. package/dist/config/load.js +5 -3
  145. package/dist/config/load.js.map +1 -1
  146. package/dist/config/option-problems.d.ts +3 -2
  147. package/dist/config/option-problems.d.ts.map +1 -1
  148. package/dist/config/option-problems.js +4 -3
  149. package/dist/config/option-problems.js.map +1 -1
  150. package/dist/config/style.d.ts +5 -0
  151. package/dist/config/style.d.ts.map +1 -1
  152. package/dist/config/style.js +13 -1
  153. package/dist/config/style.js.map +1 -1
  154. package/dist/config/yaml-file.d.ts +22 -0
  155. package/dist/config/yaml-file.d.ts.map +1 -0
  156. package/dist/config/yaml-file.js +59 -0
  157. package/dist/config/yaml-file.js.map +1 -0
  158. package/dist/correction-edit.d.ts +20 -0
  159. package/dist/correction-edit.d.ts.map +1 -0
  160. package/dist/correction-edit.js +34 -0
  161. package/dist/correction-edit.js.map +1 -0
  162. package/dist/cross-run.d.ts +15 -0
  163. package/dist/cross-run.d.ts.map +1 -0
  164. package/dist/cross-run.js +73 -0
  165. package/dist/cross-run.js.map +1 -0
  166. package/dist/cross-variants.d.ts +26 -0
  167. package/dist/cross-variants.d.ts.map +1 -0
  168. package/dist/cross-variants.js +40 -0
  169. package/dist/cross-variants.js.map +1 -0
  170. package/dist/cross-votes.d.ts +17 -0
  171. package/dist/cross-votes.d.ts.map +1 -0
  172. package/dist/cross-votes.js +24 -0
  173. package/dist/cross-votes.js.map +1 -0
  174. package/dist/custom/load.d.ts +6 -3
  175. package/dist/custom/load.d.ts.map +1 -1
  176. package/dist/custom/load.js +10 -2
  177. package/dist/custom/load.js.map +1 -1
  178. package/dist/custom/module-path.d.ts +11 -0
  179. package/dist/custom/module-path.d.ts.map +1 -0
  180. package/dist/custom/module-path.js +15 -0
  181. package/dist/custom/module-path.js.map +1 -0
  182. package/dist/custom/parse.d.ts +17 -3
  183. package/dist/custom/parse.d.ts.map +1 -1
  184. package/dist/custom/parse.js +57 -14
  185. package/dist/custom/parse.js.map +1 -1
  186. package/dist/custom/problems.d.ts +4 -1
  187. package/dist/custom/problems.d.ts.map +1 -1
  188. package/dist/custom/problems.js +56 -39
  189. package/dist/custom/problems.js.map +1 -1
  190. package/dist/date-format.d.ts +33 -0
  191. package/dist/date-format.d.ts.map +1 -0
  192. package/dist/date-format.js +87 -0
  193. package/dist/date-format.js.map +1 -0
  194. package/dist/derived/date-arithmetic.d.ts +22 -0
  195. package/dist/derived/date-arithmetic.d.ts.map +1 -0
  196. package/dist/derived/date-arithmetic.js +48 -0
  197. package/dist/derived/date-arithmetic.js.map +1 -0
  198. package/dist/derived/durations.d.ts +25 -0
  199. package/dist/derived/durations.d.ts.map +1 -0
  200. package/dist/derived/durations.js +38 -0
  201. package/dist/derived/durations.js.map +1 -0
  202. package/dist/derived/elapsed.d.ts +41 -0
  203. package/dist/derived/elapsed.d.ts.map +1 -0
  204. package/dist/derived/elapsed.js +66 -0
  205. package/dist/derived/elapsed.js.map +1 -0
  206. package/dist/derived/relative-dates.d.ts +35 -0
  207. package/dist/derived/relative-dates.d.ts.map +1 -0
  208. package/dist/derived/relative-dates.js +65 -0
  209. package/dist/derived/relative-dates.js.map +1 -0
  210. package/dist/derived/sentence-buckets.d.ts +4 -0
  211. package/dist/derived/sentence-buckets.d.ts.map +1 -0
  212. package/dist/derived/sentence-buckets.js +34 -0
  213. package/dist/derived/sentence-buckets.js.map +1 -0
  214. package/dist/detect-language.js +1 -1
  215. package/dist/detect.d.ts.map +1 -1
  216. package/dist/detect.js +9 -3
  217. package/dist/detect.js.map +1 -1
  218. package/dist/detectors/absolute-exception.d.ts +4 -0
  219. package/dist/detectors/absolute-exception.d.ts.map +1 -0
  220. package/dist/detectors/absolute-exception.js +86 -0
  221. package/dist/detectors/absolute-exception.js.map +1 -0
  222. package/dist/detectors/abstract-length.d.ts +24 -0
  223. package/dist/detectors/abstract-length.d.ts.map +1 -0
  224. package/dist/detectors/abstract-length.js +108 -0
  225. package/dist/detectors/abstract-length.js.map +1 -0
  226. package/dist/detectors/ai-phrasing.d.ts +15 -3
  227. package/dist/detectors/ai-phrasing.d.ts.map +1 -1
  228. package/dist/detectors/ai-phrasing.js +15 -15
  229. package/dist/detectors/ai-phrasing.js.map +1 -1
  230. package/dist/detectors/ai-structure.d.ts +7 -0
  231. package/dist/detectors/ai-structure.d.ts.map +1 -0
  232. package/dist/detectors/ai-structure.js +26 -0
  233. package/dist/detectors/ai-structure.js.map +1 -0
  234. package/dist/detectors/blank-structure.d.ts +13 -0
  235. package/dist/detectors/blank-structure.d.ts.map +1 -0
  236. package/dist/detectors/blank-structure.js +124 -0
  237. package/dist/detectors/blank-structure.js.map +1 -0
  238. package/dist/detectors/bold-label.d.ts +10 -0
  239. package/dist/detectors/bold-label.d.ts.map +1 -0
  240. package/dist/detectors/bold-label.js +44 -0
  241. package/dist/detectors/bold-label.js.map +1 -0
  242. package/dist/detectors/chat-citation.d.ts +18 -0
  243. package/dist/detectors/chat-citation.d.ts.map +1 -0
  244. package/dist/detectors/chat-citation.js +41 -0
  245. package/dist/detectors/chat-citation.js.map +1 -0
  246. package/dist/detectors/citation-entry.d.ts +32 -0
  247. package/dist/detectors/citation-entry.d.ts.map +1 -0
  248. package/dist/detectors/citation-entry.js +62 -0
  249. package/dist/detectors/citation-entry.js.map +1 -0
  250. package/dist/detectors/citation-marks.d.ts +43 -0
  251. package/dist/detectors/citation-marks.d.ts.map +1 -0
  252. package/dist/detectors/citation-marks.js +151 -0
  253. package/dist/detectors/citation-marks.js.map +1 -0
  254. package/dist/detectors/citation-style.d.ts +16 -0
  255. package/dist/detectors/citation-style.d.ts.map +1 -0
  256. package/dist/detectors/citation-style.js +39 -0
  257. package/dist/detectors/citation-style.js.map +1 -0
  258. package/dist/detectors/cross-link.d.ts +15 -0
  259. package/dist/detectors/cross-link.d.ts.map +1 -0
  260. package/dist/detectors/cross-link.js +74 -0
  261. package/dist/detectors/cross-link.js.map +1 -0
  262. package/dist/detectors/cross-registry/cross-doc-broken-link.d.ts +3 -0
  263. package/dist/detectors/cross-registry/cross-doc-broken-link.d.ts.map +1 -0
  264. package/dist/detectors/cross-registry/cross-doc-broken-link.js +3 -0
  265. package/dist/detectors/cross-registry/cross-doc-broken-link.js.map +1 -0
  266. package/dist/detectors/cross-registry/cross-doc-term-variant.d.ts +3 -0
  267. package/dist/detectors/cross-registry/cross-doc-term-variant.d.ts.map +1 -0
  268. package/dist/detectors/cross-registry/cross-doc-term-variant.js +3 -0
  269. package/dist/detectors/cross-registry/cross-doc-term-variant.js.map +1 -0
  270. package/dist/detectors/cross-variant.d.ts +4 -0
  271. package/dist/detectors/cross-variant.d.ts.map +1 -0
  272. package/dist/detectors/cross-variant.js +62 -0
  273. package/dist/detectors/cross-variant.js.map +1 -0
  274. package/dist/detectors/dangling-figure.d.ts +5 -2
  275. package/dist/detectors/dangling-figure.d.ts.map +1 -1
  276. package/dist/detectors/dangling-figure.js +5 -3
  277. package/dist/detectors/dangling-figure.js.map +1 -1
  278. package/dist/detectors/date-format.d.ts +3 -0
  279. package/dist/detectors/date-format.d.ts.map +1 -0
  280. package/dist/detectors/date-format.js +26 -0
  281. package/dist/detectors/date-format.js.map +1 -0
  282. package/dist/detectors/date-year.d.ts +23 -0
  283. package/dist/detectors/date-year.d.ts.map +1 -0
  284. package/dist/detectors/date-year.js +71 -0
  285. package/dist/detectors/date-year.js.map +1 -0
  286. package/dist/detectors/definition-use.d.ts +8 -0
  287. package/dist/detectors/definition-use.d.ts.map +1 -0
  288. package/dist/detectors/definition-use.js +32 -0
  289. package/dist/detectors/definition-use.js.map +1 -0
  290. package/dist/detectors/derived-numbers.d.ts +6 -0
  291. package/dist/detectors/derived-numbers.d.ts.map +1 -0
  292. package/dist/detectors/derived-numbers.js +155 -0
  293. package/dist/detectors/derived-numbers.js.map +1 -0
  294. package/dist/detectors/document-shape.d.ts +18 -0
  295. package/dist/detectors/document-shape.d.ts.map +1 -0
  296. package/dist/detectors/document-shape.js +94 -0
  297. package/dist/detectors/document-shape.js.map +1 -0
  298. package/dist/detectors/doubled-punctuation.d.ts.map +1 -1
  299. package/dist/detectors/doubled-punctuation.js +4 -2
  300. package/dist/detectors/doubled-punctuation.js.map +1 -1
  301. package/dist/detectors/duplicate-heading.d.ts +14 -0
  302. package/dist/detectors/duplicate-heading.d.ts.map +1 -0
  303. package/dist/detectors/duplicate-heading.js +39 -0
  304. package/dist/detectors/duplicate-heading.js.map +1 -0
  305. package/dist/detectors/emoji-heading.d.ts +7 -0
  306. package/dist/detectors/emoji-heading.d.ts.map +1 -0
  307. package/dist/detectors/emoji-heading.js +14 -0
  308. package/dist/detectors/emoji-heading.js.map +1 -0
  309. package/dist/detectors/empty-section.d.ts +8 -0
  310. package/dist/detectors/empty-section.d.ts.map +1 -0
  311. package/dist/detectors/empty-section.js +16 -0
  312. package/dist/detectors/empty-section.js.map +1 -0
  313. package/dist/detectors/fact-consistency.d.ts +8 -0
  314. package/dist/detectors/fact-consistency.d.ts.map +1 -0
  315. package/dist/detectors/fact-consistency.js +44 -0
  316. package/dist/detectors/fact-consistency.js.map +1 -0
  317. package/dist/detectors/figure-order.d.ts +28 -0
  318. package/dist/detectors/figure-order.d.ts.map +1 -0
  319. package/dist/detectors/figure-order.js +65 -0
  320. package/dist/detectors/figure-order.js.map +1 -0
  321. package/dist/detectors/fullwidth-alnum.d.ts +24 -0
  322. package/dist/detectors/fullwidth-alnum.d.ts.map +1 -0
  323. package/dist/detectors/fullwidth-alnum.js +88 -0
  324. package/dist/detectors/fullwidth-alnum.js.map +1 -0
  325. package/dist/detectors/hankaku-kana.d.ts +9 -0
  326. package/dist/detectors/hankaku-kana.d.ts.map +1 -0
  327. package/dist/detectors/hankaku-kana.js +27 -0
  328. package/dist/detectors/hankaku-kana.js.map +1 -0
  329. package/dist/detectors/heading-code-words.js +2 -2
  330. package/dist/detectors/heading-code-words.js.map +1 -1
  331. package/dist/detectors/heading-numbering.d.ts +7 -0
  332. package/dist/detectors/heading-numbering.d.ts.map +1 -0
  333. package/dist/detectors/heading-numbering.js +34 -0
  334. package/dist/detectors/heading-numbering.js.map +1 -0
  335. package/dist/detectors/index.d.ts +3 -1
  336. package/dist/detectors/index.d.ts.map +1 -1
  337. package/dist/detectors/index.js +9 -104
  338. package/dist/detectors/index.js.map +1 -1
  339. package/dist/detectors/invisible-character.d.ts +20 -0
  340. package/dist/detectors/invisible-character.d.ts.map +1 -0
  341. package/dist/detectors/invisible-character.js +143 -0
  342. package/dist/detectors/invisible-character.js.map +1 -0
  343. package/dist/detectors/katakana-density.d.ts +11 -0
  344. package/dist/detectors/katakana-density.d.ts.map +1 -0
  345. package/dist/detectors/katakana-density.js +47 -0
  346. package/dist/detectors/katakana-density.js.map +1 -0
  347. package/dist/detectors/known-correction.d.ts +7 -0
  348. package/dist/detectors/known-correction.d.ts.map +1 -0
  349. package/dist/detectors/known-correction.js +63 -0
  350. package/dist/detectors/known-correction.js.map +1 -0
  351. package/dist/detectors/kutoten-consistency.js +2 -2
  352. package/dist/detectors/kutoten-consistency.js.map +1 -1
  353. package/dist/detectors/lexicon-match.d.ts +10 -1
  354. package/dist/detectors/lexicon-match.d.ts.map +1 -1
  355. package/dist/detectors/lexicon-match.js +26 -1
  356. package/dist/detectors/lexicon-match.js.map +1 -1
  357. package/dist/detectors/lexicon.d.ts +9 -1
  358. package/dist/detectors/lexicon.d.ts.map +1 -1
  359. package/dist/detectors/lexicon.js +34 -13
  360. package/dist/detectors/lexicon.js.map +1 -1
  361. package/dist/detectors/list-parallel.d.ts +12 -0
  362. package/dist/detectors/list-parallel.d.ts.map +1 -0
  363. package/dist/detectors/list-parallel.js +135 -0
  364. package/dist/detectors/list-parallel.js.map +1 -0
  365. package/dist/detectors/list-sentence.d.ts +3 -1
  366. package/dist/detectors/list-sentence.d.ts.map +1 -1
  367. package/dist/detectors/list-sentence.js +26 -1
  368. package/dist/detectors/list-sentence.js.map +1 -1
  369. package/dist/detectors/long-vowel.d.ts +17 -1
  370. package/dist/detectors/long-vowel.d.ts.map +1 -1
  371. package/dist/detectors/long-vowel.js +20 -6
  372. package/dist/detectors/long-vowel.js.map +1 -1
  373. package/dist/detectors/markup-finding.d.ts +3 -1
  374. package/dist/detectors/markup-finding.d.ts.map +1 -1
  375. package/dist/detectors/markup-finding.js +10 -0
  376. package/dist/detectors/markup-finding.js.map +1 -1
  377. package/dist/detectors/misuse-match.d.ts +7 -0
  378. package/dist/detectors/misuse-match.d.ts.map +1 -0
  379. package/dist/detectors/misuse-match.js +23 -0
  380. package/dist/detectors/misuse-match.js.map +1 -0
  381. package/dist/detectors/modal-conflict.d.ts +6 -0
  382. package/dist/detectors/modal-conflict.d.ts.map +1 -0
  383. package/dist/detectors/modal-conflict.js +22 -0
  384. package/dist/detectors/modal-conflict.js.map +1 -0
  385. package/dist/detectors/name-variant.d.ts +4 -0
  386. package/dist/detectors/name-variant.d.ts.map +1 -0
  387. package/dist/detectors/name-variant.js +13 -0
  388. package/dist/detectors/name-variant.js.map +1 -0
  389. package/dist/detectors/next-word.d.ts +22 -0
  390. package/dist/detectors/next-word.d.ts.map +1 -0
  391. package/dist/detectors/next-word.js +125 -0
  392. package/dist/detectors/next-word.js.map +1 -0
  393. package/dist/detectors/nominalization.d.ts +11 -0
  394. package/dist/detectors/nominalization.d.ts.map +1 -0
  395. package/dist/detectors/nominalization.js +56 -0
  396. package/dist/detectors/nominalization.js.map +1 -0
  397. package/dist/detectors/number-style.d.ts +31 -0
  398. package/dist/detectors/number-style.d.ts.map +1 -0
  399. package/dist/detectors/number-style.js +182 -0
  400. package/dist/detectors/number-style.js.map +1 -0
  401. package/dist/detectors/number-unit.d.ts +35 -0
  402. package/dist/detectors/number-unit.d.ts.map +1 -0
  403. package/dist/detectors/number-unit.js +121 -0
  404. package/dist/detectors/number-unit.js.map +1 -0
  405. package/dist/detectors/orthographic-variant.d.ts +8 -0
  406. package/dist/detectors/orthographic-variant.d.ts.map +1 -0
  407. package/dist/detectors/orthographic-variant.js +130 -0
  408. package/dist/detectors/orthographic-variant.js.map +1 -0
  409. package/dist/detectors/orthography.d.ts.map +1 -1
  410. package/dist/detectors/orthography.js +59 -28
  411. package/dist/detectors/orthography.js.map +1 -1
  412. package/dist/detectors/outside-announced-list.d.ts +4 -0
  413. package/dist/detectors/outside-announced-list.d.ts.map +1 -0
  414. package/dist/detectors/outside-announced-list.js +24 -0
  415. package/dist/detectors/outside-announced-list.js.map +1 -0
  416. package/dist/detectors/oxford-comma.d.ts.map +1 -1
  417. package/dist/detectors/oxford-comma.js +1 -0
  418. package/dist/detectors/oxford-comma.js.map +1 -1
  419. package/dist/detectors/paragraph-restatement.d.ts +11 -0
  420. package/dist/detectors/paragraph-restatement.d.ts.map +1 -0
  421. package/dist/detectors/paragraph-restatement.js +61 -0
  422. package/dist/detectors/paragraph-restatement.js.map +1 -0
  423. package/dist/detectors/paragraph-run.d.ts +7 -0
  424. package/dist/detectors/paragraph-run.d.ts.map +1 -0
  425. package/dist/detectors/paragraph-run.js +25 -0
  426. package/dist/detectors/paragraph-run.js.map +1 -0
  427. package/dist/detectors/person-consistency.d.ts +7 -0
  428. package/dist/detectors/person-consistency.d.ts.map +1 -0
  429. package/dist/detectors/person-consistency.js +25 -0
  430. package/dist/detectors/person-consistency.js.map +1 -0
  431. package/dist/detectors/phrase-match.d.ts +4 -1
  432. package/dist/detectors/phrase-match.d.ts.map +1 -1
  433. package/dist/detectors/phrase-match.js +26 -7
  434. package/dist/detectors/phrase-match.js.map +1 -1
  435. package/dist/detectors/placeholder-text.d.ts +1 -1
  436. package/dist/detectors/placeholder-text.d.ts.map +1 -1
  437. package/dist/detectors/placeholder-text.js +54 -4
  438. package/dist/detectors/placeholder-text.js.map +1 -1
  439. package/dist/detectors/ra-nuki.d.ts +9 -0
  440. package/dist/detectors/ra-nuki.d.ts.map +1 -0
  441. package/dist/detectors/ra-nuki.js +30 -0
  442. package/dist/detectors/ra-nuki.js.map +1 -0
  443. package/dist/detectors/reference-text.d.ts +6 -0
  444. package/dist/detectors/reference-text.d.ts.map +1 -0
  445. package/dist/detectors/reference-text.js +38 -0
  446. package/dist/detectors/reference-text.js.map +1 -0
  447. package/dist/detectors/registry/absolute-exception.d.ts +3 -0
  448. package/dist/detectors/registry/absolute-exception.d.ts.map +1 -0
  449. package/dist/detectors/registry/absolute-exception.js +3 -0
  450. package/dist/detectors/registry/absolute-exception.js.map +1 -0
  451. package/dist/detectors/registry/abstract-length.d.ts +3 -0
  452. package/dist/detectors/registry/abstract-length.d.ts.map +1 -0
  453. package/dist/detectors/registry/abstract-length.js +3 -0
  454. package/dist/detectors/registry/abstract-length.js.map +1 -0
  455. package/dist/detectors/registry/acronym-expansion-conflict.d.ts +3 -0
  456. package/dist/detectors/registry/acronym-expansion-conflict.d.ts.map +1 -0
  457. package/dist/detectors/registry/acronym-expansion-conflict.js +3 -0
  458. package/dist/detectors/registry/acronym-expansion-conflict.js.map +1 -0
  459. package/dist/detectors/registry/adverb-density.d.ts +3 -0
  460. package/dist/detectors/registry/adverb-density.d.ts.map +1 -0
  461. package/dist/detectors/registry/adverb-density.js +3 -0
  462. package/dist/detectors/registry/adverb-density.js.map +1 -0
  463. package/dist/detectors/registry/agentless-passive.d.ts +3 -0
  464. package/dist/detectors/registry/agentless-passive.d.ts.map +1 -0
  465. package/dist/detectors/registry/agentless-passive.js +3 -0
  466. package/dist/detectors/registry/agentless-passive.js.map +1 -0
  467. package/dist/detectors/registry/agreement-slip.d.ts +3 -0
  468. package/dist/detectors/registry/agreement-slip.d.ts.map +1 -0
  469. package/dist/detectors/registry/agreement-slip.js +3 -0
  470. package/dist/detectors/registry/agreement-slip.js.map +1 -0
  471. package/dist/detectors/registry/ai-structure.d.ts +3 -0
  472. package/dist/detectors/registry/ai-structure.d.ts.map +1 -0
  473. package/dist/detectors/registry/ai-structure.js +3 -0
  474. package/dist/detectors/registry/ai-structure.js.map +1 -0
  475. package/dist/detectors/registry/ai-tell.d.ts +3 -0
  476. package/dist/detectors/registry/ai-tell.d.ts.map +1 -0
  477. package/dist/detectors/registry/ai-tell.js +3 -0
  478. package/dist/detectors/registry/ai-tell.js.map +1 -0
  479. package/dist/detectors/registry/announced-count.d.ts +3 -0
  480. package/dist/detectors/registry/announced-count.d.ts.map +1 -0
  481. package/dist/detectors/registry/announced-count.js +3 -0
  482. package/dist/detectors/registry/announced-count.js.map +1 -0
  483. package/dist/detectors/registry/article-sound.d.ts +3 -0
  484. package/dist/detectors/registry/article-sound.d.ts.map +1 -0
  485. package/dist/detectors/registry/article-sound.js +3 -0
  486. package/dist/detectors/registry/article-sound.js.map +1 -0
  487. package/dist/detectors/registry/assistant-residue.d.ts +3 -0
  488. package/dist/detectors/registry/assistant-residue.d.ts.map +1 -0
  489. package/dist/detectors/registry/assistant-residue.js +3 -0
  490. package/dist/detectors/registry/assistant-residue.js.map +1 -0
  491. package/dist/detectors/registry/bold-label-list.d.ts +3 -0
  492. package/dist/detectors/registry/bold-label-list.d.ts.map +1 -0
  493. package/dist/detectors/registry/bold-label-list.js +3 -0
  494. package/dist/detectors/registry/bold-label-list.js.map +1 -0
  495. package/dist/detectors/registry/bracket-nesting.d.ts +3 -0
  496. package/dist/detectors/registry/bracket-nesting.d.ts.map +1 -0
  497. package/dist/detectors/registry/bracket-nesting.js +3 -0
  498. package/dist/detectors/registry/bracket-nesting.js.map +1 -0
  499. package/dist/detectors/registry/broken-link.d.ts +3 -0
  500. package/dist/detectors/registry/broken-link.d.ts.map +1 -0
  501. package/dist/detectors/registry/broken-link.js +3 -0
  502. package/dist/detectors/registry/broken-link.js.map +1 -0
  503. package/dist/detectors/registry/chat-citation-residue.d.ts +3 -0
  504. package/dist/detectors/registry/chat-citation-residue.d.ts.map +1 -0
  505. package/dist/detectors/registry/chat-citation-residue.js +3 -0
  506. package/dist/detectors/registry/chat-citation-residue.js.map +1 -0
  507. package/dist/detectors/registry/citation-entry.d.ts +3 -0
  508. package/dist/detectors/registry/citation-entry.d.ts.map +1 -0
  509. package/dist/detectors/registry/citation-entry.js +3 -0
  510. package/dist/detectors/registry/citation-entry.js.map +1 -0
  511. package/dist/detectors/registry/citation-style.d.ts +3 -0
  512. package/dist/detectors/registry/citation-style.d.ts.map +1 -0
  513. package/dist/detectors/registry/citation-style.js +3 -0
  514. package/dist/detectors/registry/citation-style.js.map +1 -0
  515. package/dist/detectors/registry/clause-chain.d.ts +3 -0
  516. package/dist/detectors/registry/clause-chain.d.ts.map +1 -0
  517. package/dist/detectors/registry/clause-chain.js +3 -0
  518. package/dist/detectors/registry/clause-chain.js.map +1 -0
  519. package/dist/detectors/registry/colon-lead-in.d.ts +3 -0
  520. package/dist/detectors/registry/colon-lead-in.d.ts.map +1 -0
  521. package/dist/detectors/registry/colon-lead-in.js +3 -0
  522. package/dist/detectors/registry/colon-lead-in.js.map +1 -0
  523. package/dist/detectors/registry/concrete-evidence.d.ts +3 -0
  524. package/dist/detectors/registry/concrete-evidence.d.ts.map +1 -0
  525. package/dist/detectors/registry/concrete-evidence.js +3 -0
  526. package/dist/detectors/registry/concrete-evidence.js.map +1 -0
  527. package/dist/detectors/registry/conjunction-run.d.ts +3 -0
  528. package/dist/detectors/registry/conjunction-run.d.ts.map +1 -0
  529. package/dist/detectors/registry/conjunction-run.js +3 -0
  530. package/dist/detectors/registry/conjunction-run.js.map +1 -0
  531. package/dist/detectors/registry/contraction-mix.d.ts +3 -0
  532. package/dist/detectors/registry/contraction-mix.d.ts.map +1 -0
  533. package/dist/detectors/registry/contraction-mix.js +3 -0
  534. package/dist/detectors/registry/contraction-mix.js.map +1 -0
  535. package/dist/detectors/registry/contrast-framing.d.ts +3 -0
  536. package/dist/detectors/registry/contrast-framing.d.ts.map +1 -0
  537. package/dist/detectors/registry/contrast-framing.js +3 -0
  538. package/dist/detectors/registry/contrast-framing.js.map +1 -0
  539. package/dist/detectors/registry/count-per-section.d.ts +3 -0
  540. package/dist/detectors/registry/count-per-section.d.ts.map +1 -0
  541. package/dist/detectors/registry/count-per-section.js +3 -0
  542. package/dist/detectors/registry/count-per-section.js.map +1 -0
  543. package/dist/detectors/registry/cushion-density.d.ts +3 -0
  544. package/dist/detectors/registry/cushion-density.d.ts.map +1 -0
  545. package/dist/detectors/registry/cushion-density.js +3 -0
  546. package/dist/detectors/registry/cushion-density.js.map +1 -0
  547. package/dist/detectors/registry/custom-pattern.d.ts +3 -0
  548. package/dist/detectors/registry/custom-pattern.d.ts.map +1 -0
  549. package/dist/detectors/registry/custom-pattern.js +3 -0
  550. package/dist/detectors/registry/custom-pattern.js.map +1 -0
  551. package/dist/detectors/registry/custom-tokens.d.ts +3 -0
  552. package/dist/detectors/registry/custom-tokens.d.ts.map +1 -0
  553. package/dist/detectors/registry/custom-tokens.js +3 -0
  554. package/dist/detectors/registry/custom-tokens.js.map +1 -0
  555. package/dist/detectors/registry/custom-words.d.ts +3 -0
  556. package/dist/detectors/registry/custom-words.d.ts.map +1 -0
  557. package/dist/detectors/registry/custom-words.js +3 -0
  558. package/dist/detectors/registry/custom-words.js.map +1 -0
  559. package/dist/detectors/registry/dangling-figure.d.ts +3 -0
  560. package/dist/detectors/registry/dangling-figure.d.ts.map +1 -0
  561. package/dist/detectors/registry/dangling-figure.js +3 -0
  562. package/dist/detectors/registry/dangling-figure.js.map +1 -0
  563. package/dist/detectors/registry/dangling-reference.d.ts +3 -0
  564. package/dist/detectors/registry/dangling-reference.d.ts.map +1 -0
  565. package/dist/detectors/registry/dangling-reference.js +3 -0
  566. package/dist/detectors/registry/dangling-reference.js.map +1 -0
  567. package/dist/detectors/registry/dash-density.d.ts +3 -0
  568. package/dist/detectors/registry/dash-density.d.ts.map +1 -0
  569. package/dist/detectors/registry/dash-density.js +3 -0
  570. package/dist/detectors/registry/dash-density.js.map +1 -0
  571. package/dist/detectors/registry/date-format.d.ts +3 -0
  572. package/dist/detectors/registry/date-format.d.ts.map +1 -0
  573. package/dist/detectors/registry/date-format.js +3 -0
  574. package/dist/detectors/registry/date-format.js.map +1 -0
  575. package/dist/detectors/registry/date-order.d.ts +3 -0
  576. package/dist/detectors/registry/date-order.d.ts.map +1 -0
  577. package/dist/detectors/registry/date-order.js +3 -0
  578. package/dist/detectors/registry/date-order.js.map +1 -0
  579. package/dist/detectors/registry/date-range-reversed.d.ts +3 -0
  580. package/dist/detectors/registry/date-range-reversed.d.ts.map +1 -0
  581. package/dist/detectors/registry/date-range-reversed.js +3 -0
  582. package/dist/detectors/registry/date-range-reversed.js.map +1 -0
  583. package/dist/detectors/registry/date-weekday-mismatch.d.ts +3 -0
  584. package/dist/detectors/registry/date-weekday-mismatch.d.ts.map +1 -0
  585. package/dist/detectors/registry/date-weekday-mismatch.js +3 -0
  586. package/dist/detectors/registry/date-weekday-mismatch.js.map +1 -0
  587. package/dist/detectors/registry/date-without-year.d.ts +3 -0
  588. package/dist/detectors/registry/date-without-year.d.ts.map +1 -0
  589. package/dist/detectors/registry/date-without-year.js +3 -0
  590. package/dist/detectors/registry/date-without-year.js.map +1 -0
  591. package/dist/detectors/registry/doubled-particle.d.ts +3 -0
  592. package/dist/detectors/registry/doubled-particle.d.ts.map +1 -0
  593. package/dist/detectors/registry/doubled-particle.js +3 -0
  594. package/dist/detectors/registry/doubled-particle.js.map +1 -0
  595. package/dist/detectors/registry/doubled-punctuation.d.ts +3 -0
  596. package/dist/detectors/registry/doubled-punctuation.d.ts.map +1 -0
  597. package/dist/detectors/registry/doubled-punctuation.js +3 -0
  598. package/dist/detectors/registry/doubled-punctuation.js.map +1 -0
  599. package/dist/detectors/registry/doubled-word.d.ts +3 -0
  600. package/dist/detectors/registry/doubled-word.d.ts.map +1 -0
  601. package/dist/detectors/registry/doubled-word.js +3 -0
  602. package/dist/detectors/registry/doubled-word.js.map +1 -0
  603. package/dist/detectors/registry/duplicate-definition.d.ts +3 -0
  604. package/dist/detectors/registry/duplicate-definition.d.ts.map +1 -0
  605. package/dist/detectors/registry/duplicate-definition.js +3 -0
  606. package/dist/detectors/registry/duplicate-definition.js.map +1 -0
  607. package/dist/detectors/registry/duplicate-heading.d.ts +3 -0
  608. package/dist/detectors/registry/duplicate-heading.d.ts.map +1 -0
  609. package/dist/detectors/registry/duplicate-heading.js +3 -0
  610. package/dist/detectors/registry/duplicate-heading.js.map +1 -0
  611. package/dist/detectors/registry/duration-mismatch.d.ts +3 -0
  612. package/dist/detectors/registry/duration-mismatch.d.ts.map +1 -0
  613. package/dist/detectors/registry/duration-mismatch.js +3 -0
  614. package/dist/detectors/registry/duration-mismatch.js.map +1 -0
  615. package/dist/detectors/registry/elapsed-years-mismatch.d.ts +3 -0
  616. package/dist/detectors/registry/elapsed-years-mismatch.d.ts.map +1 -0
  617. package/dist/detectors/registry/elapsed-years-mismatch.js +3 -0
  618. package/dist/detectors/registry/elapsed-years-mismatch.js.map +1 -0
  619. package/dist/detectors/registry/emoji-density.d.ts +3 -0
  620. package/dist/detectors/registry/emoji-density.d.ts.map +1 -0
  621. package/dist/detectors/registry/emoji-density.js +3 -0
  622. package/dist/detectors/registry/emoji-density.js.map +1 -0
  623. package/dist/detectors/registry/emoji-heading.d.ts +3 -0
  624. package/dist/detectors/registry/emoji-heading.d.ts.map +1 -0
  625. package/dist/detectors/registry/emoji-heading.js +3 -0
  626. package/dist/detectors/registry/emoji-heading.js.map +1 -0
  627. package/dist/detectors/registry/empty-list-item.d.ts +3 -0
  628. package/dist/detectors/registry/empty-list-item.d.ts.map +1 -0
  629. package/dist/detectors/registry/empty-list-item.js +3 -0
  630. package/dist/detectors/registry/empty-list-item.js.map +1 -0
  631. package/dist/detectors/registry/empty-section.d.ts +3 -0
  632. package/dist/detectors/registry/empty-section.d.ts.map +1 -0
  633. package/dist/detectors/registry/empty-section.js +3 -0
  634. package/dist/detectors/registry/empty-section.js.map +1 -0
  635. package/dist/detectors/registry/empty-table-cell.d.ts +3 -0
  636. package/dist/detectors/registry/empty-table-cell.d.ts.map +1 -0
  637. package/dist/detectors/registry/empty-table-cell.js +3 -0
  638. package/dist/detectors/registry/empty-table-cell.js.map +1 -0
  639. package/dist/detectors/registry/expletive.d.ts +3 -0
  640. package/dist/detectors/registry/expletive.d.ts.map +1 -0
  641. package/dist/detectors/registry/expletive.js +3 -0
  642. package/dist/detectors/registry/expletive.js.map +1 -0
  643. package/dist/detectors/registry/fact-conflict.d.ts +3 -0
  644. package/dist/detectors/registry/fact-conflict.d.ts.map +1 -0
  645. package/dist/detectors/registry/fact-conflict.js +3 -0
  646. package/dist/detectors/registry/fact-conflict.js.map +1 -0
  647. package/dist/detectors/registry/figure-order.d.ts +3 -0
  648. package/dist/detectors/registry/figure-order.d.ts.map +1 -0
  649. package/dist/detectors/registry/figure-order.js +3 -0
  650. package/dist/detectors/registry/figure-order.js.map +1 -0
  651. package/dist/detectors/registry/fullwidth-alnum.d.ts +3 -0
  652. package/dist/detectors/registry/fullwidth-alnum.d.ts.map +1 -0
  653. package/dist/detectors/registry/fullwidth-alnum.js +3 -0
  654. package/dist/detectors/registry/fullwidth-alnum.js.map +1 -0
  655. package/dist/detectors/registry/hankaku-kana.d.ts +3 -0
  656. package/dist/detectors/registry/hankaku-kana.d.ts.map +1 -0
  657. package/dist/detectors/registry/hankaku-kana.js +3 -0
  658. package/dist/detectors/registry/hankaku-kana.js.map +1 -0
  659. package/dist/detectors/registry/heading-echo.d.ts +3 -0
  660. package/dist/detectors/registry/heading-echo.d.ts.map +1 -0
  661. package/dist/detectors/registry/heading-echo.js +3 -0
  662. package/dist/detectors/registry/heading-echo.js.map +1 -0
  663. package/dist/detectors/registry/heading-level-skip.d.ts +3 -0
  664. package/dist/detectors/registry/heading-level-skip.d.ts.map +1 -0
  665. package/dist/detectors/registry/heading-level-skip.js +3 -0
  666. package/dist/detectors/registry/heading-level-skip.js.map +1 -0
  667. package/dist/detectors/registry/heading-numbering.d.ts +3 -0
  668. package/dist/detectors/registry/heading-numbering.d.ts.map +1 -0
  669. package/dist/detectors/registry/heading-numbering.js +3 -0
  670. package/dist/detectors/registry/heading-numbering.js.map +1 -0
  671. package/dist/detectors/registry/hedging.d.ts +3 -0
  672. package/dist/detectors/registry/hedging.d.ts.map +1 -0
  673. package/dist/detectors/registry/hedging.js +3 -0
  674. package/dist/detectors/registry/hedging.js.map +1 -0
  675. package/dist/detectors/registry/image-alt-text.d.ts +3 -0
  676. package/dist/detectors/registry/image-alt-text.d.ts.map +1 -0
  677. package/dist/detectors/registry/image-alt-text.js +3 -0
  678. package/dist/detectors/registry/image-alt-text.js.map +1 -0
  679. package/dist/detectors/registry/intensified-adjective.d.ts +3 -0
  680. package/dist/detectors/registry/intensified-adjective.d.ts.map +1 -0
  681. package/dist/detectors/registry/intensified-adjective.js +3 -0
  682. package/dist/detectors/registry/intensified-adjective.js.map +1 -0
  683. package/dist/detectors/registry/internal-jargon.d.ts +3 -0
  684. package/dist/detectors/registry/internal-jargon.d.ts.map +1 -0
  685. package/dist/detectors/registry/internal-jargon.js +3 -0
  686. package/dist/detectors/registry/internal-jargon.js.map +1 -0
  687. package/dist/detectors/registry/invisible-character.d.ts +3 -0
  688. package/dist/detectors/registry/invisible-character.d.ts.map +1 -0
  689. package/dist/detectors/registry/invisible-character.js +3 -0
  690. package/dist/detectors/registry/invisible-character.js.map +1 -0
  691. package/dist/detectors/registry/kanji-run.d.ts +3 -0
  692. package/dist/detectors/registry/kanji-run.d.ts.map +1 -0
  693. package/dist/detectors/registry/kanji-run.js +3 -0
  694. package/dist/detectors/registry/kanji-run.js.map +1 -0
  695. package/dist/detectors/registry/katakana-density.d.ts +3 -0
  696. package/dist/detectors/registry/katakana-density.d.ts.map +1 -0
  697. package/dist/detectors/registry/katakana-density.js +3 -0
  698. package/dist/detectors/registry/katakana-density.js.map +1 -0
  699. package/dist/detectors/registry/katakana-long-vowel.d.ts +3 -0
  700. package/dist/detectors/registry/katakana-long-vowel.d.ts.map +1 -0
  701. package/dist/detectors/registry/katakana-long-vowel.js +3 -0
  702. package/dist/detectors/registry/katakana-long-vowel.js.map +1 -0
  703. package/dist/detectors/registry/known-correction.d.ts +3 -0
  704. package/dist/detectors/registry/known-correction.d.ts.map +1 -0
  705. package/dist/detectors/registry/known-correction.js +3 -0
  706. package/dist/detectors/registry/known-correction.js.map +1 -0
  707. package/dist/detectors/registry/kutoten-consistency.d.ts +3 -0
  708. package/dist/detectors/registry/kutoten-consistency.d.ts.map +1 -0
  709. package/dist/detectors/registry/kutoten-consistency.js +3 -0
  710. package/dist/detectors/registry/kutoten-consistency.js.map +1 -0
  711. package/dist/detectors/registry/latin-spacing.d.ts +3 -0
  712. package/dist/detectors/registry/latin-spacing.d.ts.map +1 -0
  713. package/dist/detectors/registry/latin-spacing.js +3 -0
  714. package/dist/detectors/registry/latin-spacing.js.map +1 -0
  715. package/dist/detectors/registry/list-item-form-mix.d.ts +3 -0
  716. package/dist/detectors/registry/list-item-form-mix.d.ts.map +1 -0
  717. package/dist/detectors/registry/list-item-form-mix.js +3 -0
  718. package/dist/detectors/registry/list-item-form-mix.js.map +1 -0
  719. package/dist/detectors/registry/middle-dot.d.ts +3 -0
  720. package/dist/detectors/registry/middle-dot.d.ts.map +1 -0
  721. package/dist/detectors/registry/middle-dot.js +3 -0
  722. package/dist/detectors/registry/middle-dot.js.map +1 -0
  723. package/dist/detectors/registry/misuse-match.d.ts +3 -0
  724. package/dist/detectors/registry/misuse-match.d.ts.map +1 -0
  725. package/dist/detectors/registry/misuse-match.js +3 -0
  726. package/dist/detectors/registry/misuse-match.js.map +1 -0
  727. package/dist/detectors/registry/modal-conflict.d.ts +3 -0
  728. package/dist/detectors/registry/modal-conflict.d.ts.map +1 -0
  729. package/dist/detectors/registry/modal-conflict.js +3 -0
  730. package/dist/detectors/registry/modal-conflict.js.map +1 -0
  731. package/dist/detectors/registry/name-variant.d.ts +3 -0
  732. package/dist/detectors/registry/name-variant.d.ts.map +1 -0
  733. package/dist/detectors/registry/name-variant.js +3 -0
  734. package/dist/detectors/registry/name-variant.js.map +1 -0
  735. package/dist/detectors/registry/ngram-repetition.d.ts +3 -0
  736. package/dist/detectors/registry/ngram-repetition.d.ts.map +1 -0
  737. package/dist/detectors/registry/ngram-repetition.js +3 -0
  738. package/dist/detectors/registry/ngram-repetition.js.map +1 -0
  739. package/dist/detectors/registry/no-lead.d.ts +3 -0
  740. package/dist/detectors/registry/no-lead.d.ts.map +1 -0
  741. package/dist/detectors/registry/no-lead.js +3 -0
  742. package/dist/detectors/registry/no-lead.js.map +1 -0
  743. package/dist/detectors/registry/nominalization.d.ts +3 -0
  744. package/dist/detectors/registry/nominalization.d.ts.map +1 -0
  745. package/dist/detectors/registry/nominalization.js +3 -0
  746. package/dist/detectors/registry/nominalization.js.map +1 -0
  747. package/dist/detectors/registry/noun-ending.d.ts +3 -0
  748. package/dist/detectors/registry/noun-ending.d.ts.map +1 -0
  749. package/dist/detectors/registry/noun-ending.js +3 -0
  750. package/dist/detectors/registry/noun-ending.js.map +1 -0
  751. package/dist/detectors/registry/number-style-consistency.d.ts +3 -0
  752. package/dist/detectors/registry/number-style-consistency.d.ts.map +1 -0
  753. package/dist/detectors/registry/number-style-consistency.js +3 -0
  754. package/dist/detectors/registry/number-style-consistency.js.map +1 -0
  755. package/dist/detectors/registry/number-without-unit.d.ts +3 -0
  756. package/dist/detectors/registry/number-without-unit.d.ts.map +1 -0
  757. package/dist/detectors/registry/number-without-unit.js +3 -0
  758. package/dist/detectors/registry/number-without-unit.js.map +1 -0
  759. package/dist/detectors/registry/numbering-gap.d.ts +3 -0
  760. package/dist/detectors/registry/numbering-gap.d.ts.map +1 -0
  761. package/dist/detectors/registry/numbering-gap.js +3 -0
  762. package/dist/detectors/registry/numbering-gap.js.map +1 -0
  763. package/dist/detectors/registry/one-sentence-paragraph-run.d.ts +3 -0
  764. package/dist/detectors/registry/one-sentence-paragraph-run.d.ts.map +1 -0
  765. package/dist/detectors/registry/one-sentence-paragraph-run.js +3 -0
  766. package/dist/detectors/registry/one-sentence-paragraph-run.js.map +1 -0
  767. package/dist/detectors/registry/opener-pile.d.ts +3 -0
  768. package/dist/detectors/registry/opener-pile.d.ts.map +1 -0
  769. package/dist/detectors/registry/opener-pile.js +3 -0
  770. package/dist/detectors/registry/opener-pile.js.map +1 -0
  771. package/dist/detectors/registry/opener-run.d.ts +3 -0
  772. package/dist/detectors/registry/opener-run.d.ts.map +1 -0
  773. package/dist/detectors/registry/opener-run.js +3 -0
  774. package/dist/detectors/registry/opener-run.js.map +1 -0
  775. package/dist/detectors/registry/orthographic-variant.d.ts +3 -0
  776. package/dist/detectors/registry/orthographic-variant.d.ts.map +1 -0
  777. package/dist/detectors/registry/orthographic-variant.js +3 -0
  778. package/dist/detectors/registry/orthographic-variant.js.map +1 -0
  779. package/dist/detectors/registry/outside-announced-list.d.ts +3 -0
  780. package/dist/detectors/registry/outside-announced-list.d.ts.map +1 -0
  781. package/dist/detectors/registry/outside-announced-list.js +3 -0
  782. package/dist/detectors/registry/outside-announced-list.js.map +1 -0
  783. package/dist/detectors/registry/oxford-comma.d.ts +3 -0
  784. package/dist/detectors/registry/oxford-comma.d.ts.map +1 -0
  785. package/dist/detectors/registry/oxford-comma.js +3 -0
  786. package/dist/detectors/registry/oxford-comma.js.map +1 -0
  787. package/dist/detectors/registry/paragraph-length.d.ts +3 -0
  788. package/dist/detectors/registry/paragraph-length.d.ts.map +1 -0
  789. package/dist/detectors/registry/paragraph-length.js +3 -0
  790. package/dist/detectors/registry/paragraph-length.js.map +1 -0
  791. package/dist/detectors/registry/paragraph-restatement.d.ts +3 -0
  792. package/dist/detectors/registry/paragraph-restatement.d.ts.map +1 -0
  793. package/dist/detectors/registry/paragraph-restatement.js +3 -0
  794. package/dist/detectors/registry/paragraph-restatement.js.map +1 -0
  795. package/dist/detectors/registry/paragraph-variance.d.ts +3 -0
  796. package/dist/detectors/registry/paragraph-variance.d.ts.map +1 -0
  797. package/dist/detectors/registry/paragraph-variance.js +3 -0
  798. package/dist/detectors/registry/paragraph-variance.js.map +1 -0
  799. package/dist/detectors/registry/percent-sum-mismatch.d.ts +3 -0
  800. package/dist/detectors/registry/percent-sum-mismatch.d.ts.map +1 -0
  801. package/dist/detectors/registry/percent-sum-mismatch.js +3 -0
  802. package/dist/detectors/registry/percent-sum-mismatch.js.map +1 -0
  803. package/dist/detectors/registry/person-mix.d.ts +3 -0
  804. package/dist/detectors/registry/person-mix.d.ts.map +1 -0
  805. package/dist/detectors/registry/person-mix.js +3 -0
  806. package/dist/detectors/registry/person-mix.js.map +1 -0
  807. package/dist/detectors/registry/phrase-count.d.ts +3 -0
  808. package/dist/detectors/registry/phrase-count.d.ts.map +1 -0
  809. package/dist/detectors/registry/phrase-count.js +3 -0
  810. package/dist/detectors/registry/phrase-count.js.map +1 -0
  811. package/dist/detectors/registry/phrase-density.d.ts +3 -0
  812. package/dist/detectors/registry/phrase-density.d.ts.map +1 -0
  813. package/dist/detectors/registry/phrase-density.js +3 -0
  814. package/dist/detectors/registry/phrase-density.js.map +1 -0
  815. package/dist/detectors/registry/phrase-match.d.ts +3 -0
  816. package/dist/detectors/registry/phrase-match.d.ts.map +1 -0
  817. package/dist/detectors/registry/phrase-match.js +3 -0
  818. package/dist/detectors/registry/phrase-match.js.map +1 -0
  819. package/dist/detectors/registry/preamble-length.d.ts +3 -0
  820. package/dist/detectors/registry/preamble-length.d.ts.map +1 -0
  821. package/dist/detectors/registry/preamble-length.js +3 -0
  822. package/dist/detectors/registry/preamble-length.js.map +1 -0
  823. package/dist/detectors/registry/preferred-term.d.ts +3 -0
  824. package/dist/detectors/registry/preferred-term.d.ts.map +1 -0
  825. package/dist/detectors/registry/preferred-term.js +3 -0
  826. package/dist/detectors/registry/preferred-term.js.map +1 -0
  827. package/dist/detectors/registry/proper-noun-density.d.ts +3 -0
  828. package/dist/detectors/registry/proper-noun-density.d.ts.map +1 -0
  829. package/dist/detectors/registry/proper-noun-density.js +3 -0
  830. package/dist/detectors/registry/proper-noun-density.js.map +1 -0
  831. package/dist/detectors/registry/ra-nuki.d.ts +3 -0
  832. package/dist/detectors/registry/ra-nuki.d.ts.map +1 -0
  833. package/dist/detectors/registry/ra-nuki.js +3 -0
  834. package/dist/detectors/registry/ra-nuki.js.map +1 -0
  835. package/dist/detectors/registry/reference-title-mismatch.d.ts +3 -0
  836. package/dist/detectors/registry/reference-title-mismatch.d.ts.map +1 -0
  837. package/dist/detectors/registry/reference-title-mismatch.js +3 -0
  838. package/dist/detectors/registry/reference-title-mismatch.js.map +1 -0
  839. package/dist/detectors/registry/reference-topic-missing.d.ts +3 -0
  840. package/dist/detectors/registry/reference-topic-missing.d.ts.map +1 -0
  841. package/dist/detectors/registry/reference-topic-missing.js +3 -0
  842. package/dist/detectors/registry/reference-topic-missing.js.map +1 -0
  843. package/dist/detectors/registry/relative-date-mismatch.d.ts +3 -0
  844. package/dist/detectors/registry/relative-date-mismatch.d.ts.map +1 -0
  845. package/dist/detectors/registry/relative-date-mismatch.js +3 -0
  846. package/dist/detectors/registry/relative-date-mismatch.js.map +1 -0
  847. package/dist/detectors/registry/repeated-conjunction.d.ts +3 -0
  848. package/dist/detectors/registry/repeated-conjunction.d.ts.map +1 -0
  849. package/dist/detectors/registry/repeated-conjunction.js +3 -0
  850. package/dist/detectors/registry/repeated-conjunction.js.map +1 -0
  851. package/dist/detectors/registry/repeated-head.d.ts +3 -0
  852. package/dist/detectors/registry/repeated-head.d.ts.map +1 -0
  853. package/dist/detectors/registry/repeated-head.js +3 -0
  854. package/dist/detectors/registry/repeated-head.js.map +1 -0
  855. package/dist/detectors/registry/required-sections.d.ts +3 -0
  856. package/dist/detectors/registry/required-sections.d.ts.map +1 -0
  857. package/dist/detectors/registry/required-sections.js +3 -0
  858. package/dist/detectors/registry/required-sections.js.map +1 -0
  859. package/dist/detectors/registry/requirement-modal.d.ts +3 -0
  860. package/dist/detectors/registry/requirement-modal.d.ts.map +1 -0
  861. package/dist/detectors/registry/requirement-modal.js +3 -0
  862. package/dist/detectors/registry/requirement-modal.js.map +1 -0
  863. package/dist/detectors/registry/requirement-smell.d.ts +3 -0
  864. package/dist/detectors/registry/requirement-smell.d.ts.map +1 -0
  865. package/dist/detectors/registry/requirement-smell.js +3 -0
  866. package/dist/detectors/registry/requirement-smell.js.map +1 -0
  867. package/dist/detectors/registry/rule-of-three.d.ts +3 -0
  868. package/dist/detectors/registry/rule-of-three.d.ts.map +1 -0
  869. package/dist/detectors/registry/rule-of-three.js +3 -0
  870. package/dist/detectors/registry/rule-of-three.js.map +1 -0
  871. package/dist/detectors/registry/section-uniformity.d.ts +3 -0
  872. package/dist/detectors/registry/section-uniformity.d.ts.map +1 -0
  873. package/dist/detectors/registry/section-uniformity.js +3 -0
  874. package/dist/detectors/registry/section-uniformity.js.map +1 -0
  875. package/dist/detectors/registry/sentence-comma-count.d.ts +3 -0
  876. package/dist/detectors/registry/sentence-comma-count.d.ts.map +1 -0
  877. package/dist/detectors/registry/sentence-comma-count.js +3 -0
  878. package/dist/detectors/registry/sentence-comma-count.js.map +1 -0
  879. package/dist/detectors/registry/sentence-conjunctive-count.d.ts +3 -0
  880. package/dist/detectors/registry/sentence-conjunctive-count.d.ts.map +1 -0
  881. package/dist/detectors/registry/sentence-conjunctive-count.js +3 -0
  882. package/dist/detectors/registry/sentence-conjunctive-count.js.map +1 -0
  883. package/dist/detectors/registry/sentence-ending.d.ts +3 -0
  884. package/dist/detectors/registry/sentence-ending.d.ts.map +1 -0
  885. package/dist/detectors/registry/sentence-ending.js +3 -0
  886. package/dist/detectors/registry/sentence-ending.js.map +1 -0
  887. package/dist/detectors/registry/sentence-length.d.ts +3 -0
  888. package/dist/detectors/registry/sentence-length.d.ts.map +1 -0
  889. package/dist/detectors/registry/sentence-length.js +3 -0
  890. package/dist/detectors/registry/sentence-length.js.map +1 -0
  891. package/dist/detectors/registry/sentence-rhythm.d.ts +3 -0
  892. package/dist/detectors/registry/sentence-rhythm.d.ts.map +1 -0
  893. package/dist/detectors/registry/sentence-rhythm.js +3 -0
  894. package/dist/detectors/registry/sentence-rhythm.js.map +1 -0
  895. package/dist/detectors/registry/sentence-word-count.d.ts +3 -0
  896. package/dist/detectors/registry/sentence-word-count.d.ts.map +1 -0
  897. package/dist/detectors/registry/sentence-word-count.js +3 -0
  898. package/dist/detectors/registry/sentence-word-count.js.map +1 -0
  899. package/dist/detectors/registry/space-before-punctuation.d.ts +3 -0
  900. package/dist/detectors/registry/space-before-punctuation.d.ts.map +1 -0
  901. package/dist/detectors/registry/space-before-punctuation.js +3 -0
  902. package/dist/detectors/registry/space-before-punctuation.js.map +1 -0
  903. package/dist/detectors/registry/spelling-variety.d.ts +3 -0
  904. package/dist/detectors/registry/spelling-variety.d.ts.map +1 -0
  905. package/dist/detectors/registry/spelling-variety.js +3 -0
  906. package/dist/detectors/registry/spelling-variety.js.map +1 -0
  907. package/dist/detectors/registry/stock-transition.d.ts +3 -0
  908. package/dist/detectors/registry/stock-transition.d.ts.map +1 -0
  909. package/dist/detectors/registry/stock-transition.js +3 -0
  910. package/dist/detectors/registry/stock-transition.js.map +1 -0
  911. package/dist/detectors/registry/stray-space.d.ts +3 -0
  912. package/dist/detectors/registry/stray-space.d.ts.map +1 -0
  913. package/dist/detectors/registry/stray-space.js +3 -0
  914. package/dist/detectors/registry/stray-space.js.map +1 -0
  915. package/dist/detectors/registry/summary-fact-mismatch.d.ts +3 -0
  916. package/dist/detectors/registry/summary-fact-mismatch.d.ts.map +1 -0
  917. package/dist/detectors/registry/summary-fact-mismatch.js +3 -0
  918. package/dist/detectors/registry/summary-fact-mismatch.js.map +1 -0
  919. package/dist/detectors/registry/table-header-variant.d.ts +3 -0
  920. package/dist/detectors/registry/table-header-variant.d.ts.map +1 -0
  921. package/dist/detectors/registry/table-header-variant.js +3 -0
  922. package/dist/detectors/registry/table-header-variant.js.map +1 -0
  923. package/dist/detectors/registry/title-case-mix.d.ts +3 -0
  924. package/dist/detectors/registry/title-case-mix.d.ts.map +1 -0
  925. package/dist/detectors/registry/title-case-mix.js +3 -0
  926. package/dist/detectors/registry/title-case-mix.js.map +1 -0
  927. package/dist/detectors/registry/title-length.d.ts +3 -0
  928. package/dist/detectors/registry/title-length.d.ts.map +1 -0
  929. package/dist/detectors/registry/title-length.js +3 -0
  930. package/dist/detectors/registry/title-length.js.map +1 -0
  931. package/dist/detectors/registry/topic-predicate-distance.d.ts +3 -0
  932. package/dist/detectors/registry/topic-predicate-distance.d.ts.map +1 -0
  933. package/dist/detectors/registry/topic-predicate-distance.js +3 -0
  934. package/dist/detectors/registry/topic-predicate-distance.js.map +1 -0
  935. package/dist/detectors/registry/total-mismatch.d.ts +3 -0
  936. package/dist/detectors/registry/total-mismatch.d.ts.map +1 -0
  937. package/dist/detectors/registry/total-mismatch.js +3 -0
  938. package/dist/detectors/registry/total-mismatch.js.map +1 -0
  939. package/dist/detectors/registry/unbalanced-bracket.d.ts +3 -0
  940. package/dist/detectors/registry/unbalanced-bracket.d.ts.map +1 -0
  941. package/dist/detectors/registry/unbalanced-bracket.js +3 -0
  942. package/dist/detectors/registry/unbalanced-bracket.js.map +1 -0
  943. package/dist/detectors/registry/undefined-acronym.d.ts +3 -0
  944. package/dist/detectors/registry/undefined-acronym.d.ts.map +1 -0
  945. package/dist/detectors/registry/undefined-acronym.js +3 -0
  946. package/dist/detectors/registry/undefined-acronym.js.map +1 -0
  947. package/dist/detectors/registry/unfilled-placeholder.d.ts +3 -0
  948. package/dist/detectors/registry/unfilled-placeholder.d.ts.map +1 -0
  949. package/dist/detectors/registry/unfilled-placeholder.js +3 -0
  950. package/dist/detectors/registry/unfilled-placeholder.js.map +1 -0
  951. package/dist/detectors/registry/unit-mismatch.d.ts +3 -0
  952. package/dist/detectors/registry/unit-mismatch.d.ts.map +1 -0
  953. package/dist/detectors/registry/unit-mismatch.js +3 -0
  954. package/dist/detectors/registry/unit-mismatch.js.map +1 -0
  955. package/dist/detectors/registry/unknown-word.d.ts +3 -0
  956. package/dist/detectors/registry/unknown-word.d.ts.map +1 -0
  957. package/dist/detectors/registry/unknown-word.js +3 -0
  958. package/dist/detectors/registry/unknown-word.js.map +1 -0
  959. package/dist/detectors/registry/unqualified-superlative.d.ts +3 -0
  960. package/dist/detectors/registry/unqualified-superlative.d.ts.map +1 -0
  961. package/dist/detectors/registry/unqualified-superlative.js +3 -0
  962. package/dist/detectors/registry/unqualified-superlative.js.map +1 -0
  963. package/dist/detectors/registry/unused-definition.d.ts +3 -0
  964. package/dist/detectors/registry/unused-definition.d.ts.map +1 -0
  965. package/dist/detectors/registry/unused-definition.js +3 -0
  966. package/dist/detectors/registry/unused-definition.js.map +1 -0
  967. package/dist/detectors/registry/url-run-on.d.ts +3 -0
  968. package/dist/detectors/registry/url-run-on.d.ts.map +1 -0
  969. package/dist/detectors/registry/url-run-on.js +3 -0
  970. package/dist/detectors/registry/url-run-on.js.map +1 -0
  971. package/dist/detectors/registry/use-before-definition.d.ts +3 -0
  972. package/dist/detectors/registry/use-before-definition.d.ts.map +1 -0
  973. package/dist/detectors/registry/use-before-definition.js +3 -0
  974. package/dist/detectors/registry/use-before-definition.js.map +1 -0
  975. package/dist/detectors/registry/vague-density.d.ts +3 -0
  976. package/dist/detectors/registry/vague-density.d.ts.map +1 -0
  977. package/dist/detectors/registry/vague-density.js +3 -0
  978. package/dist/detectors/registry/vague-density.js.map +1 -0
  979. package/dist/detectors/registry/vague-figure-pointer.d.ts +3 -0
  980. package/dist/detectors/registry/vague-figure-pointer.d.ts.map +1 -0
  981. package/dist/detectors/registry/vague-figure-pointer.js +3 -0
  982. package/dist/detectors/registry/vague-figure-pointer.js.map +1 -0
  983. package/dist/detectors/registry/vague-link-text.d.ts +3 -0
  984. package/dist/detectors/registry/vague-link-text.d.ts.map +1 -0
  985. package/dist/detectors/registry/vague-link-text.js +3 -0
  986. package/dist/detectors/registry/vague-link-text.js.map +1 -0
  987. package/dist/detectors/registry-files.d.ts +11 -0
  988. package/dist/detectors/registry-files.d.ts.map +1 -0
  989. package/dist/detectors/registry-files.js +9 -0
  990. package/dist/detectors/registry-files.js.map +1 -0
  991. package/dist/detectors/registry-load.d.ts +6 -0
  992. package/dist/detectors/registry-load.d.ts.map +1 -0
  993. package/dist/detectors/registry-load.js +19 -0
  994. package/dist/detectors/registry-load.js.map +1 -0
  995. package/dist/detectors/relative-dates.d.ts +4 -0
  996. package/dist/detectors/relative-dates.d.ts.map +1 -0
  997. package/dist/detectors/relative-dates.js +100 -0
  998. package/dist/detectors/relative-dates.js.map +1 -0
  999. package/dist/detectors/requirement-modal.d.ts +5 -0
  1000. package/dist/detectors/requirement-modal.d.ts.map +1 -0
  1001. package/dist/detectors/requirement-modal.js +54 -0
  1002. package/dist/detectors/requirement-modal.js.map +1 -0
  1003. package/dist/detectors/requirement-smell.d.ts +4 -0
  1004. package/dist/detectors/requirement-smell.d.ts.map +1 -0
  1005. package/dist/detectors/requirement-smell.js +41 -0
  1006. package/dist/detectors/requirement-smell.js.map +1 -0
  1007. package/dist/detectors/sentence-counts.d.ts +19 -0
  1008. package/dist/detectors/sentence-counts.d.ts.map +1 -0
  1009. package/dist/detectors/sentence-counts.js +83 -0
  1010. package/dist/detectors/sentence-counts.js.map +1 -0
  1011. package/dist/detectors/sentence-load.d.ts +8 -0
  1012. package/dist/detectors/sentence-load.d.ts.map +1 -0
  1013. package/dist/detectors/sentence-load.js +35 -0
  1014. package/dist/detectors/sentence-load.js.map +1 -0
  1015. package/dist/detectors/space-before-punctuation.d.ts +8 -0
  1016. package/dist/detectors/space-before-punctuation.d.ts.map +1 -0
  1017. package/dist/detectors/space-before-punctuation.js +24 -0
  1018. package/dist/detectors/space-before-punctuation.js.map +1 -0
  1019. package/dist/detectors/spelling-variety.d.ts +24 -0
  1020. package/dist/detectors/spelling-variety.d.ts.map +1 -0
  1021. package/dist/detectors/spelling-variety.js +59 -0
  1022. package/dist/detectors/spelling-variety.js.map +1 -0
  1023. package/dist/detectors/structure-tree.d.ts.map +1 -1
  1024. package/dist/detectors/structure-tree.js +3 -1
  1025. package/dist/detectors/structure-tree.js.map +1 -1
  1026. package/dist/detectors/structure.d.ts.map +1 -1
  1027. package/dist/detectors/structure.js +16 -2
  1028. package/dist/detectors/structure.js.map +1 -1
  1029. package/dist/detectors/superlative-comparison.d.ts +20 -0
  1030. package/dist/detectors/superlative-comparison.d.ts.map +1 -0
  1031. package/dist/detectors/superlative-comparison.js +32 -0
  1032. package/dist/detectors/superlative-comparison.js.map +1 -0
  1033. package/dist/detectors/table-header.d.ts +28 -0
  1034. package/dist/detectors/table-header.d.ts.map +1 -0
  1035. package/dist/detectors/table-header.js +148 -0
  1036. package/dist/detectors/table-header.js.map +1 -0
  1037. package/dist/detectors/team.d.ts +3 -1
  1038. package/dist/detectors/team.d.ts.map +1 -1
  1039. package/dist/detectors/team.js +10 -3
  1040. package/dist/detectors/team.js.map +1 -1
  1041. package/dist/detectors/unit-consistency.d.ts +4 -0
  1042. package/dist/detectors/unit-consistency.d.ts.map +1 -0
  1043. package/dist/detectors/unit-consistency.js +53 -0
  1044. package/dist/detectors/unit-consistency.js.map +1 -0
  1045. package/dist/detectors/unknown-word.d.ts +7 -0
  1046. package/dist/detectors/unknown-word.d.ts.map +1 -0
  1047. package/dist/detectors/unknown-word.js +40 -0
  1048. package/dist/detectors/unknown-word.js.map +1 -0
  1049. package/dist/detectors/url-run-on.d.ts.map +1 -1
  1050. package/dist/detectors/url-run-on.js +6 -1
  1051. package/dist/detectors/url-run-on.js.map +1 -1
  1052. package/dist/detectors/vague-figure-pointer.d.ts +10 -0
  1053. package/dist/detectors/vague-figure-pointer.d.ts.map +1 -0
  1054. package/dist/detectors/vague-figure-pointer.js +46 -0
  1055. package/dist/detectors/vague-figure-pointer.js.map +1 -0
  1056. package/dist/detectors/vague-link-text.d.ts +4 -0
  1057. package/dist/detectors/vague-link-text.d.ts.map +1 -0
  1058. package/dist/detectors/vague-link-text.js +11 -0
  1059. package/dist/detectors/vague-link-text.js.map +1 -0
  1060. package/dist/detectors/word-list.d.ts +2 -0
  1061. package/dist/detectors/word-list.d.ts.map +1 -1
  1062. package/dist/detectors/word-list.js +4 -1
  1063. package/dist/detectors/word-list.js.map +1 -1
  1064. package/dist/document-reading.d.ts +15 -0
  1065. package/dist/document-reading.d.ts.map +1 -0
  1066. package/dist/document-reading.js +23 -0
  1067. package/dist/document-reading.js.map +1 -0
  1068. package/dist/document.d.ts +9 -3
  1069. package/dist/document.d.ts.map +1 -1
  1070. package/dist/document.js +61 -36
  1071. package/dist/document.js.map +1 -1
  1072. package/dist/experimental-alone.d.ts +13 -0
  1073. package/dist/experimental-alone.d.ts.map +1 -0
  1074. package/dist/experimental-alone.js +11 -0
  1075. package/dist/experimental-alone.js.map +1 -0
  1076. package/dist/extension/document-view.d.ts +7 -0
  1077. package/dist/extension/document-view.d.ts.map +1 -0
  1078. package/dist/extension/document-view.js +91 -0
  1079. package/dist/extension/document-view.js.map +1 -0
  1080. package/dist/extension/failure-text.d.ts +5 -0
  1081. package/dist/extension/failure-text.d.ts.map +1 -0
  1082. package/dist/extension/failure-text.js +33 -0
  1083. package/dist/extension/failure-text.js.map +1 -0
  1084. package/dist/extension/import-default.d.ts +7 -0
  1085. package/dist/extension/import-default.d.ts.map +1 -0
  1086. package/dist/extension/import-default.js +21 -0
  1087. package/dist/extension/import-default.js.map +1 -0
  1088. package/dist/extension/load.d.ts +28 -0
  1089. package/dist/extension/load.d.ts.map +1 -0
  1090. package/dist/extension/load.js +51 -0
  1091. package/dist/extension/load.js.map +1 -0
  1092. package/dist/extension/module-detector.d.ts +21 -0
  1093. package/dist/extension/module-detector.d.ts.map +1 -0
  1094. package/dist/extension/module-detector.js +49 -0
  1095. package/dist/extension/module-detector.js.map +1 -0
  1096. package/dist/extension/plugin-load.d.ts +9 -0
  1097. package/dist/extension/plugin-load.d.ts.map +1 -0
  1098. package/dist/extension/plugin-load.js +68 -0
  1099. package/dist/extension/plugin-load.js.map +1 -0
  1100. package/dist/extension/plugin-name.d.ts +8 -0
  1101. package/dist/extension/plugin-name.d.ts.map +1 -0
  1102. package/dist/extension/plugin-name.js +22 -0
  1103. package/dist/extension/plugin-name.js.map +1 -0
  1104. package/dist/extension/plugin-parse.d.ts +41 -0
  1105. package/dist/extension/plugin-parse.d.ts.map +1 -0
  1106. package/dist/extension/plugin-parse.js +156 -0
  1107. package/dist/extension/plugin-parse.js.map +1 -0
  1108. package/dist/extension/problem-text.d.ts +5 -0
  1109. package/dist/extension/problem-text.d.ts.map +1 -0
  1110. package/dist/extension/problem-text.js +74 -0
  1111. package/dist/extension/problem-text.js.map +1 -0
  1112. package/dist/extension/real-path.d.ts +3 -0
  1113. package/dist/extension/real-path.d.ts.map +1 -0
  1114. package/dist/extension/real-path.js +8 -0
  1115. package/dist/extension/real-path.js.map +1 -0
  1116. package/dist/extension/returned-findings.d.ts +17 -0
  1117. package/dist/extension/returned-findings.d.ts.map +1 -0
  1118. package/dist/extension/returned-findings.js +48 -0
  1119. package/dist/extension/returned-findings.js.map +1 -0
  1120. package/dist/extension/rule-export.d.ts +13 -0
  1121. package/dist/extension/rule-export.d.ts.map +1 -0
  1122. package/dist/extension/rule-export.js +16 -0
  1123. package/dist/extension/rule-export.js.map +1 -0
  1124. package/dist/facts/fact-conflicts.d.ts +15 -0
  1125. package/dist/facts/fact-conflicts.d.ts.map +1 -0
  1126. package/dist/facts/fact-conflicts.js +50 -0
  1127. package/dist/facts/fact-conflicts.js.map +1 -0
  1128. package/dist/facts/fact-scope.d.ts +17 -0
  1129. package/dist/facts/fact-scope.d.ts.map +1 -0
  1130. package/dist/facts/fact-scope.js +112 -0
  1131. package/dist/facts/fact-scope.js.map +1 -0
  1132. package/dist/facts/fact-values.d.ts +18 -0
  1133. package/dist/facts/fact-values.d.ts.map +1 -0
  1134. package/dist/facts/fact-values.js +98 -0
  1135. package/dist/facts/fact-values.js.map +1 -0
  1136. package/dist/facts/labelled-facts.d.ts +31 -0
  1137. package/dist/facts/labelled-facts.d.ts.map +1 -0
  1138. package/dist/facts/labelled-facts.js +94 -0
  1139. package/dist/facts/labelled-facts.js.map +1 -0
  1140. package/dist/facts/measures.d.ts +20 -0
  1141. package/dist/facts/measures.d.ts.map +1 -0
  1142. package/dist/facts/measures.js +40 -0
  1143. package/dist/facts/measures.js.map +1 -0
  1144. package/dist/facts/table-facts.d.ts +5 -0
  1145. package/dist/facts/table-facts.d.ts.map +1 -0
  1146. package/dist/facts/table-facts.js +55 -0
  1147. package/dist/facts/table-facts.js.map +1 -0
  1148. package/dist/facts/trim-marks.d.ts +7 -0
  1149. package/dist/facts/trim-marks.d.ts.map +1 -0
  1150. package/dist/facts/trim-marks.js +18 -0
  1151. package/dist/facts/trim-marks.js.map +1 -0
  1152. package/dist/facts/unit-conflicts.d.ts +14 -0
  1153. package/dist/facts/unit-conflicts.d.ts.map +1 -0
  1154. package/dist/facts/unit-conflicts.js +36 -0
  1155. package/dist/facts/unit-conflicts.js.map +1 -0
  1156. package/dist/feedback/draft.d.ts +2 -0
  1157. package/dist/feedback/draft.d.ts.map +1 -1
  1158. package/dist/feedback/draft.js +3 -0
  1159. package/dist/feedback/draft.js.map +1 -1
  1160. package/dist/figure-references.d.ts +26 -2
  1161. package/dist/figure-references.d.ts.map +1 -1
  1162. package/dist/figure-references.js +64 -13
  1163. package/dist/figure-references.js.map +1 -1
  1164. package/dist/files.d.ts +3 -1
  1165. package/dist/files.d.ts.map +1 -1
  1166. package/dist/files.js +10 -7
  1167. package/dist/files.js.map +1 -1
  1168. package/dist/finding-order.d.ts +9 -0
  1169. package/dist/finding-order.d.ts.map +1 -0
  1170. package/dist/finding-order.js +3 -0
  1171. package/dist/finding-order.js.map +1 -0
  1172. package/dist/fix-plan/mode.d.ts +26 -0
  1173. package/dist/fix-plan/mode.d.ts.map +1 -0
  1174. package/dist/fix-plan/mode.js +20 -0
  1175. package/dist/fix-plan/mode.js.map +1 -0
  1176. package/dist/fix-plan/plan.d.ts +89 -0
  1177. package/dist/fix-plan/plan.d.ts.map +1 -0
  1178. package/dist/fix-plan/plan.js +111 -0
  1179. package/dist/fix-plan/plan.js.map +1 -0
  1180. package/dist/fix-plan/render.d.ts +6 -0
  1181. package/dist/fix-plan/render.d.ts.map +1 -0
  1182. package/dist/fix-plan/render.js +118 -0
  1183. package/dist/fix-plan/render.js.map +1 -0
  1184. package/dist/fix-plan/structure-target-text.d.ts +15 -0
  1185. package/dist/fix-plan/structure-target-text.d.ts.map +1 -0
  1186. package/dist/fix-plan/structure-target-text.js +57 -0
  1187. package/dist/fix-plan/structure-target-text.js.map +1 -0
  1188. package/dist/fix-plan/structure-targets.d.ts +24 -0
  1189. package/dist/fix-plan/structure-targets.d.ts.map +1 -0
  1190. package/dist/fix-plan/structure-targets.js +27 -0
  1191. package/dist/fix-plan/structure-targets.js.map +1 -0
  1192. package/dist/fix-plan/text.d.ts +35 -0
  1193. package/dist/fix-plan/text.d.ts.map +1 -0
  1194. package/dist/fix-plan/text.js +97 -0
  1195. package/dist/fix-plan/text.js.map +1 -0
  1196. package/dist/grade/baseline-text.d.ts +27 -0
  1197. package/dist/grade/baseline-text.d.ts.map +1 -0
  1198. package/dist/grade/baseline-text.js +49 -0
  1199. package/dist/grade/baseline-text.js.map +1 -0
  1200. package/dist/grade/baseline.d.ts +51 -0
  1201. package/dist/grade/baseline.d.ts.map +1 -0
  1202. package/dist/grade/baseline.js +84 -0
  1203. package/dist/grade/baseline.js.map +1 -0
  1204. package/dist/grade/checks.d.ts +28 -0
  1205. package/dist/grade/checks.d.ts.map +1 -0
  1206. package/dist/grade/checks.js +50 -0
  1207. package/dist/grade/checks.js.map +1 -0
  1208. package/dist/grade/context-support.d.ts +23 -0
  1209. package/dist/grade/context-support.d.ts.map +1 -0
  1210. package/dist/grade/context-support.js +33 -0
  1211. package/dist/grade/context-support.js.map +1 -0
  1212. package/dist/grade/contexts.d.ts +16 -0
  1213. package/dist/grade/contexts.d.ts.map +1 -0
  1214. package/dist/grade/contexts.js +34 -0
  1215. package/dist/grade/contexts.js.map +1 -0
  1216. package/dist/grade/grade-item.d.ts +12 -0
  1217. package/dist/grade/grade-item.d.ts.map +1 -0
  1218. package/dist/grade/grade-item.js +103 -0
  1219. package/dist/grade/grade-item.js.map +1 -0
  1220. package/dist/grade/item.d.ts +54 -0
  1221. package/dist/grade/item.d.ts.map +1 -0
  1222. package/dist/grade/item.js +155 -0
  1223. package/dist/grade/item.js.map +1 -0
  1224. package/dist/grade/order.d.ts +7 -0
  1225. package/dist/grade/order.d.ts.map +1 -0
  1226. package/dist/grade/order.js +7 -0
  1227. package/dist/grade/order.js.map +1 -0
  1228. package/dist/grade/pairing.d.ts +13 -0
  1229. package/dist/grade/pairing.d.ts.map +1 -0
  1230. package/dist/grade/pairing.js +14 -0
  1231. package/dist/grade/pairing.js.map +1 -0
  1232. package/dist/grade/rates.d.ts +14 -0
  1233. package/dist/grade/rates.d.ts.map +1 -0
  1234. package/dist/grade/rates.js +26 -0
  1235. package/dist/grade/rates.js.map +1 -0
  1236. package/dist/grade/render-baseline.d.ts +7 -0
  1237. package/dist/grade/render-baseline.d.ts.map +1 -0
  1238. package/dist/grade/render-baseline.js +44 -0
  1239. package/dist/grade/render-baseline.js.map +1 -0
  1240. package/dist/grade/render-markdown.d.ts +15 -0
  1241. package/dist/grade/render-markdown.d.ts.map +1 -0
  1242. package/dist/grade/render-markdown.js +41 -0
  1243. package/dist/grade/render-markdown.js.map +1 -0
  1244. package/dist/grade/render-variants.d.ts +12 -0
  1245. package/dist/grade/render-variants.d.ts.map +1 -0
  1246. package/dist/grade/render-variants.js +80 -0
  1247. package/dist/grade/render-variants.js.map +1 -0
  1248. package/dist/grade/render.d.ts +14 -0
  1249. package/dist/grade/render.d.ts.map +1 -0
  1250. package/dist/grade/render.js +52 -0
  1251. package/dist/grade/render.js.map +1 -0
  1252. package/dist/grade/result-name.d.ts +7 -0
  1253. package/dist/grade/result-name.d.ts.map +1 -0
  1254. package/dist/grade/result-name.js +6 -0
  1255. package/dist/grade/result-name.js.map +1 -0
  1256. package/dist/grade/result.d.ts +101 -0
  1257. package/dist/grade/result.d.ts.map +1 -0
  1258. package/dist/grade/result.js +2 -0
  1259. package/dist/grade/result.js.map +1 -0
  1260. package/dist/grade/results-read.d.ts +10 -0
  1261. package/dist/grade/results-read.d.ts.map +1 -0
  1262. package/dist/grade/results-read.js +82 -0
  1263. package/dist/grade/results-read.js.map +1 -0
  1264. package/dist/grade/rubric-verdict.d.ts +19 -0
  1265. package/dist/grade/rubric-verdict.d.ts.map +1 -0
  1266. package/dist/grade/rubric-verdict.js +65 -0
  1267. package/dist/grade/rubric-verdict.js.map +1 -0
  1268. package/dist/grade/rubric.d.ts +52 -0
  1269. package/dist/grade/rubric.d.ts.map +1 -0
  1270. package/dist/grade/rubric.js +149 -0
  1271. package/dist/grade/rubric.js.map +1 -0
  1272. package/dist/grade/scorer.d.ts +13 -0
  1273. package/dist/grade/scorer.d.ts.map +1 -0
  1274. package/dist/grade/scorer.js +15 -0
  1275. package/dist/grade/scorer.js.map +1 -0
  1276. package/dist/grade/setup.d.ts +9 -0
  1277. package/dist/grade/setup.d.ts.map +1 -0
  1278. package/dist/grade/setup.js +31 -0
  1279. package/dist/grade/setup.js.map +1 -0
  1280. package/dist/grade/stamp.d.ts +23 -0
  1281. package/dist/grade/stamp.d.ts.map +1 -0
  1282. package/dist/grade/stamp.js +36 -0
  1283. package/dist/grade/stamp.js.map +1 -0
  1284. package/dist/grade/summary.d.ts +43 -0
  1285. package/dist/grade/summary.d.ts.map +1 -0
  1286. package/dist/grade/summary.js +72 -0
  1287. package/dist/grade/summary.js.map +1 -0
  1288. package/dist/grade/text.d.ts +32 -0
  1289. package/dist/grade/text.d.ts.map +1 -0
  1290. package/dist/grade/text.js +117 -0
  1291. package/dist/grade/text.js.map +1 -0
  1292. package/dist/grade/variants-input.d.ts +12 -0
  1293. package/dist/grade/variants-input.d.ts.map +1 -0
  1294. package/dist/grade/variants-input.js +42 -0
  1295. package/dist/grade/variants-input.js.map +1 -0
  1296. package/dist/grade/variants-text.d.ts +31 -0
  1297. package/dist/grade/variants-text.d.ts.map +1 -0
  1298. package/dist/grade/variants-text.js +57 -0
  1299. package/dist/grade/variants-text.js.map +1 -0
  1300. package/dist/grade/variants.d.ts +63 -0
  1301. package/dist/grade/variants.d.ts.map +1 -0
  1302. package/dist/grade/variants.js +66 -0
  1303. package/dist/grade/variants.js.map +1 -0
  1304. package/dist/grade/verdict.d.ts +18 -0
  1305. package/dist/grade/verdict.d.ts.map +1 -0
  1306. package/dist/grade/verdict.js +17 -0
  1307. package/dist/grade/verdict.js.map +1 -0
  1308. package/dist/grade-api.d.ts +53 -0
  1309. package/dist/grade-api.d.ts.map +1 -0
  1310. package/dist/grade-api.js +140 -0
  1311. package/dist/grade-api.js.map +1 -0
  1312. package/dist/heading-numbering.d.ts +32 -0
  1313. package/dist/heading-numbering.d.ts.map +1 -0
  1314. package/dist/heading-numbering.js +72 -0
  1315. package/dist/heading-numbering.js.map +1 -0
  1316. package/dist/kana-spelling.d.ts +14 -0
  1317. package/dist/kana-spelling.d.ts.map +1 -0
  1318. package/dist/kana-spelling.js +43 -0
  1319. package/dist/kana-spelling.js.map +1 -0
  1320. package/dist/language-sample.d.ts +2 -0
  1321. package/dist/language-sample.d.ts.map +1 -0
  1322. package/dist/language-sample.js +41 -0
  1323. package/dist/language-sample.js.map +1 -0
  1324. package/dist/link-line.d.ts +8 -0
  1325. package/dist/link-line.d.ts.map +1 -0
  1326. package/dist/link-line.js +12 -0
  1327. package/dist/link-line.js.map +1 -0
  1328. package/dist/link-text.d.ts +12 -0
  1329. package/dist/link-text.d.ts.map +1 -0
  1330. package/dist/link-text.js +45 -0
  1331. package/dist/link-text.js.map +1 -0
  1332. package/dist/long-vowel.d.ts +9 -6
  1333. package/dist/long-vowel.d.ts.map +1 -1
  1334. package/dist/long-vowel.js +15 -8
  1335. package/dist/long-vowel.js.map +1 -1
  1336. package/dist/markup.d.ts.map +1 -1
  1337. package/dist/markup.js +4 -2
  1338. package/dist/markup.js.map +1 -1
  1339. package/dist/name-variants.d.ts +25 -0
  1340. package/dist/name-variants.d.ts.map +1 -0
  1341. package/dist/name-variants.js +181 -0
  1342. package/dist/name-variants.js.map +1 -0
  1343. package/dist/node-version.d.ts +7 -0
  1344. package/dist/node-version.d.ts.map +1 -0
  1345. package/dist/node-version.js +19 -0
  1346. package/dist/node-version.js.map +1 -0
  1347. package/dist/not-run.d.ts +14 -0
  1348. package/dist/not-run.d.ts.map +1 -0
  1349. package/dist/not-run.js +12 -0
  1350. package/dist/not-run.js.map +1 -0
  1351. package/dist/orthography.d.ts +8 -1
  1352. package/dist/orthography.d.ts.map +1 -1
  1353. package/dist/orthography.js +33 -12
  1354. package/dist/orthography.js.map +1 -1
  1355. package/dist/outline/render.d.ts +20 -0
  1356. package/dist/outline/render.d.ts.map +1 -0
  1357. package/dist/outline/render.js +66 -0
  1358. package/dist/outline/render.js.map +1 -0
  1359. package/dist/outline/shape.d.ts +26 -0
  1360. package/dist/outline/shape.d.ts.map +1 -0
  1361. package/dist/outline/shape.js +37 -0
  1362. package/dist/outline/shape.js.map +1 -0
  1363. package/dist/outline/structure-render.d.ts +15 -0
  1364. package/dist/outline/structure-render.d.ts.map +1 -0
  1365. package/dist/outline/structure-render.js +80 -0
  1366. package/dist/outline/structure-render.js.map +1 -0
  1367. package/dist/outline/structure-text.d.ts +30 -0
  1368. package/dist/outline/structure-text.d.ts.map +1 -0
  1369. package/dist/outline/structure-text.js +87 -0
  1370. package/dist/outline/structure-text.js.map +1 -0
  1371. package/dist/outline/text.d.ts +24 -0
  1372. package/dist/outline/text.d.ts.map +1 -0
  1373. package/dist/outline/text.js +33 -0
  1374. package/dist/outline/text.js.map +1 -0
  1375. package/dist/paragraph-runs.d.ts +7 -0
  1376. package/dist/paragraph-runs.d.ts.map +1 -0
  1377. package/dist/paragraph-runs.js +27 -0
  1378. package/dist/paragraph-runs.js.map +1 -0
  1379. package/dist/person-forms.d.ts +30 -0
  1380. package/dist/person-forms.d.ts.map +1 -0
  1381. package/dist/person-forms.js +96 -0
  1382. package/dist/person-forms.js.map +1 -0
  1383. package/dist/plugin.d.ts +38 -2
  1384. package/dist/plugin.d.ts.map +1 -1
  1385. package/dist/reasons.d.ts +3 -0
  1386. package/dist/reasons.d.ts.map +1 -1
  1387. package/dist/reasons.js +4 -0
  1388. package/dist/reasons.js.map +1 -1
  1389. package/dist/render/compact.d.ts +3 -1
  1390. package/dist/render/compact.d.ts.map +1 -1
  1391. package/dist/render/compact.js +8 -2
  1392. package/dist/render/compact.js.map +1 -1
  1393. package/dist/render/explain.d.ts +5 -1
  1394. package/dist/render/explain.d.ts.map +1 -1
  1395. package/dist/render/explain.js +35 -16
  1396. package/dist/render/explain.js.map +1 -1
  1397. package/dist/render/friendly.d.ts.map +1 -1
  1398. package/dist/render/friendly.js +13 -1
  1399. package/dist/render/friendly.js.map +1 -1
  1400. package/dist/render/rules-json.d.ts.map +1 -1
  1401. package/dist/render/rules-json.js +21 -13
  1402. package/dist/render/rules-json.js.map +1 -1
  1403. package/dist/render/rules-table.d.ts +2 -0
  1404. package/dist/render/rules-table.d.ts.map +1 -1
  1405. package/dist/render/rules-table.js +1 -1
  1406. package/dist/render/rules-table.js.map +1 -1
  1407. package/dist/render/sarif.d.ts +7 -1
  1408. package/dist/render/sarif.d.ts.map +1 -1
  1409. package/dist/render/sarif.js +20 -1
  1410. package/dist/render/sarif.js.map +1 -1
  1411. package/dist/render/suppressions.d.ts +3 -0
  1412. package/dist/render/suppressions.d.ts.map +1 -1
  1413. package/dist/render/suppressions.js +20 -1
  1414. package/dist/render/suppressions.js.map +1 -1
  1415. package/dist/resolve-genre.d.ts +1 -2
  1416. package/dist/resolve-genre.d.ts.map +1 -1
  1417. package/dist/rule-guide.d.ts +21 -0
  1418. package/dist/rule-guide.d.ts.map +1 -1
  1419. package/dist/rule-guide.js +15 -0
  1420. package/dist/rule-guide.js.map +1 -1
  1421. package/dist/run-semantic.d.ts.map +1 -1
  1422. package/dist/run-semantic.js +2 -1
  1423. package/dist/run-semantic.js.map +1 -1
  1424. package/dist/run.d.ts +8 -1
  1425. package/dist/run.d.ts.map +1 -1
  1426. package/dist/run.js +64 -24
  1427. package/dist/run.js.map +1 -1
  1428. package/dist/sentence-load.d.ts +19 -0
  1429. package/dist/sentence-load.d.ts.map +1 -0
  1430. package/dist/sentence-load.js +70 -0
  1431. package/dist/sentence-load.js.map +1 -0
  1432. package/dist/setting-problems.d.ts.map +1 -1
  1433. package/dist/setting-problems.js +3 -1
  1434. package/dist/setting-problems.js.map +1 -1
  1435. package/dist/spacing-minority.d.ts +16 -0
  1436. package/dist/spacing-minority.d.ts.map +1 -0
  1437. package/dist/spacing-minority.js +23 -0
  1438. package/dist/spacing-minority.js.map +1 -0
  1439. package/dist/spelling-variants.d.ts +17 -0
  1440. package/dist/spelling-variants.d.ts.map +1 -0
  1441. package/dist/spelling-variants.js +32 -0
  1442. package/dist/spelling-variants.js.map +1 -0
  1443. package/dist/spelling.d.ts +32 -0
  1444. package/dist/spelling.d.ts.map +1 -0
  1445. package/dist/spelling.js +54 -0
  1446. package/dist/spelling.js.map +1 -0
  1447. package/dist/stet-block.d.ts +5 -0
  1448. package/dist/stet-block.d.ts.map +1 -0
  1449. package/dist/stet-block.js +59 -0
  1450. package/dist/stet-block.js.map +1 -0
  1451. package/dist/stet.d.ts +4 -0
  1452. package/dist/stet.d.ts.map +1 -1
  1453. package/dist/stet.js +31 -11
  1454. package/dist/stet.js.map +1 -1
  1455. package/dist/structure/absolute-exception.d.ts +35 -0
  1456. package/dist/structure/absolute-exception.d.ts.map +1 -0
  1457. package/dist/structure/absolute-exception.js +70 -0
  1458. package/dist/structure/absolute-exception.js.map +1 -0
  1459. package/dist/structure/date-range.d.ts +10 -0
  1460. package/dist/structure/date-range.d.ts.map +1 -1
  1461. package/dist/structure/date-range.js +33 -1
  1462. package/dist/structure/date-range.js.map +1 -1
  1463. package/dist/structure/definition-use.d.ts +32 -0
  1464. package/dist/structure/definition-use.d.ts.map +1 -0
  1465. package/dist/structure/definition-use.js +102 -0
  1466. package/dist/structure/definition-use.js.map +1 -0
  1467. package/dist/structure/issues.d.ts +5 -0
  1468. package/dist/structure/issues.d.ts.map +1 -1
  1469. package/dist/structure/issues.js +22 -0
  1470. package/dist/structure/issues.js.map +1 -1
  1471. package/dist/structure/lazy-tree.d.ts +8 -0
  1472. package/dist/structure/lazy-tree.d.ts.map +1 -0
  1473. package/dist/structure/lazy-tree.js +14 -0
  1474. package/dist/structure/lazy-tree.js.map +1 -0
  1475. package/dist/structure/modal-conflict.d.ts +29 -0
  1476. package/dist/structure/modal-conflict.d.ts.map +1 -0
  1477. package/dist/structure/modal-conflict.js +74 -0
  1478. package/dist/structure/modal-conflict.js.map +1 -0
  1479. package/dist/structure/numbered-clauses.d.ts +4 -0
  1480. package/dist/structure/numbered-clauses.d.ts.map +1 -0
  1481. package/dist/structure/numbered-clauses.js +9 -0
  1482. package/dist/structure/numbered-clauses.js.map +1 -0
  1483. package/dist/structure/reference-text.d.ts +29 -0
  1484. package/dist/structure/reference-text.d.ts.map +1 -0
  1485. package/dist/structure/reference-text.js +79 -0
  1486. package/dist/structure/reference-text.js.map +1 -0
  1487. package/dist/structure/universal.d.ts.map +1 -1
  1488. package/dist/structure/universal.js +8 -2
  1489. package/dist/structure/universal.js.map +1 -1
  1490. package/dist/structure-shape/baseline-load.d.ts +4 -0
  1491. package/dist/structure-shape/baseline-load.d.ts.map +1 -0
  1492. package/dist/structure-shape/baseline-load.js +17 -0
  1493. package/dist/structure-shape/baseline-load.js.map +1 -0
  1494. package/dist/structure-shape/baseline.d.ts +19 -0
  1495. package/dist/structure-shape/baseline.d.ts.map +1 -0
  1496. package/dist/structure-shape/baseline.js +44 -0
  1497. package/dist/structure-shape/baseline.js.map +1 -0
  1498. package/dist/structure-shape/features.d.ts +25 -0
  1499. package/dist/structure-shape/features.d.ts.map +1 -0
  1500. package/dist/structure-shape/features.js +149 -0
  1501. package/dist/structure-shape/features.js.map +1 -0
  1502. package/dist/structure-shape/heading-words.d.ts +14 -0
  1503. package/dist/structure-shape/heading-words.d.ts.map +1 -0
  1504. package/dist/structure-shape/heading-words.js +54 -0
  1505. package/dist/structure-shape/heading-words.js.map +1 -0
  1506. package/dist/structure-shape/of-document.d.ts +5 -0
  1507. package/dist/structure-shape/of-document.d.ts.map +1 -0
  1508. package/dist/structure-shape/of-document.js +6 -0
  1509. package/dist/structure-shape/of-document.js.map +1 -0
  1510. package/dist/structure-shape/restatement.d.ts +11 -0
  1511. package/dist/structure-shape/restatement.d.ts.map +1 -0
  1512. package/dist/structure-shape/restatement.js +32 -0
  1513. package/dist/structure-shape/restatement.js.map +1 -0
  1514. package/dist/structure-shape/score.d.ts +30 -0
  1515. package/dist/structure-shape/score.d.ts.map +1 -0
  1516. package/dist/structure-shape/score.js +37 -0
  1517. package/dist/structure-shape/score.js.map +1 -0
  1518. package/dist/style-parse.d.ts +6 -0
  1519. package/dist/style-parse.d.ts.map +1 -1
  1520. package/dist/style-parse.js +32 -4
  1521. package/dist/style-parse.js.map +1 -1
  1522. package/dist/subheading-line.d.ts +19 -2
  1523. package/dist/subheading-line.d.ts.map +1 -1
  1524. package/dist/subheading-line.js +39 -11
  1525. package/dist/subheading-line.js.map +1 -1
  1526. package/dist/tag-coverage.d.ts +8 -0
  1527. package/dist/tag-coverage.d.ts.map +1 -0
  1528. package/dist/tag-coverage.js +7 -0
  1529. package/dist/tag-coverage.js.map +1 -0
  1530. package/dist/yaml-values.d.ts +13 -0
  1531. package/dist/yaml-values.d.ts.map +1 -0
  1532. package/dist/yaml-values.js +58 -0
  1533. package/dist/yaml-values.js.map +1 -0
  1534. package/genres.yaml +145 -1
  1535. package/package.json +12 -3
  1536. package/rules/absolute-exception.yaml +83 -0
  1537. package/rules/abstract-length.yaml +130 -0
  1538. package/rules/acronym-expansion-conflict.yaml +82 -0
  1539. package/rules/adverb-overuse.yaml +2 -2
  1540. package/rules/adversative-ga-repeat.yaml +58 -0
  1541. package/rules/agentless-passive.yaml +28 -0
  1542. package/rules/ai-generated-composite.yaml +2 -1
  1543. package/rules/ai-structure.yaml +202 -0
  1544. package/rules/ai-tell.yaml +35 -1
  1545. package/rules/announced-count-mismatch.yaml +2 -2
  1546. package/rules/announcing-opener.yaml +32 -1
  1547. package/rules/article-sound.yaml +58 -0
  1548. package/rules/assistant-residue.yaml +30 -0
  1549. package/rules/bold-density.yaml +28 -0
  1550. package/rules/bold-label-list.yaml +81 -0
  1551. package/rules/bracket-nesting.yaml +74 -0
  1552. package/rules/chat-citation-residue.yaml +77 -0
  1553. package/rules/citation-reference-mismatch.yaml +110 -0
  1554. package/rules/citation-style-mix.yaml +109 -0
  1555. package/rules/clause-chain.yaml +59 -0
  1556. package/rules/closing-cliche.yaml +27 -2
  1557. package/rules/colon-lead-in.yaml +29 -5
  1558. package/rules/contrast-framing.yaml +34 -3
  1559. package/rules/cross-doc-broken-link.yaml +83 -0
  1560. package/rules/cross-doc-term-variant.yaml +73 -0
  1561. package/rules/cushion-phrase-density.yaml +32 -5
  1562. package/rules/dangling-reference.yaml +1 -0
  1563. package/rules/date-format-consistency.yaml +85 -0
  1564. package/rules/date-order.yaml +1 -0
  1565. package/rules/date-range-reversed.yaml +2 -2
  1566. package/rules/date-without-year.yaml +70 -0
  1567. package/rules/demonstrative-opener-run.yaml +59 -0
  1568. package/rules/double-negative.yaml +51 -0
  1569. package/rules/doubled-nado.yaml +57 -0
  1570. package/rules/doubled-punctuation.yaml +2 -2
  1571. package/rules/doubled-word.yaml +2 -2
  1572. package/rules/duplicate-heading.yaml +78 -0
  1573. package/rules/duration-mismatch.yaml +73 -0
  1574. package/rules/elapsed-years-mismatch.yaml +79 -0
  1575. package/rules/emoji-density.yaml +5 -4
  1576. package/rules/emoji-heading.yaml +128 -0
  1577. package/rules/empty-intensifier.yaml +25 -0
  1578. package/rules/empty-list-item.yaml +85 -0
  1579. package/rules/empty-section.yaml +74 -0
  1580. package/rules/empty-table-cell.yaml +89 -0
  1581. package/rules/excessive-hedging.yaml +32 -4
  1582. package/rules/fact-conflict.yaml +110 -0
  1583. package/rules/figure-reference-order.yaml +109 -0
  1584. package/rules/fullwidth-alnum-consistency.yaml +53 -0
  1585. package/rules/hankaku-kana.yaml +41 -0
  1586. package/rules/heading-numbering-mix.yaml +140 -0
  1587. package/rules/homophone-slip.yaml +58 -0
  1588. package/rules/idiom-misuse.yaml +60 -0
  1589. package/rules/image-alt-text.yaml +1 -1
  1590. package/rules/invisible-character.yaml +63 -0
  1591. package/rules/katakana-density.yaml +93 -0
  1592. package/rules/katakana-long-vowel.yaml +10 -9
  1593. package/rules/known-misspelling.yaml +76 -0
  1594. package/rules/latin-spacing.yaml +12 -5
  1595. package/rules/list-item-form-mix.yaml +134 -0
  1596. package/rules/max-kanji-continuous.yaml +1 -0
  1597. package/rules/max-paragraph-length.yaml +1 -0
  1598. package/rules/max-sentence-length.yaml +26 -0
  1599. package/rules/max-ten.yaml +59 -0
  1600. package/rules/misconversion.yaml +61 -0
  1601. package/rules/modal-conflict.yaml +106 -0
  1602. package/rules/name-variant.yaml +88 -0
  1603. package/rules/no-doubled-joshi.yaml +1 -0
  1604. package/rules/no-em-dash.yaml +26 -2
  1605. package/rules/no-lead.yaml +95 -0
  1606. package/rules/no-mixed-desumasu.yaml +1 -0
  1607. package/rules/nominalization.yaml +89 -0
  1608. package/rules/number-style-consistency.yaml +105 -0
  1609. package/rules/number-without-unit.yaml +96 -0
  1610. package/rules/one-sentence-paragraph-run.yaml +95 -0
  1611. package/rules/orthographic-variant.yaml +87 -0
  1612. package/rules/outside-announced-list.yaml +80 -0
  1613. package/rules/padded-intro.yaml +25 -0
  1614. package/rules/paragraph-length-variance.yaml +26 -2
  1615. package/rules/paragraph-restatement.yaml +96 -0
  1616. package/rules/person-consistency.yaml +59 -0
  1617. package/rules/preferred-term.yaml +1 -0
  1618. package/rules/proper-noun-density.yaml +14 -5
  1619. package/rules/ra-nuki.yaml +43 -0
  1620. package/rules/redundant-expression.yaml +76 -0
  1621. package/rules/reference-title-mismatch.yaml +101 -0
  1622. package/rules/reference-topic-missing.yaml +101 -0
  1623. package/rules/relative-date-mismatch.yaml +71 -0
  1624. package/rules/requirement-modal.yaml +94 -0
  1625. package/rules/requirement-smell.yaml +70 -0
  1626. package/rules/rule-of-three.yaml +49 -3
  1627. package/rules/section-length-uniformity.yaml +27 -3
  1628. package/rules/sentence-initial-so.yaml +58 -0
  1629. package/rules/sentence-rhythm.yaml +27 -1
  1630. package/rules/space-before-punctuation.yaml +41 -0
  1631. package/rules/spelling-consistency.yaml +47 -0
  1632. package/rules/stock-transition.yaml +34 -3
  1633. package/rules/summary-fact-mismatch.yaml +122 -0
  1634. package/rules/table-header-variant.yaml +112 -0
  1635. package/rules/taigen-dome-in-prose.yaml +14 -0
  1636. package/rules/teki-overuse.yaml +59 -0
  1637. package/rules/title-length.yaml +120 -0
  1638. package/rules/topic-predicate-distance.yaml +59 -0
  1639. package/rules/total-mismatch.yaml +1 -0
  1640. package/rules/translationese-density.yaml +62 -0
  1641. package/rules/undefined-acronym.yaml +1 -0
  1642. package/rules/unfilled-placeholder.yaml +8 -11
  1643. package/rules/unit-mismatch.yaml +110 -0
  1644. package/rules/unknown-word.yaml +62 -0
  1645. package/rules/unqualified-superlative.yaml +5 -4
  1646. package/rules/unused-definition.yaml +75 -0
  1647. package/rules/use-before-definition.yaml +77 -0
  1648. package/rules/vague-figure-reference.yaml +66 -0
  1649. package/rules/vague-link-text.yaml +77 -0
  1650. package/rules/vague-word-density.yaml +89 -0
  1651. package/rules/very-adjective.yaml +61 -0
  1652. package/rules/weasel-word.yaml +60 -0
  1653. package/rules/wordy-phrase.yaml +61 -0
  1654. package/skills/chaff/SKILL.md +116 -8
  1655. package/src/acronym-expansions.ts +106 -0
  1656. package/src/announced-count.ts +53 -11
  1657. package/src/announced-list.ts +120 -0
  1658. package/src/api.ts +154 -0
  1659. package/src/baseline.ts +17 -4
  1660. package/src/check-source.ts +75 -0
  1661. package/src/checks.ts +3 -3
  1662. package/src/cli-args.ts +7 -1
  1663. package/src/cli-text.ts +32 -17
  1664. package/src/cli.ts +105 -98
  1665. package/src/closing-paragraph.ts +24 -0
  1666. package/src/commands/compare.ts +15 -18
  1667. package/src/commands/document-commands.ts +19 -0
  1668. package/src/commands/eval.ts +5 -4
  1669. package/src/commands/facts.ts +33 -0
  1670. package/src/commands/feedback.ts +33 -1
  1671. package/src/commands/fix-plan.ts +55 -0
  1672. package/src/commands/grade-baseline.ts +44 -0
  1673. package/src/commands/grade.ts +191 -0
  1674. package/src/commands/outline.ts +50 -0
  1675. package/src/commands/read-document.ts +33 -0
  1676. package/src/commands/suppressions.ts +20 -0
  1677. package/src/commands/test.ts +3 -3
  1678. package/src/commands/tree.ts +19 -12
  1679. package/src/compare/clock-time.ts +5 -2
  1680. package/src/compare/distinct.ts +20 -0
  1681. package/src/compare/extract.ts +7 -5
  1682. package/src/compare/fact-key.ts +31 -0
  1683. package/src/compare/fact-text.ts +21 -2
  1684. package/src/compare/facts-render.ts +63 -0
  1685. package/src/compare/facts-text.ts +41 -0
  1686. package/src/compare/match.ts +1 -1
  1687. package/src/compare/outcome.ts +14 -4
  1688. package/src/compare/proper-nouns.ts +14 -10
  1689. package/src/compare/render.ts +2 -2
  1690. package/src/compare/text-atoms.ts +7 -6
  1691. package/src/compare/text.ts +3 -2
  1692. package/src/config/load.ts +17 -3
  1693. package/src/config/option-problems.ts +6 -4
  1694. package/src/config/style.ts +14 -1
  1695. package/src/config/yaml-file.ts +65 -0
  1696. package/src/correction-edit.ts +43 -0
  1697. package/src/cross-run.ts +107 -0
  1698. package/src/cross-variants.ts +55 -0
  1699. package/src/cross-votes.ts +29 -0
  1700. package/src/custom/load.ts +11 -3
  1701. package/src/custom/module-path.ts +23 -0
  1702. package/src/custom/parse.ts +67 -18
  1703. package/src/custom/problems.ts +63 -41
  1704. package/src/date-format.ts +123 -0
  1705. package/src/derived/date-arithmetic.ts +63 -0
  1706. package/src/derived/durations.ts +52 -0
  1707. package/src/derived/elapsed.ts +125 -0
  1708. package/src/derived/relative-dates.ts +96 -0
  1709. package/src/derived/sentence-buckets.ts +29 -0
  1710. package/src/detect-language.ts +1 -1
  1711. package/src/detect.ts +10 -3
  1712. package/src/detectors/absolute-exception.ts +102 -0
  1713. package/src/detectors/abstract-length.ts +126 -0
  1714. package/src/detectors/ai-phrasing.ts +18 -16
  1715. package/src/detectors/ai-structure.ts +26 -0
  1716. package/src/detectors/blank-structure.ts +147 -0
  1717. package/src/detectors/bold-label.ts +55 -0
  1718. package/src/detectors/chat-citation.ts +50 -0
  1719. package/src/detectors/citation-entry.ts +94 -0
  1720. package/src/detectors/citation-marks.ts +205 -0
  1721. package/src/detectors/citation-style.ts +46 -0
  1722. package/src/detectors/cross-link.ts +82 -0
  1723. package/src/detectors/cross-registry/cross-doc-broken-link.ts +4 -0
  1724. package/src/detectors/cross-registry/cross-doc-term-variant.ts +4 -0
  1725. package/src/detectors/cross-variant.ts +77 -0
  1726. package/src/detectors/dangling-figure.ts +8 -4
  1727. package/src/detectors/date-format.ts +29 -0
  1728. package/src/detectors/date-year.ts +91 -0
  1729. package/src/detectors/definition-use.ts +41 -0
  1730. package/src/detectors/derived-numbers.ts +191 -0
  1731. package/src/detectors/document-shape.ts +107 -0
  1732. package/src/detectors/doubled-punctuation.ts +5 -2
  1733. package/src/detectors/duplicate-heading.ts +47 -0
  1734. package/src/detectors/emoji-heading.ts +17 -0
  1735. package/src/detectors/empty-section.ts +21 -0
  1736. package/src/detectors/fact-consistency.ts +54 -0
  1737. package/src/detectors/figure-order.ts +81 -0
  1738. package/src/detectors/fullwidth-alnum.ts +118 -0
  1739. package/src/detectors/hankaku-kana.ts +38 -0
  1740. package/src/detectors/heading-code-words.ts +2 -2
  1741. package/src/detectors/heading-numbering.ts +38 -0
  1742. package/src/detectors/index.ts +18 -114
  1743. package/src/detectors/invisible-character.ts +190 -0
  1744. package/src/detectors/katakana-density.ts +62 -0
  1745. package/src/detectors/known-correction.ts +89 -0
  1746. package/src/detectors/kutoten-consistency.ts +2 -2
  1747. package/src/detectors/lexicon-match.ts +33 -1
  1748. package/src/detectors/lexicon.ts +43 -13
  1749. package/src/detectors/list-parallel.ts +155 -0
  1750. package/src/detectors/list-sentence.ts +45 -4
  1751. package/src/detectors/long-vowel.ts +22 -6
  1752. package/src/detectors/markup-finding.ts +16 -1
  1753. package/src/detectors/misuse-match.ts +28 -0
  1754. package/src/detectors/modal-conflict.ts +26 -0
  1755. package/src/detectors/name-variant.ts +15 -0
  1756. package/src/detectors/next-word.ts +156 -0
  1757. package/src/detectors/nominalization.ts +73 -0
  1758. package/src/detectors/number-style.ts +230 -0
  1759. package/src/detectors/number-unit.ts +146 -0
  1760. package/src/detectors/orthographic-variant.ts +152 -0
  1761. package/src/detectors/orthography.ts +77 -27
  1762. package/src/detectors/outside-announced-list.ts +25 -0
  1763. package/src/detectors/oxford-comma.ts +1 -0
  1764. package/src/detectors/paragraph-restatement.ts +68 -0
  1765. package/src/detectors/paragraph-run.ts +27 -0
  1766. package/src/detectors/person-consistency.ts +29 -0
  1767. package/src/detectors/phrase-match.ts +27 -7
  1768. package/src/detectors/placeholder-text.ts +62 -5
  1769. package/src/detectors/ra-nuki.ts +38 -0
  1770. package/src/detectors/reference-text.ts +44 -0
  1771. package/src/detectors/registry/absolute-exception.ts +4 -0
  1772. package/src/detectors/registry/abstract-length.ts +4 -0
  1773. package/src/detectors/registry/acronym-expansion-conflict.ts +4 -0
  1774. package/src/detectors/registry/adverb-density.ts +4 -0
  1775. package/src/detectors/registry/agentless-passive.ts +4 -0
  1776. package/src/detectors/registry/agreement-slip.ts +4 -0
  1777. package/src/detectors/registry/ai-structure.ts +4 -0
  1778. package/src/detectors/registry/ai-tell.ts +4 -0
  1779. package/src/detectors/registry/announced-count.ts +4 -0
  1780. package/src/detectors/registry/article-sound.ts +4 -0
  1781. package/src/detectors/registry/assistant-residue.ts +4 -0
  1782. package/src/detectors/registry/bold-label-list.ts +4 -0
  1783. package/src/detectors/registry/bracket-nesting.ts +4 -0
  1784. package/src/detectors/registry/broken-link.ts +4 -0
  1785. package/src/detectors/registry/chat-citation-residue.ts +4 -0
  1786. package/src/detectors/registry/citation-entry.ts +4 -0
  1787. package/src/detectors/registry/citation-style.ts +4 -0
  1788. package/src/detectors/registry/clause-chain.ts +4 -0
  1789. package/src/detectors/registry/colon-lead-in.ts +4 -0
  1790. package/src/detectors/registry/concrete-evidence.ts +4 -0
  1791. package/src/detectors/registry/conjunction-run.ts +4 -0
  1792. package/src/detectors/registry/contraction-mix.ts +4 -0
  1793. package/src/detectors/registry/contrast-framing.ts +4 -0
  1794. package/src/detectors/registry/count-per-section.ts +4 -0
  1795. package/src/detectors/registry/cushion-density.ts +4 -0
  1796. package/src/detectors/registry/custom-pattern.ts +4 -0
  1797. package/src/detectors/registry/custom-tokens.ts +4 -0
  1798. package/src/detectors/registry/custom-words.ts +4 -0
  1799. package/src/detectors/registry/dangling-figure.ts +4 -0
  1800. package/src/detectors/registry/dangling-reference.ts +4 -0
  1801. package/src/detectors/registry/dash-density.ts +4 -0
  1802. package/src/detectors/registry/date-format.ts +4 -0
  1803. package/src/detectors/registry/date-order.ts +4 -0
  1804. package/src/detectors/registry/date-range-reversed.ts +4 -0
  1805. package/src/detectors/registry/date-weekday-mismatch.ts +4 -0
  1806. package/src/detectors/registry/date-without-year.ts +4 -0
  1807. package/src/detectors/registry/doubled-particle.ts +4 -0
  1808. package/src/detectors/registry/doubled-punctuation.ts +4 -0
  1809. package/src/detectors/registry/doubled-word.ts +4 -0
  1810. package/src/detectors/registry/duplicate-definition.ts +4 -0
  1811. package/src/detectors/registry/duplicate-heading.ts +4 -0
  1812. package/src/detectors/registry/duration-mismatch.ts +4 -0
  1813. package/src/detectors/registry/elapsed-years-mismatch.ts +4 -0
  1814. package/src/detectors/registry/emoji-density.ts +4 -0
  1815. package/src/detectors/registry/emoji-heading.ts +4 -0
  1816. package/src/detectors/registry/empty-list-item.ts +4 -0
  1817. package/src/detectors/registry/empty-section.ts +4 -0
  1818. package/src/detectors/registry/empty-table-cell.ts +4 -0
  1819. package/src/detectors/registry/expletive.ts +4 -0
  1820. package/src/detectors/registry/fact-conflict.ts +4 -0
  1821. package/src/detectors/registry/figure-order.ts +4 -0
  1822. package/src/detectors/registry/fullwidth-alnum.ts +4 -0
  1823. package/src/detectors/registry/hankaku-kana.ts +4 -0
  1824. package/src/detectors/registry/heading-echo.ts +4 -0
  1825. package/src/detectors/registry/heading-level-skip.ts +4 -0
  1826. package/src/detectors/registry/heading-numbering.ts +4 -0
  1827. package/src/detectors/registry/hedging.ts +4 -0
  1828. package/src/detectors/registry/image-alt-text.ts +4 -0
  1829. package/src/detectors/registry/intensified-adjective.ts +4 -0
  1830. package/src/detectors/registry/internal-jargon.ts +4 -0
  1831. package/src/detectors/registry/invisible-character.ts +4 -0
  1832. package/src/detectors/registry/kanji-run.ts +4 -0
  1833. package/src/detectors/registry/katakana-density.ts +4 -0
  1834. package/src/detectors/registry/katakana-long-vowel.ts +4 -0
  1835. package/src/detectors/registry/known-correction.ts +4 -0
  1836. package/src/detectors/registry/kutoten-consistency.ts +4 -0
  1837. package/src/detectors/registry/latin-spacing.ts +4 -0
  1838. package/src/detectors/registry/list-item-form-mix.ts +4 -0
  1839. package/src/detectors/registry/middle-dot.ts +4 -0
  1840. package/src/detectors/registry/misuse-match.ts +4 -0
  1841. package/src/detectors/registry/modal-conflict.ts +4 -0
  1842. package/src/detectors/registry/name-variant.ts +4 -0
  1843. package/src/detectors/registry/ngram-repetition.ts +4 -0
  1844. package/src/detectors/registry/no-lead.ts +4 -0
  1845. package/src/detectors/registry/nominalization.ts +4 -0
  1846. package/src/detectors/registry/noun-ending.ts +4 -0
  1847. package/src/detectors/registry/number-style-consistency.ts +4 -0
  1848. package/src/detectors/registry/number-without-unit.ts +4 -0
  1849. package/src/detectors/registry/numbering-gap.ts +4 -0
  1850. package/src/detectors/registry/one-sentence-paragraph-run.ts +4 -0
  1851. package/src/detectors/registry/opener-pile.ts +4 -0
  1852. package/src/detectors/registry/opener-run.ts +4 -0
  1853. package/src/detectors/registry/orthographic-variant.ts +4 -0
  1854. package/src/detectors/registry/outside-announced-list.ts +4 -0
  1855. package/src/detectors/registry/oxford-comma.ts +4 -0
  1856. package/src/detectors/registry/paragraph-length.ts +4 -0
  1857. package/src/detectors/registry/paragraph-restatement.ts +4 -0
  1858. package/src/detectors/registry/paragraph-variance.ts +4 -0
  1859. package/src/detectors/registry/percent-sum-mismatch.ts +4 -0
  1860. package/src/detectors/registry/person-mix.ts +4 -0
  1861. package/src/detectors/registry/phrase-count.ts +4 -0
  1862. package/src/detectors/registry/phrase-density.ts +4 -0
  1863. package/src/detectors/registry/phrase-match.ts +4 -0
  1864. package/src/detectors/registry/preamble-length.ts +4 -0
  1865. package/src/detectors/registry/preferred-term.ts +4 -0
  1866. package/src/detectors/registry/proper-noun-density.ts +4 -0
  1867. package/src/detectors/registry/ra-nuki.ts +4 -0
  1868. package/src/detectors/registry/reference-title-mismatch.ts +4 -0
  1869. package/src/detectors/registry/reference-topic-missing.ts +4 -0
  1870. package/src/detectors/registry/relative-date-mismatch.ts +4 -0
  1871. package/src/detectors/registry/repeated-conjunction.ts +4 -0
  1872. package/src/detectors/registry/repeated-head.ts +4 -0
  1873. package/src/detectors/registry/required-sections.ts +4 -0
  1874. package/src/detectors/registry/requirement-modal.ts +4 -0
  1875. package/src/detectors/registry/requirement-smell.ts +4 -0
  1876. package/src/detectors/registry/rule-of-three.ts +4 -0
  1877. package/src/detectors/registry/section-uniformity.ts +4 -0
  1878. package/src/detectors/registry/sentence-comma-count.ts +4 -0
  1879. package/src/detectors/registry/sentence-conjunctive-count.ts +4 -0
  1880. package/src/detectors/registry/sentence-ending.ts +4 -0
  1881. package/src/detectors/registry/sentence-length.ts +4 -0
  1882. package/src/detectors/registry/sentence-rhythm.ts +4 -0
  1883. package/src/detectors/registry/sentence-word-count.ts +4 -0
  1884. package/src/detectors/registry/space-before-punctuation.ts +4 -0
  1885. package/src/detectors/registry/spelling-variety.ts +4 -0
  1886. package/src/detectors/registry/stock-transition.ts +4 -0
  1887. package/src/detectors/registry/stray-space.ts +4 -0
  1888. package/src/detectors/registry/summary-fact-mismatch.ts +4 -0
  1889. package/src/detectors/registry/table-header-variant.ts +4 -0
  1890. package/src/detectors/registry/title-case-mix.ts +4 -0
  1891. package/src/detectors/registry/title-length.ts +4 -0
  1892. package/src/detectors/registry/topic-predicate-distance.ts +4 -0
  1893. package/src/detectors/registry/total-mismatch.ts +4 -0
  1894. package/src/detectors/registry/unbalanced-bracket.ts +4 -0
  1895. package/src/detectors/registry/undefined-acronym.ts +4 -0
  1896. package/src/detectors/registry/unfilled-placeholder.ts +4 -0
  1897. package/src/detectors/registry/unit-mismatch.ts +4 -0
  1898. package/src/detectors/registry/unknown-word.ts +4 -0
  1899. package/src/detectors/registry/unqualified-superlative.ts +4 -0
  1900. package/src/detectors/registry/unused-definition.ts +4 -0
  1901. package/src/detectors/registry/url-run-on.ts +4 -0
  1902. package/src/detectors/registry/use-before-definition.ts +4 -0
  1903. package/src/detectors/registry/vague-density.ts +4 -0
  1904. package/src/detectors/registry/vague-figure-pointer.ts +4 -0
  1905. package/src/detectors/registry/vague-link-text.ts +4 -0
  1906. package/src/detectors/registry-files.ts +12 -0
  1907. package/src/detectors/registry-load.ts +23 -0
  1908. package/src/detectors/relative-dates.ts +113 -0
  1909. package/src/detectors/requirement-modal.ts +67 -0
  1910. package/src/detectors/requirement-smell.ts +52 -0
  1911. package/src/detectors/sentence-counts.ts +112 -0
  1912. package/src/detectors/sentence-load.ts +45 -0
  1913. package/src/detectors/space-before-punctuation.ts +32 -0
  1914. package/src/detectors/spelling-variety.ts +81 -0
  1915. package/src/detectors/structure-tree.ts +3 -1
  1916. package/src/detectors/structure.ts +17 -3
  1917. package/src/detectors/superlative-comparison.ts +47 -0
  1918. package/src/detectors/table-header.ts +174 -0
  1919. package/src/detectors/team.ts +12 -4
  1920. package/src/detectors/unit-consistency.ts +55 -0
  1921. package/src/detectors/unknown-word.ts +43 -0
  1922. package/src/detectors/url-run-on.ts +7 -1
  1923. package/src/detectors/vague-figure-pointer.ts +58 -0
  1924. package/src/detectors/vague-link-text.ts +12 -0
  1925. package/src/detectors/word-list.ts +6 -1
  1926. package/src/document-reading.ts +25 -0
  1927. package/src/document.ts +94 -45
  1928. package/src/experimental-alone.ts +21 -0
  1929. package/src/extension/document-view.ts +109 -0
  1930. package/src/extension/failure-text.ts +46 -0
  1931. package/src/extension/import-default.ts +13 -0
  1932. package/src/extension/load.ts +97 -0
  1933. package/src/extension/module-detector.ts +61 -0
  1934. package/src/extension/plugin-load.ts +82 -0
  1935. package/src/extension/plugin-name.ts +26 -0
  1936. package/src/extension/plugin-parse.ts +229 -0
  1937. package/src/extension/problem-text.ts +103 -0
  1938. package/src/extension/real-path.ts +10 -0
  1939. package/src/extension/returned-findings.ts +62 -0
  1940. package/src/extension/rule-export.ts +23 -0
  1941. package/src/facts/fact-conflicts.ts +64 -0
  1942. package/src/facts/fact-scope.ts +141 -0
  1943. package/src/facts/fact-values.ts +110 -0
  1944. package/src/facts/labelled-facts.ts +131 -0
  1945. package/src/facts/measures.ts +54 -0
  1946. package/src/facts/table-facts.ts +71 -0
  1947. package/src/facts/trim-marks.ts +18 -0
  1948. package/src/facts/unit-conflicts.ts +45 -0
  1949. package/src/feedback/draft.ts +6 -0
  1950. package/src/figure-references.ts +93 -13
  1951. package/src/files.ts +16 -10
  1952. package/src/finding-order.ts +3 -0
  1953. package/src/fix-plan/mode.ts +40 -0
  1954. package/src/fix-plan/plan.ts +202 -0
  1955. package/src/fix-plan/render.ts +146 -0
  1956. package/src/fix-plan/structure-target-text.ts +90 -0
  1957. package/src/fix-plan/structure-targets.ts +46 -0
  1958. package/src/fix-plan/text.ts +136 -0
  1959. package/src/grade/baseline-text.ts +80 -0
  1960. package/src/grade/baseline.ts +140 -0
  1961. package/src/grade/checks.ts +73 -0
  1962. package/src/grade/context-support.ts +60 -0
  1963. package/src/grade/contexts.ts +53 -0
  1964. package/src/grade/grade-item.ts +133 -0
  1965. package/src/grade/item.ts +208 -0
  1966. package/src/grade/order.ts +10 -0
  1967. package/src/grade/pairing.ts +22 -0
  1968. package/src/grade/rates.ts +39 -0
  1969. package/src/grade/render-baseline.ts +74 -0
  1970. package/src/grade/render-markdown.ts +62 -0
  1971. package/src/grade/render-variants.ts +115 -0
  1972. package/src/grade/render.ts +84 -0
  1973. package/src/grade/result-name.ts +9 -0
  1974. package/src/grade/result.ts +82 -0
  1975. package/src/grade/results-read.ts +111 -0
  1976. package/src/grade/rubric-verdict.ts +86 -0
  1977. package/src/grade/rubric.ts +192 -0
  1978. package/src/grade/scorer.ts +33 -0
  1979. package/src/grade/setup.ts +43 -0
  1980. package/src/grade/stamp.ts +60 -0
  1981. package/src/grade/summary.ts +112 -0
  1982. package/src/grade/text.ts +164 -0
  1983. package/src/grade/variants-input.ts +54 -0
  1984. package/src/grade/variants-text.ts +88 -0
  1985. package/src/grade/variants.ts +118 -0
  1986. package/src/grade/verdict.ts +27 -0
  1987. package/src/grade-api.ts +184 -0
  1988. package/src/heading-numbering.ts +106 -0
  1989. package/src/kana-spelling.ts +49 -0
  1990. package/src/language-sample.ts +48 -0
  1991. package/src/link-line.ts +13 -0
  1992. package/src/link-text.ts +46 -0
  1993. package/src/long-vowel.ts +18 -8
  1994. package/src/markup.ts +4 -2
  1995. package/src/name-variants.ts +217 -0
  1996. package/src/node-version.ts +22 -0
  1997. package/src/not-run.ts +16 -0
  1998. package/src/orthography.ts +40 -11
  1999. package/src/outline/render.ts +92 -0
  2000. package/src/outline/shape.ts +72 -0
  2001. package/src/outline/structure-render.ts +101 -0
  2002. package/src/outline/structure-text.ts +124 -0
  2003. package/src/outline/text.ts +55 -0
  2004. package/src/paragraph-runs.ts +30 -0
  2005. package/src/person-forms.ts +119 -0
  2006. package/src/plugin.ts +34 -4
  2007. package/src/reasons.ts +7 -0
  2008. package/src/render/compact.ts +13 -3
  2009. package/src/render/explain.ts +54 -21
  2010. package/src/render/friendly.ts +17 -1
  2011. package/src/render/rules-json.ts +23 -13
  2012. package/src/render/rules-table.ts +1 -1
  2013. package/src/render/sarif.ts +31 -1
  2014. package/src/render/suppressions.ts +30 -2
  2015. package/src/resolve-genre.ts +1 -1
  2016. package/src/rule-guide.ts +41 -0
  2017. package/src/run-semantic.ts +2 -1
  2018. package/src/run.ts +108 -63
  2019. package/src/sentence-load.ts +77 -0
  2020. package/src/setting-problems.ts +3 -1
  2021. package/src/spacing-minority.ts +27 -0
  2022. package/src/spelling-variants.ts +42 -0
  2023. package/src/spelling.ts +81 -0
  2024. package/src/stet-block.ts +60 -0
  2025. package/src/stet.ts +41 -15
  2026. package/src/structure/absolute-exception.ts +104 -0
  2027. package/src/structure/date-range.ts +49 -1
  2028. package/src/structure/definition-use.ts +130 -0
  2029. package/src/structure/issues.ts +22 -0
  2030. package/src/structure/lazy-tree.ts +15 -0
  2031. package/src/structure/modal-conflict.ts +86 -0
  2032. package/src/structure/numbered-clauses.ts +11 -0
  2033. package/src/structure/reference-text.ts +114 -0
  2034. package/src/structure/universal.ts +10 -2
  2035. package/src/structure-shape/baseline-load.ts +18 -0
  2036. package/src/structure-shape/baseline.ts +62 -0
  2037. package/src/structure-shape/features.ts +189 -0
  2038. package/src/structure-shape/heading-words.ts +71 -0
  2039. package/src/structure-shape/of-document.ts +7 -0
  2040. package/src/structure-shape/restatement.ts +41 -0
  2041. package/src/structure-shape/score.ts +65 -0
  2042. package/src/style-parse.ts +38 -3
  2043. package/src/subheading-line.ts +51 -13
  2044. package/src/tag-coverage.ts +13 -0
  2045. package/src/yaml-values.ts +61 -0
  2046. package/structure-baseline.yaml +289 -0
  2047. package/styles/ieice.yaml +5 -4
  2048. package/styles/jis-z8301-2011.yaml +5 -2
  2049. package/styles/jis-z8301-2019.yaml +31 -0
  2050. package/styles/koyobun.yaml +35 -0
  2051. package/dist/legal-address.d.ts +0 -2
  2052. package/dist/legal-address.d.ts.map +0 -1
  2053. package/dist/legal-address.js +0 -16
  2054. package/dist/legal-address.js.map +0 -1
package/src/cli.ts CHANGED
@@ -1,15 +1,13 @@
1
1
  import { mkdirSync, writeFileSync } from "node:fs";
2
2
  import { dirname, join } from "node:path";
3
- import { loadAdapter, packageFor } from "./adapter-load.ts";
3
+ import { packageFor } from "./adapter-load.ts";
4
+ import { checkSource, crossChecked, type SourceCheck } from "./check-source.ts";
4
5
  import { CONFIG_FILE, type Config } from "./config/load.ts";
5
- import { applyByPath } from "./config/by-path.ts";
6
6
  import { applyLevel } from "./config/write.ts";
7
- import { buildDocument, teamRules } from "./document.ts";
8
- import { guessLanguage } from "./detect.ts";
9
7
  import { collectTargets, readDocumentFile } from "./files.ts";
10
8
  import { BASELINE_FILE, fingerprints, readBaseline, splitByBaseline, writeBaseline } from "./baseline.ts";
11
- import { applySuppressions } from "./stet.ts";
12
- import { renderSuppressions, type PerFile } from "./render/suppressions.ts";
9
+ import type { PerFile } from "./render/suppressions.ts";
10
+ import { runSuppressions } from "./commands/suppressions.ts";
13
11
  import { clock, describeChange, snapshotOf, watchPaths, type Snapshot } from "./watch.ts";
14
12
  import { runEval } from "./commands/eval.ts";
15
13
  import { runTest } from "./commands/test.ts";
@@ -17,7 +15,7 @@ import { GENRES } from "./genre.ts";
17
15
  import { resolveGenre } from "./resolve-genre.ts";
18
16
  import { runInit } from "./init.ts";
19
17
  import { initGenre } from "./commands/init-ask.ts";
20
- import { targetsOf, withExperimental } from "./cli-args.ts";
18
+ import { targetsOf, withExperimental, withIncludes } from "./cli-args.ts";
21
19
  import { rulesOf } from "./custom/load.ts";
22
20
  import { renderCompact } from "./render/compact.ts";
23
21
  import { renderExplain } from "./render/explain.ts";
@@ -29,22 +27,27 @@ import { rulesJson } from "./render/rules-json.ts";
29
27
  import { rulesTable } from "./render/rules-table.ts";
30
28
  import { renderSarif } from "./render/sarif.ts";
31
29
  import { VERSION, VERSION_LINES } from "./version.ts";
32
- import { runTree, treeTargets, type TreeContext } from "./commands/tree.ts";
33
- import { citeTargets, runCite } from "./commands/cite.ts";
34
- import { compareTargets, runCompare } from "./commands/compare.ts";
30
+ import type { TreeContext } from "./commands/tree.ts";
31
+ import { DOCUMENT_COMMANDS } from "./commands/document-commands.ts";
35
32
  import { runSkill } from "./commands/skill.ts";
36
- import { runFeedback, settingsOf } from "./commands/feedback.ts";
33
+ import { GRADE_EXIT, runGrade } from "./commands/grade.ts";
34
+ import { fixPlanTargets, runFixPlan } from "./commands/fix-plan.ts";
35
+ import { runConditions, runFeedback, settingsOf, type Checked } from "./commands/feedback.ts";
37
36
  import { homedir } from "node:os";
38
37
  import { settingWarnings } from "./config/warnings.ts";
39
38
  import { readConfigIn } from "./config/read.ts";
40
39
  import { optionLayersOf, settingSourcesOf } from "./config/option-problems.ts";
41
40
  import { renderSummary, type FileOutcome } from "./render/summary.ts";
42
- import { neededBy, runRulesWith } from "./run.ts";
41
+
43
42
  import type { Finding, Level, RuleDefinition } from "./plugin.ts";
44
43
  import { CLI_TEXT, type CliText, type GenreSource } from "./cli-text.ts";
45
44
  import { hostLanguage, sharedLanguage, uiLanguageOf, type UiLanguage } from "./ui.ts";
46
- import { profileFor } from "./profile/for-file.ts";
45
+ import { notRunAmong } from "./not-run.ts";
47
46
  import { settingProblems } from "./setting-problems.ts";
47
+ import { withExtensions } from "./extension/load.ts";
48
+ import { offOnlyAsExperimental } from "./experimental-alone.ts";
49
+ import { DEFAULT_GENRE } from "./init-choice.ts";
50
+ import { stoppingOnYamlFileError } from "./config/yaml-file.ts";
48
51
 
49
52
  /** Text for output that is not about one document. */
50
53
  const hostText = (config: Config): CliText => CLI_TEXT[hostLanguage(config.language, process.env)];
@@ -59,8 +62,7 @@ const genreFrom =
59
62
 
60
63
  const findRule = (rules: readonly RuleDefinition[], id: string | undefined): RuleDefinition | undefined => rules.find((rule) => rule.id === id);
61
64
 
62
- const changeSetting = (command: Level, ruleId: string | undefined, why: string | undefined): number => {
63
- const config = readConfig();
65
+ const changeSetting = (config: Config, command: Level, ruleId: string | undefined, why: string | undefined): number => {
64
66
  const language = config.language ?? hostLanguage(undefined, process.env);
65
67
  const rule = findRule(rulesOf(language, config), ruleId);
66
68
  if (rule === undefined) {
@@ -85,31 +87,26 @@ type Inspected = {
85
87
  readonly genre: string;
86
88
  readonly outcome: FileOutcome;
87
89
  readonly perFile: PerFile;
90
+ readonly checked: Omit<Checked, "conditions">;
88
91
  /** stet で黙らせたものを除いた、baseline で棚上げする前の指摘。fingerprint は baseline を書くときだけ作る。 */
89
92
  readonly kept: readonly Finding[];
90
93
  };
91
94
 
92
- const inspect = async (path: string, config: Config, argv: readonly string[]): Promise<Inspected> => {
93
- const source = await readDocumentFile(path);
94
- const language = applyByPath(config.byPath, config.baseDir, path).language ?? config.language ?? guessLanguage(source).language;
95
- const adapter = await loadAdapter(language);
96
- const { genre, from, unread } = resolveGenre(path, source, config, flag(argv, "--genre"));
97
- if (unread !== undefined) console.error(`chaff: ${CLI_TEXT[uiLanguageOf(language)].unreadFrontMatterGenre(path, unread, GENRES)}`);
98
- const rules = rulesOf(language, config);
95
+ const checkFile = async (path: string, config: Config, argv: readonly string[]): Promise<SourceCheck> => {
99
96
  const experimental = config.experimental || argv.includes("--experimental");
100
- await adapter.prepare?.(neededBy(rules, config.rules, experimental, genre, language));
101
- const doc = buildDocument(path, source, adapter, teamRules(config), profileFor(config, path, source, language, genre));
102
- const raw = runRulesWith(doc, rules, { settings: config.rules, experimental, genre, limits: config.limits, optionLayers: optionLayersOf(config) });
103
- // 応答は 3 つ。stet で黙らせたものは、ここで落とす。
104
- const applied = applySuppressions(
105
- source,
106
- raw.findings,
107
- doc.sections.map((section) => section.span),
108
- );
97
+ return checkSource(path, await readDocumentFile(path), config, { genre: flag(argv, "--genre"), experimental });
98
+ };
99
+
100
+ const present = (check: SourceCheck, argv: readonly string[]): Inspected => {
101
+ const { language, genre: resolved, rules, raw, applied } = check;
102
+ const { path, source } = check.doc;
103
+ const { genre, from, unread } = resolved;
104
+ if (unread !== undefined) console.error(`chaff: ${CLI_TEXT[uiLanguageOf(language)].unreadFrontMatterGenre(path, unread, GENRES)}`);
109
105
  const baseline = argv.includes("--show-baseline") ? undefined : readBaseline(join(process.cwd(), BASELINE_FILE));
110
- const split = splitByBaseline(path, applied.kept, baseline);
106
+ const split = splitByBaseline(path, applied.kept, baseline, process.cwd());
111
107
  const result = { ...raw, findings: split.fresh };
112
108
  const { header, notes } = fileHeader(path, source, language, { genre, from, unread }, { shelved: split.shelved, hushed: applied.suppressed.length });
109
+ const notRun = notRunAmong(applied.named, raw.skipped);
113
110
  const text = argv.includes("--compact") ? renderCompact(header, result, rules, language) : renderFriendly(header, result, rules, language, notes);
114
111
  return {
115
112
  text,
@@ -117,25 +114,33 @@ const inspect = async (path: string, config: Config, argv: readonly string[]): P
117
114
  language,
118
115
  genre,
119
116
  outcome: { path, findings: split.fresh, notRun: raw.skipped.length },
120
- perFile: { path, suppressed: applied.suppressed, reasonless: applied.unusedReasonless },
117
+ perFile: { path, suppressed: applied.suppressed, reasonless: applied.unusedReasonless, notRun },
118
+ checked: { findings: split.fresh, rules, language, genre, skipped: raw.skipped },
121
119
  kept: applied.kept,
122
120
  };
123
121
  };
124
122
 
123
+ const inspect = async (path: string, config: Config, argv: readonly string[]): Promise<Inspected> => present(await checkFile(path, config, argv), argv);
124
+
125
+ /** Every file of one run, with the rules that compare documents run over all of them. */
126
+ const inspectRun = async (paths: readonly string[], config: Config, argv: readonly string[]): Promise<Inspected[]> =>
127
+ crossChecked(await Promise.all(paths.map((path) => checkFile(path, config, argv)))).map((check) => present(check, argv));
128
+
125
129
  /**
126
130
  * 指摘を PR の変更行に出すための出口。--sarif <path> を書いたときだけ作る。
127
131
  * 端末の出力は変えない。CI で上げるためのファイルが増えるだけ。
128
132
  */
129
- const writeSarif = (results: readonly Inspected[], argv: readonly string[]): void => {
133
+ const writeSarif = (results: readonly Inspected[], argv: readonly string[], config: Config): void => {
130
134
  const path = flag(argv, "--sarif");
131
135
  if (path === undefined) return;
132
136
  // 文言はファイルの言語で描く。by_path で 1 つの repo に 2 言語が混ざるため。
133
137
  const located = results.flatMap((result) =>
134
138
  result.outcome.findings.map((finding) => ({ path: result.outcome.path, finding, language: result.language, rules: result.rules })),
135
139
  );
140
+ const notRun = results.flatMap((result) => result.checked.skipped.map((entry) => ({ path: result.outcome.path, rule: entry.rule, why: entry.why })));
136
141
  mkdirSync(dirname(path), { recursive: true });
137
- writeFileSync(path, renderSarif(located, VERSION), "utf8");
138
- console.log(hostText(readConfig()).sarifWritten(path, located.length));
142
+ writeFileSync(path, renderSarif(located, VERSION, notRun), "utf8");
143
+ console.log(hostText(config).sarifWritten(path, located.length));
139
144
  };
140
145
 
141
146
  /** 効いていない設定は、結果の前に一度だけ言う。標準エラーに出すので、JSON や SARIF の出力は汚さない。 */
@@ -148,12 +153,11 @@ const summaryLanguage = (results: readonly Inspected[], config: Config): UiLangu
148
153
  return sharedLanguage(languages, hostLanguage(config.language, process.env));
149
154
  };
150
155
 
151
- const lint = async (targets: readonly string[], argv: readonly string[]): Promise<number> => {
152
- const paths = collectTargets(targets);
153
- const config = readConfig();
156
+ const lint = async (targets: readonly string[], argv: readonly string[], config: Config): Promise<number> => {
157
+ const paths = collectTargets(targets, config.include);
154
158
  if (paths.length === 0) {
155
159
  // 0 件を成功にすると「CI は通っているが何も検証していない」状態が続く。§14。
156
- console.error(hostText(config).noMarkdown(targets.join(", ")));
160
+ console.error(hostText(config).noMarkdown(targets.join(", "), config.include ?? []));
157
161
  return 1;
158
162
  }
159
163
  const language = config.language ?? "ja";
@@ -162,8 +166,8 @@ const lint = async (targets: readonly string[], argv: readonly string[]): Promis
162
166
  return 1;
163
167
  }
164
168
  warnRuleProblems(config, language);
165
- const results = await Promise.all(paths.map((path) => inspect(path, config, argv)));
166
- writeSarif(results, argv);
169
+ const results = await inspectRun(paths, config, argv);
170
+ writeSarif(results, argv, config);
167
171
  results.filter((result) => result.outcome.findings.length > 0 || paths.length === 1).forEach((result) => console.log(result.text));
168
172
  renderSummary(
169
173
  results.map((result) => result.outcome),
@@ -176,12 +180,11 @@ const lint = async (targets: readonly string[], argv: readonly string[]): Promis
176
180
  * 書いている最中は、全件を出し直されても何が変わったのか分からない。
177
181
  * 差分だけを出す。workflow spec §11。
178
182
  */
179
- const runWatch = async (targets: readonly string[], argv: readonly string[]): Promise<number> => {
180
- const paths = collectTargets(targets);
181
- const config = readConfig();
183
+ const runWatch = async (targets: readonly string[], argv: readonly string[], config: Config): Promise<number> => {
184
+ const paths = collectTargets(targets, config.include);
182
185
  const text = hostText(config);
183
186
  if (paths.length === 0) {
184
- console.error(text.noMarkdown(targets.join(", ")));
187
+ console.error(text.noMarkdown(targets.join(", "), config.include ?? []));
185
188
  return 1;
186
189
  }
187
190
  warnRuleProblems(config, config.language ?? "ja");
@@ -208,8 +211,7 @@ const runWatch = async (targets: readonly string[], argv: readonly string[]): Pr
208
211
  };
209
212
 
210
213
  /** genreFlag: --genre, which wins over chaff.yaml's genre here as it does in a run. */
211
- const explain = (ruleId: string | undefined, genreFlag: string | undefined): number => {
212
- const config = readConfig();
214
+ const explain = (config: Config, ruleId: string | undefined, genreFlag: string | undefined): number => {
213
215
  const genre = genreFlag ?? config.genre;
214
216
  // The rule's limits differ by language (characters for Japanese, words for English): explain in the one being written.
215
217
  const language = config.language ?? hostLanguage(undefined, process.env);
@@ -223,42 +225,37 @@ const explain = (ruleId: string | undefined, genreFlag: string | undefined): num
223
225
  }
224
226
  const preset = genre === undefined ? {} : presetLevels(genre);
225
227
  const current = config.rules[rule.id] ?? preset[rule.id] ?? (rule.status === "experimental" && !config.experimental ? "off" : "normal");
226
- console.log(renderExplain(rule, current, language, text.unit(rule.id, language), genre, settingSourcesOf(config, rule.id)));
228
+ const alone = offOnlyAsExperimental(rule, config, genre ?? DEFAULT_GENRE, preset, language);
229
+ console.log(renderExplain(rule, current, language, genre, { ...settingSourcesOf(config, rule.id, language), offOnlyAsExperimental: alone }));
227
230
  return 0;
228
231
  };
229
232
 
230
- const runBaseline = async (targets: readonly string[], argv: readonly string[]): Promise<number> => {
231
- const paths = collectTargets(targets.length > 0 ? targets : ["."]);
232
- const config = readConfig();
233
+ const runBaseline = async (targets: readonly string[], argv: readonly string[], config: Config): Promise<number> => {
234
+ const paths = collectTargets(targets.length > 0 ? targets : ["."], config.include);
233
235
  if (paths.length === 0) {
234
- console.error(hostText(config).noMarkdownHere);
236
+ console.error(hostText(config).noMarkdownHere(config.include ?? []));
235
237
  return 1;
236
238
  }
237
- const results = await Promise.all(paths.map((path) => inspect(path, config, [...argv, "--show-baseline"])));
238
- const entries = results.flatMap((result) => fingerprints(result.outcome.path, result.kept));
239
+ const results = await inspectRun(paths, config, [...argv, "--show-baseline"]);
240
+ const entries = results.flatMap((result) => fingerprints(result.outcome.path, result.kept, process.cwd()));
239
241
  const file = join(process.cwd(), BASELINE_FILE);
240
242
  writeBaseline(file, entries);
241
243
  console.log(hostText(config).baselineDone(paths.length, entries.length, BASELINE_FILE).join("\n"));
242
244
  return 0;
243
245
  };
244
246
 
245
- const runSuppressions = async (targets: readonly string[], argv: readonly string[]): Promise<number> => {
246
- const paths = collectTargets(targets.length > 0 ? targets : ["."]);
247
- const config = readConfig();
248
- const results = await Promise.all(paths.map((path) => inspect(path, config, [...argv, "--show-baseline"])));
249
- const perFile = results.map((result) => result.perFile);
250
- console.log(renderSuppressions(perFile, hostLanguage(config.language, process.env)));
251
- return 0;
252
- };
247
+ /** A file's findings, shelved ones included: commands that look findings up are not asking what is new. */
248
+ const inspectAll = (config: Config, argv: readonly string[]) => (path: string) => inspect(path, config, [...argv, "--show-baseline"]);
253
249
 
254
- type Handler = (argv: readonly string[]) => number | Promise<number>;
250
+ /** A subcommand, given the command line and chaff.yaml as read once, with the code it names loaded. */
251
+ type Handler = (argv: readonly string[], config: Config) => number | Promise<number>;
255
252
 
256
253
  /** `--` で始まらない引数。対象のパス。 */
257
254
  const positional = (argv: readonly string[]): string[] => targetsOf(argv.slice(1));
258
255
 
259
256
  /** `rules --json` for an AI to read; `rules` alone, a table for a person. */
260
- const showRules = (argv: readonly string[]): number => {
261
- const config = withExperimental(readConfig(), argv);
257
+ const showRules = (argv: readonly string[], written: Config): number => {
258
+ const config = withExperimental(written, argv);
262
259
  const language = config.language ?? hostLanguage(undefined, process.env);
263
260
  warnRuleProblems(config, language);
264
261
  const genre = flag(argv, "--genre") ?? config.genre ?? "blog/tech";
@@ -267,46 +264,50 @@ const showRules = (argv: readonly string[]): number => {
267
264
  return 0;
268
265
  };
269
266
 
270
- const showGenres = (): number => {
271
- console.log(renderGenres(loadGenres(), hostLanguage(readConfig().language, process.env)));
267
+ const showGenres = (config: Config): number => {
268
+ console.log(renderGenres(loadGenres(), hostLanguage(config.language, process.env)));
272
269
  return 0;
273
270
  };
274
271
 
275
- const treeContext = (): TreeContext => {
276
- const config = readConfig();
272
+ const treeContext = (config: Config): TreeContext => {
277
273
  return { config, flag, ui: hostLanguage(config.language, process.env) };
278
274
  };
279
275
 
280
276
  /** What eval and test share: the settings, this run's genre, and the language for what is not about one document. */
281
- const measureContext = (argv: readonly string[]): { config: Config; resolveGenre: ReturnType<typeof genreFrom>; ui: UiLanguage } => {
282
- const config = readConfig();
277
+ const measureContext = (argv: readonly string[], config: Config): { config: Config; resolveGenre: ReturnType<typeof genreFrom>; ui: UiLanguage } => {
283
278
  return { config, resolveGenre: genreFrom(argv), ui: hostLanguage(config.language, process.env) };
284
279
  };
285
280
 
286
281
  /** 分岐を数珠つなぎにせず表にする。足すときに main を太らせない。 */
287
282
  const HANDLERS: Readonly<Record<string, Handler>> = {
288
- init: async (argv) => {
289
- const ui = hostLanguage(readConfig().language, process.env);
283
+ init: async (argv, config) => {
284
+ const ui = hostLanguage(config.language, process.env);
290
285
  const chosen = await initGenre(flag(argv, "--genre"), ui, process.cwd());
291
286
  if ("error" in chosen) console.error(chosen.error);
292
287
  else runInit(process.cwd(), chosen.genre, ui).forEach((line) => console.log(line));
293
288
  return "error" in chosen ? 1 : 0;
294
289
  },
295
- genres: showGenres,
290
+ genres: (_argv, config) => showGenres(config),
296
291
  rules: showRules,
297
- explain: (argv) => explain(argv[1], flag(argv, "--genre")),
298
- eval: (argv) => runEval(positional(argv), argv, { ...measureContext(argv), flag }),
299
- tree: (argv) => runTree(treeTargets(argv), argv, treeContext()),
300
- cite: (argv) => runCite(citeTargets(argv), argv, treeContext()),
301
- compare: (argv) => runCompare(compareTargets(argv), argv, treeContext()),
302
- test: (argv) => runTest(positional(argv), argv, { ...measureContext(argv), inspect }),
303
- baseline: (argv) => runBaseline(positional(argv), argv),
304
- suppressions: (argv) => runSuppressions(positional(argv), argv),
305
- relax: (argv) => changeSetting("relaxed", argv[1], flag(argv, "--why")),
306
- strict: (argv) => changeSetting("strict", argv[1], flag(argv, "--why")),
307
- off: (argv) => changeSetting("off", argv[1], flag(argv, "--why")),
308
- feedback: (argv) => {
309
- const config = readConfig();
292
+ explain: (argv, config) => explain(config, argv[1], flag(argv, "--genre")),
293
+ eval: (argv, config) => runEval(positional(argv), argv, { ...measureContext(argv, config), flag }),
294
+ ...Object.fromEntries(Object.entries(DOCUMENT_COMMANDS).map(([name, run]): [string, Handler] => [name, (argv, config) => run(argv, treeContext(config))])),
295
+ test: (argv, config) => runTest(positional(argv), argv, { ...measureContext(argv, config), inspect }),
296
+ "fix-plan": (argv, config) =>
297
+ runFixPlan(fixPlanTargets(argv), argv, { ...treeContext(config), check: async (path) => (await inspectAll(config, argv)(path)).checked }),
298
+ baseline: (argv, config) => runBaseline(positional(argv), argv, config),
299
+ suppressions: (argv, config) =>
300
+ runSuppressions(
301
+ positional(argv),
302
+ (paths) => inspectRun(paths, config, [...argv, "--show-baseline"]),
303
+ hostLanguage(config.language, process.env),
304
+ config.include,
305
+ ),
306
+ relax: (argv, config) => changeSetting(config, "relaxed", argv[1], flag(argv, "--why")),
307
+ strict: (argv, config) => changeSetting(config, "strict", argv[1], flag(argv, "--why")),
308
+ off: (argv, config) => changeSetting(config, "off", argv[1], flag(argv, "--why")),
309
+ enable: (argv, config) => changeSetting(config, "normal", argv[1], flag(argv, "--why")),
310
+ feedback: (argv, config) => {
310
311
  return runFeedback(positional(argv), argv, {
311
312
  cwd: process.cwd(),
312
313
  ui: hostLanguage(config.language, process.env),
@@ -314,19 +315,20 @@ const HANDLERS: Readonly<Record<string, Handler>> = {
314
315
  runtime: `Node ${process.version} · ${process.platform} ${process.arch}`,
315
316
  flag,
316
317
  settingsOf: (ruleIds) => settingsOf(config, ruleIds),
317
- check: async (path) => {
318
- const inspected = await inspect(path, config, [...argv, "--show-baseline"]);
319
- return { findings: inspected.outcome.findings, rules: inspected.rules, language: inspected.language, genre: inspected.genre };
320
- },
318
+ check: async (path) => ({
319
+ ...(await inspectAll(config, argv)(path)).checked,
320
+ conditions: runConditions(argv, flag(argv, "--genre"), config.experimental),
321
+ }),
321
322
  });
322
323
  },
323
- skill: (argv) => runSkill(argv, { cwd: process.cwd(), home: homedir(), ui: hostLanguage(readConfig().language, process.env) }),
324
+ grade: (argv, config) => runGrade(argv, { config, flag, ui: hostLanguage(config.language, process.env) }),
325
+ skill: (argv, config) => runSkill(argv, { cwd: process.cwd(), home: homedir(), ui: hostLanguage(config.language, process.env) }),
324
326
  };
325
327
 
326
328
  /** Every subcommand. Anything else on the command line is a file to check. */
327
329
  export const COMMANDS: readonly string[] = Object.keys(HANDLERS);
328
330
 
329
- export const main = async (argv: readonly string[]): Promise<number> => {
331
+ const dispatch = async (argv: readonly string[]): Promise<number> => {
330
332
  const first = argv[0];
331
333
  if (first === undefined || first === "--help" || first === "-h") {
332
334
  console.log(hostText(readConfig()).usage);
@@ -337,12 +339,17 @@ export const main = async (argv: readonly string[]): Promise<number> => {
337
339
  return 0;
338
340
  }
339
341
  // 知らないジャンルではどの rule も当たらず、知らない文書の種類では種類の知識が外れる。どちらも素通りに見えるので、何かする前に止める。
340
- const config = readConfig();
342
+ const config = withIncludes(await withExtensions(readConfig()), argv);
341
343
  const problems = settingProblems(first, flag(argv, "--genre"), config, hostText(config), hostLanguage(config.language, process.env));
342
344
  problems.forEach((problem) => console.error(problem));
343
- if (problems.length > 0) return 1;
345
+ // grade は設定の誤りを 2 で返す。CI の門で「出力が悪い」(1)と取り違えないため。
346
+ if (problems.length > 0) return first === "grade" ? GRADE_EXIT.unreadable : 1;
344
347
  const handler = HANDLERS[first];
345
- if (handler !== undefined) return handler(argv);
348
+ if (handler !== undefined) return handler(argv, config);
346
349
  const targets = targetsOf(first === "lint" ? argv.slice(1) : argv);
347
- return argv.includes("--watch") ? runWatch(targets, argv) : lint(targets, argv);
350
+ return argv.includes("--watch") ? runWatch(targets, argv, config) : lint(targets, argv, config);
348
351
  };
352
+
353
+ /** A chaff.yaml or checks.yaml that is not YAML stops the run with its path and position, not a stack trace. */
354
+ export const main = (argv: readonly string[]): Promise<number> =>
355
+ stoppingOnYamlFileError(() => dispatch(argv), process.cwd(), hostLanguage(undefined, process.env));
@@ -0,0 +1,24 @@
1
+ import type { Paragraph, Section, Sentence } from "./plugin.ts";
2
+
3
+ /**
4
+ * 結びとして読む、最後の節の終わりの段落の数。決まり文句の後ろに一言や追記が続く結び(「いかがでしたか。」→ 感想 → 「よいお年を!」)は
5
+ * 人の書いた記事に多く、最後の段落だけでは取りこぼす。
6
+ */
7
+ const CLOSING_PARAGRAPHS = 4;
8
+
9
+ /** 文書の最初の段落は書き出しで、結びではない(冒頭の「簡単にまとめると、」)。段落が一つだけなら、それが結びでもある。 */
10
+ const isOpening = (paragraphs: readonly Paragraph[], paragraph: Paragraph): boolean => paragraphs.length > 1 && paragraphs[0] === paragraph;
11
+
12
+ /**
13
+ * 結びの文。最後の節の終わりの段落で、書き出しの段落でないもの。見出しの無い文書は本文全体が一つの節なので、節だけで切ると冒頭の
14
+ * 「まとめると」や、長い書き起こしの途中の問いかけまで結びになる。箇条書きは段落に数えない。
15
+ */
16
+ export const closingSentences = (sections: readonly Pick<Section, "span">[], paragraphs: readonly Paragraph[]): readonly Sentence[] => {
17
+ const last = sections.at(-1);
18
+ if (last === undefined) return [];
19
+ return paragraphs
20
+ .filter((paragraph) => paragraph.span.start >= last.span.start && paragraph.span.start < last.span.end)
21
+ .slice(-CLOSING_PARAGRAPHS)
22
+ .filter((paragraph) => !isOpening(paragraphs, paragraph))
23
+ .flatMap((paragraph) => paragraph.sentences);
24
+ };
@@ -1,8 +1,4 @@
1
- import { loadAdapter } from "../adapter-load.ts";
2
- import { buildDocument, teamRules } from "../document.ts";
3
1
  import { readMarkdown } from "../markdown-read.ts";
4
- import { profileFor } from "../profile/for-file.ts";
5
- import { resolveGenre } from "../resolve-genre.ts";
6
2
  import { isMarkdownPath } from "../structure/markdown-path.ts";
7
3
  import { uiLanguageOf } from "../ui.ts";
8
4
  import { ATOM_KINDS, isAtomKind, type AtomKind } from "../compare/atom.ts";
@@ -10,7 +6,8 @@ import { extractFacts } from "../compare/extract.ts";
10
6
  import { outcomeOf, type Allowed, type Compared } from "../compare/outcome.ts";
11
7
  import { renderCompact, renderFriendly, renderJson } from "../compare/render.ts";
12
8
  import { COMPARE_TEXT } from "../compare/text.ts";
13
- import { readSource, treeLanguage, type TreeContext } from "./tree.ts";
9
+ import { readDocument, type ReadDocument } from "./read-document.ts";
10
+ import type { TreeContext } from "./tree.ts";
14
11
 
15
12
  /** Options whose value is the next argument. That value is not a file. */
16
13
  const VALUED: ReadonlySet<string> = new Set(["--language", "--genre", "--allow-dropped", "--allow-added"]);
@@ -34,20 +31,19 @@ const parseAllowed = (argv: readonly string[]): ParsedAllowed => {
34
31
  return { allowed: { dropped: kinds(dropped), added: kinds(added) } };
35
32
  };
36
33
 
37
- type Read = Compared & { readonly language: string };
34
+ export type DocumentFacts = Compared & { readonly language: string };
35
+
36
+ /** A document's facts, read with the team's names. */
37
+ export const factsOf = (path: string, prose: ReadDocument, names: readonly string[]): DocumentFacts => {
38
+ const root = isMarkdownPath(path) ? readMarkdown(prose.doc.source).root : undefined;
39
+ const extraction = extractFacts({ doc: prose.doc, root, structure: prose.structure, names });
40
+ return { path, extraction, language: prose.language };
41
+ };
38
42
 
39
43
  /** One document's facts, read as lint reads it: its language, the team's names, and the parts of speech. */
40
- const readFacts = async (path: string, argv: readonly string[], context: TreeContext): Promise<Read | undefined> => {
41
- const source = await readSource(path, context);
42
- if (source === undefined) return undefined;
43
- const language = treeLanguage(path, source, argv, context);
44
- const adapter = await loadAdapter(language);
45
- await adapter.prepare?.({ pos: true });
46
- const genre = resolveGenre(path, source, context.config, context.flag(argv, "--genre")).genre;
47
- const doc = buildDocument(path, source, adapter, teamRules(context.config), profileFor(context.config, path, source, language, genre));
48
- const root = isMarkdownPath(path) ? readMarkdown(doc.source).root : undefined;
49
- const extraction = extractFacts({ doc, root, structure: adapter.structure, names: context.config.names ?? [] });
50
- return { path, extraction, language };
44
+ export const readFacts = async (path: string, argv: readonly string[], context: TreeContext): Promise<DocumentFacts | undefined> => {
45
+ const prose = await readDocument(path, argv, context, true);
46
+ return prose === undefined ? undefined : factsOf(path, prose, context.config.names ?? []);
51
47
  };
52
48
 
53
49
  const renderFor = (argv: readonly string[]): typeof renderFriendly => {
@@ -58,6 +54,7 @@ const renderFor = (argv: readonly string[]): typeof renderFriendly => {
58
54
  /**
59
55
  * Whether a rewrite kept every fact: numbers, dates, URLs, code, names, quotations, headings, references and footnotes.
60
56
  * Compares; never rewrites. Ends with 1 when a fact was dropped or added, so a rewrite can be checked like a test.
57
+ * --distinct counts a fact as kept when the other document states it at least once.
61
58
  */
62
59
  export const runCompare = async (targets: readonly string[], argv: readonly string[], context: TreeContext): Promise<number> => {
63
60
  const host = COMPARE_TEXT[context.ui ?? "ja"];
@@ -74,7 +71,7 @@ export const runCompare = async (targets: readonly string[], argv: readonly stri
74
71
  const before = await readFacts(beforePath, argv, context);
75
72
  const after = before === undefined ? undefined : await readFacts(afterPath, argv, context);
76
73
  if (before === undefined || after === undefined) return 1;
77
- const outcome = outcomeOf(before, after, parsed.allowed);
74
+ const outcome = outcomeOf(before, after, parsed.allowed, argv.includes("--distinct") ? "distinct" : "as-stated");
78
75
  console.log(renderFor(argv)(outcome, COMPARE_TEXT[uiLanguageOf(before.language)]));
79
76
  return outcome.ok ? 0 : 1;
80
77
  };
@@ -0,0 +1,19 @@
1
+ import { citeTargets, runCite } from "./cite.ts";
2
+ import { compareTargets, runCompare } from "./compare.ts";
3
+ import { factsTargets, runFacts } from "./facts.ts";
4
+ import { outlineTargets, runOutline } from "./outline.ts";
5
+ import { runTree, treeTargets, type TreeContext } from "./tree.ts";
6
+
7
+ type DocumentCommand = (argv: readonly string[], context: TreeContext) => Promise<number>;
8
+
9
+ /**
10
+ * The commands that read one or two documents and report on them without linting: the tree, quotations, facts and
11
+ * outline. Each is given the settings the command line read once.
12
+ */
13
+ export const DOCUMENT_COMMANDS: Readonly<Record<string, DocumentCommand>> = {
14
+ tree: (argv, context) => runTree(treeTargets(argv), argv, context),
15
+ cite: (argv, context) => runCite(citeTargets(argv), argv, context),
16
+ compare: (argv, context) => runCompare(compareTargets(argv), argv, context),
17
+ facts: (argv, context) => runFacts(factsTargets(argv), argv, context),
18
+ outline: (argv, context) => runOutline(outlineTargets(argv), argv, context),
19
+ };
@@ -9,6 +9,7 @@ import { renderEval } from "../render/eval.ts";
9
9
  import { neededBy, tokenFeaturesOf, wantsTags } from "../run.ts";
10
10
  import type { AdapterNeeds, RuleDefinition } from "../plugin.ts";
11
11
  import { optionLayersOf } from "../config/option-problems.ts";
12
+ import { limitsFor } from "../config/style.ts";
12
13
  import type { Config } from "../config/load.ts";
13
14
  import { profileFor } from "../profile/for-file.ts";
14
15
  import { CLI_TEXT } from "../cli-text.ts";
@@ -52,9 +53,9 @@ export type Context = {
52
53
  * 測った結果は文書の言語で出す(混ざっていれば測らないので、言語は 1 つ)。断りは ui の言語。
53
54
  */
54
55
  export const runEval = async (targets: readonly string[], argv: readonly string[], context: Context): Promise<number> => {
55
- const paths = collectTargets(targets.length > 0 ? targets : ["."]);
56
+ const paths = collectTargets(targets.length > 0 ? targets : ["."], context.config.include);
56
57
  if (paths.length === 0) {
57
- console.error(CLI_TEXT[context.ui].noMarkdown(targets.join(", ")));
58
+ console.error(CLI_TEXT[context.ui].noMarkdown(targets.join(", "), context.config.include ?? []));
58
59
  return 1;
59
60
  }
60
61
  const { config, resolveGenre, flag, ui } = context;
@@ -66,7 +67,7 @@ export const runEval = async (targets: readonly string[], argv: readonly string[
66
67
  const adapter = await loadAdapter(language);
67
68
  const { genre } = resolveGenre(path, source, config);
68
69
  await adapter.prepare?.(evalNeeds(rulesOf(language, config), only, config, genre, language));
69
- return { doc: buildDocument(path, source, adapter, teamRules(config), profileFor(config, path, source, language, genre)), language, genre };
70
+ return { doc: buildDocument(path, source, adapter, teamRules(config, language), profileFor(config, path, source, language, genre)), language, genre };
70
71
  }),
71
72
  );
72
73
  const language = docs[0]?.language ?? "ja";
@@ -89,7 +90,7 @@ export const runEval = async (targets: readonly string[], argv: readonly string[
89
90
  rules,
90
91
  genre,
91
92
  language,
92
- config.limits,
93
+ limitsFor(config, language),
93
94
  optionLayersOf(config),
94
95
  ),
95
96
  docs.length,
@@ -0,0 +1,33 @@
1
+ import { uiLanguageOf } from "../ui.ts";
2
+ import { FACTS_TEXT } from "../compare/facts-text.ts";
3
+ import { renderFactsCompact, renderFactsFriendly, renderFactsJson, type FactList } from "../compare/facts-render.ts";
4
+ import { readFacts } from "./compare.ts";
5
+ import type { TreeContext } from "./tree.ts";
6
+
7
+ /** Options whose value is the next argument. That value is not a file. */
8
+ const VALUED: ReadonlySet<string> = new Set(["--language", "--genre"]);
9
+
10
+ export const factsTargets = (argv: readonly string[]): string[] =>
11
+ argv.slice(1).filter((arg, index, all) => !arg.startsWith("--") && !VALUED.has(all[index - 1] ?? ""));
12
+
13
+ const renderFor = (argv: readonly string[], list: FactList): string => {
14
+ const text = FACTS_TEXT[uiLanguageOf(list.language)];
15
+ if (argv.includes("--json")) return renderFactsJson(list);
16
+ return argv.includes("--compact") ? renderFactsCompact(list, text) : renderFactsFriendly(list, text);
17
+ };
18
+
19
+ /**
20
+ * The facts `chaff compare` would check in one document, listed before a rewrite: the inventory a full rewrite
21
+ * starts from. Read by compare's own extractor, so the list is exactly what compare holds the rewrite to.
22
+ */
23
+ export const runFacts = async (targets: readonly string[], argv: readonly string[], context: TreeContext): Promise<number> => {
24
+ const [path] = targets;
25
+ if (path === undefined || targets.length !== 1) {
26
+ console.error(FACTS_TEXT[context.ui ?? "ja"].usage);
27
+ return 1;
28
+ }
29
+ const documentFacts = await readFacts(path, argv, context);
30
+ if (documentFacts === undefined) return 1;
31
+ console.log(renderFor(argv, documentFacts));
32
+ return 0;
33
+ };