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
@@ -0,0 +1,31 @@
1
+ import { spansWithin, withoutSpans } from "../soft-break.ts";
2
+ import type { Span } from "../plugin.ts";
3
+
4
+ /**
5
+ * The text of a span as one spelling: what a reader never sees removed (unseen is sorted and does not overlap: a line
6
+ * break that vanishes between two wide characters, the marks of bold), any other run of white space one space,
7
+ * full-width and half-width forms alike.
8
+ */
9
+ export const factKey = (text: string, span: Span, unseen: readonly Span[]): string => {
10
+ const inside = spansWithin(unseen, span).map((part) => ({ start: part.start - span.start, end: part.end - span.start }));
11
+ return withoutSpans(text.slice(span.start, span.end), inside).normalize("NFKC").replace(/\s+/gu, " ");
12
+ };
13
+
14
+ /** A text without its unseen parts, and where each of its characters stands in the whole text. */
15
+ export type SeenText = { readonly text: string; readonly offsets: readonly number[] };
16
+
17
+ /** The text as a reader sees it, for finding words that a vanishing line break or bold marks split (日本\n銀行). */
18
+ export const seenTextOf = (text: string, unseen: readonly Span[]): SeenText => {
19
+ const kept = [...unseen, { start: text.length, end: text.length }].map((part, index) => ({ start: unseen[index - 1]?.end ?? 0, end: part.start }));
20
+ return {
21
+ text: kept.map((part) => text.slice(part.start, part.end)).join(""),
22
+ offsets: kept.flatMap((part) => Array.from({ length: part.end - part.start }, (_, index) => part.start + index)),
23
+ };
24
+ };
25
+
26
+ /** A span found in the seen text, as a span of the whole text: from its first character to just after its last. */
27
+ export const wholeSpanOf = <T extends Span>(seen: SeenText, found: T): T => ({
28
+ ...found,
29
+ start: seen.offsets[found.start] ?? found.start,
30
+ end: (seen.offsets[found.end - 1] ?? found.end - 1) + 1,
31
+ });
@@ -1,8 +1,9 @@
1
1
  import { bareUrls, type BareUrl } from "../bare-url.ts";
2
- import { linkChrome } from "../document.ts";
2
+ import { emphasisSpans, linkChrome } from "../document.ts";
3
3
  import { opaqueSpans } from "../markdown-read.ts";
4
4
  import { spanOf, type MarkdownNode } from "../markdown-node.ts";
5
5
  import { maskSpans } from "../mask.ts";
6
+ import { unmaskedSoftBreaks } from "../soft-break.ts";
6
7
  import { eachPreOrder } from "../tree-walk.ts";
7
8
  import type { Span } from "../plugin.ts";
8
9
  import { overlapsAny, spanIndex, type SpanIndex } from "./spans.ts";
@@ -22,6 +23,11 @@ export type FactText = {
22
23
  readonly bareUrls: readonly BareUrl[];
23
24
  /** Ordered-list markers (`1.`): they number the list, they do not state a number. */
24
25
  readonly listMarkers: readonly Span[];
26
+ /**
27
+ * What a reader of the rendered Markdown never sees, sorted: a line break between two wide characters (「系の\nシステム」)
28
+ * and the marks of bold. A plain-text document shows its line breaks, so it has none.
29
+ */
30
+ readonly unseen: readonly Span[];
25
31
  };
26
32
 
27
33
  /** Nodes whose whole span is not read as prose: a link reference definition's URL is read as a URL, an image is not text. */
@@ -55,6 +61,18 @@ const markdownParts = (root: MarkdownNode, source: string): MarkdownParts => {
55
61
  return parts;
56
62
  };
57
63
 
64
+ /**
65
+ * Line breaks are read the way the rules read them: one next to blanked code or a link's marks is kept. Bold marks are
66
+ * read through, as a reader does not see them: 「系の\n**システム**」 joins too. The break and the marks may touch, so the
67
+ * spans are merged.
68
+ */
69
+ const unseenOf = (source: string, text: string, root: MarkdownNode | undefined): readonly Span[] => {
70
+ if (root === undefined) return [];
71
+ const emphasis = emphasisSpans(root, source);
72
+ const breaks = unmaskedSoftBreaks(maskSpans(source, emphasis), maskSpans(text, emphasis));
73
+ return spanIndex([...breaks, ...emphasis]);
74
+ };
75
+
58
76
  /** root is the Markdown tree, or undefined for a plain-text document, where nothing is code and URLs are bare. */
59
77
  export const factTextOf = (source: string, root: MarkdownNode | undefined): FactText => {
60
78
  const code = root === undefined ? [] : opaqueSpans(root);
@@ -64,5 +82,6 @@ export const factTextOf = (source: string, root: MarkdownNode | undefined): Fact
64
82
  // An autolink's text is its URL: it is read once, as the link.
65
83
  const bare = bareUrls(codeless).filter((url) => !overlapsAny(insideLinks, url));
66
84
  const blanked = [...code, ...parts.chrome, ...bare];
67
- return { text: maskSpans(source, blanked), codeless, blanked: spanIndex(blanked), bareUrls: bare, listMarkers: parts.listMarkers };
85
+ const text = maskSpans(source, blanked);
86
+ return { text, codeless, blanked: spanIndex(blanked), bareUrls: bare, listMarkers: parts.listMarkers, unseen: unseenOf(source, text, root) };
68
87
  };
@@ -0,0 +1,63 @@
1
+ import { ATOM_KINDS, type Atom, type AtomKind, type Extraction, type Unread } from "./atom.ts";
2
+ import { countsOf } from "./outcome.ts";
3
+ import { atomJson, shown } from "./render.ts";
4
+ import type { FactsText } from "./facts-text.ts";
5
+
6
+ /** One document's facts as `chaff facts` lists them. */
7
+ export type FactList = { readonly path: string; readonly language: string; readonly extraction: Extraction };
8
+
9
+ /** Kind by kind in compare's order, and within a kind in the order the document states them. */
10
+ export const inChecklistOrder = (atoms: readonly Atom[]): Atom[] =>
11
+ atoms.toSorted((left, right) => ATOM_KINDS.indexOf(left.kind) - ATOM_KINDS.indexOf(right.kind) || left.line - right.line);
12
+
13
+ /** Every kind with its count, zeros too: an empty kind reads as "none stated", never as "not looked at". */
14
+ const perKind = (atoms: readonly Atom[], text: FactsText): string => {
15
+ const counts = countsOf(atoms);
16
+ return ATOM_KINDS.map((kind) => text.kindCount(text.kinds[kind], counts[kind])).join(text.separator);
17
+ };
18
+
19
+ const title = (list: FactList, text: FactsText): string => text.title(list.path, list.extraction.atoms.length, perKind(list.extraction.atoms, text));
20
+
21
+ const checklistLine = (atom: Atom, path: string): string => ` - [ ] ${shown(atom.text)} (${path}:${String(atom.line)})`;
22
+
23
+ const kindBlock = (ordered: readonly Atom[], kind: AtomKind, path: string, text: FactsText): string[] => {
24
+ const ofKind = ordered.filter((atom) => atom.kind === kind);
25
+ return ofKind.length === 0 ? [] : ["", text.kindHeading(text.kinds[kind], ofKind.length), ...ofKind.map((atom) => checklistLine(atom, path))];
26
+ };
27
+
28
+ const unreadBlock = (unread: readonly Unread[], text: FactsText): string[] =>
29
+ unread.length === 0 ? [] : ["", text.unreadHeading, ...unread.map((entry) => ` ${text.unread(entry.kind, entry.reason)}`)];
30
+
31
+ /** For a person or an AI about to rewrite: a checklist per kind, with the line each fact is on. */
32
+ export const renderFactsFriendly = (list: FactList, text: FactsText): string => {
33
+ const ordered = inChecklistOrder(list.extraction.atoms);
34
+ return [
35
+ title(list, text),
36
+ ...ATOM_KINDS.flatMap((kind) => kindBlock(ordered, kind, list.path, text)),
37
+ ...unreadBlock(list.extraction.unread, text),
38
+ "",
39
+ text.next(list.path),
40
+ ].join("\n");
41
+ };
42
+
43
+ /** For grep: one fact per line with the kind in English, then what was not read, then the counts. */
44
+ export const renderFactsCompact = (list: FactList, text: FactsText): string =>
45
+ [
46
+ ...inChecklistOrder(list.extraction.atoms).map((atom) => `${list.path}:${String(atom.line)}: ${atom.kind} ${shown(atom.text)}`),
47
+ ...list.extraction.unread.map((entry) => `${list.path}: unread ${entry.kind} (${entry.reason})`),
48
+ title(list, text),
49
+ ].join("\n");
50
+
51
+ /** For an AI to keep as its inventory: every fact with its kind, key, text and line, and the counts per kind. */
52
+ export const renderFactsJson = (list: FactList): string =>
53
+ JSON.stringify(
54
+ {
55
+ path: list.path,
56
+ language: list.language,
57
+ counts: countsOf(list.extraction.atoms),
58
+ unread: list.extraction.unread,
59
+ facts: inChecklistOrder(list.extraction.atoms).map(atomJson),
60
+ },
61
+ null,
62
+ 2,
63
+ );
@@ -0,0 +1,41 @@
1
+ import type { Texts } from "../ui.ts";
2
+ import { counted } from "../render/plural.ts";
3
+ import { COMPARE_TEXT, type CompareText } from "./text.ts";
4
+
5
+ /** What `chaff facts` says. The names of the kinds and the reasons a kind was not read are compare's own. */
6
+ export type FactsText = Pick<CompareText, "kinds" | "unread" | "unreadHeading" | "separator"> & {
7
+ readonly usage: string;
8
+ /** The first line: the file, how many facts, and the count per kind. */
9
+ readonly title: (path: string, total: number, perKind: string) => string;
10
+ readonly kindHeading: (kindName: string, count: number) => string;
11
+ /** How a kind is counted in the first line (数 12 / numbers 12). */
12
+ readonly kindCount: (kindName: string, count: number) => string;
13
+ /** The last line: the command that checks a rewrite against this list. */
14
+ readonly next: (path: string) => string;
15
+ };
16
+
17
+ const shared = (text: CompareText): Pick<CompareText, "kinds" | "unread" | "unreadHeading" | "separator"> => ({
18
+ kinds: text.kinds,
19
+ unread: text.unread,
20
+ unreadHeading: text.unreadHeading,
21
+ separator: text.separator,
22
+ });
23
+
24
+ export const FACTS_TEXT: Texts<FactsText> = {
25
+ ja: {
26
+ ...shared(COMPARE_TEXT.ja),
27
+ usage: "使い方: chaff facts <file> [--compact | --json] [--language ja|en|…] [--genre <ジャンル>]",
28
+ title: (path, total, perKind) => `${path} の事実 ${String(total)} 件(${perKind})`,
29
+ kindHeading: (kindName, count) => `${kindName} ${String(count)} 件`,
30
+ kindCount: (kindName, count) => `${kindName} ${String(count)}`,
31
+ next: (path) => `書き直したら npx chaffjs compare ${path} <書き直した後> で、この一覧が残っているかを確かめます`,
32
+ },
33
+ en: {
34
+ ...shared(COMPARE_TEXT.en),
35
+ usage: "usage: chaff facts <file> [--compact | --json] [--language ja|en|…] [--genre <genre>]",
36
+ title: (path, total, perKind) => `${path}: ${counted(total, "fact")} (${perKind})`,
37
+ kindHeading: (kindName, count) => `${kindName}: ${String(count)}`,
38
+ kindCount: (kindName, count) => `${kindName} ${String(count)}`,
39
+ next: (path) => `After rewriting, npx chaffjs compare ${path} <rewritten> checks that every fact on this list is still there`,
40
+ },
41
+ };
@@ -11,7 +11,7 @@ export type Comparison = {
11
11
  readonly reformed: readonly Reformed[];
12
12
  };
13
13
 
14
- const identity = (atom: Atom): string => `${atom.kind}\u0000${atom.key}`;
14
+ export const identity = (atom: Atom): string => `${atom.kind}\u0000${atom.key}`;
15
15
 
16
16
  const groupBy = <T>(items: readonly T[], keyOf: (item: T) => string): Map<string, T[]> => {
17
17
  const groups = new Map<string, T[]>();
@@ -1,6 +1,7 @@
1
1
  import { type Atom, type AtomKind, type Extraction, type Unread } from "./atom.ts";
2
2
  import { compareAtoms, type Reformed } from "./match.ts";
3
3
  import { unwrittenNames } from "./written-names.ts";
4
+ import { unstatedChanges } from "./distinct.ts";
4
5
 
5
6
  /** One document as compared: where it is, how many facts of each kind it states, and what could not be read. */
6
7
  export type Side = {
@@ -27,6 +28,9 @@ export type Allowed = { readonly dropped: ReadonlySet<AtomKind>; readonly added:
27
28
 
28
29
  const NOTHING_ALLOWED: Allowed = { dropped: new Set(), added: new Set() };
29
30
 
31
+ /** How facts are counted: as-stated compares how many times each is stated, distinct only whether it is stated (--distinct). */
32
+ export type Counting = "as-stated" | "distinct";
33
+
30
34
  const NO_FACTS: Readonly<Record<AtomKind, number>> = {
31
35
  number: 0,
32
36
  date: 0,
@@ -40,7 +44,7 @@ const NO_FACTS: Readonly<Record<AtomKind, number>> = {
40
44
  footnote: 0,
41
45
  };
42
46
 
43
- const countsOf = (atoms: readonly Atom[]): Record<AtomKind, number> => {
47
+ export const countsOf = (atoms: readonly Atom[]): Record<AtomKind, number> => {
44
48
  const counts = { ...NO_FACTS };
45
49
  atoms.forEach((atom) => {
46
50
  counts[atom.kind] += 1;
@@ -54,11 +58,17 @@ const marked = (atoms: readonly Atom[], allowed: ReadonlySet<AtomKind>): Change[
54
58
 
55
59
  export type Compared = { readonly path: string; readonly extraction: Extraction };
56
60
 
61
+ /** The changes of one side that the other side does not state: as many times (as-stated), or at all (distinct). */
62
+ const changesOf = (changes: readonly Atom[], own: Extraction, other: Extraction, counting: Counting): Atom[] => {
63
+ const unwritten = unwrittenNames(changes, own.atoms, other.nameText);
64
+ return counting === "distinct" ? unstatedChanges(unwritten, other.atoms, other.nameText) : unwritten;
65
+ };
66
+
57
67
  /** What `chaff compare` reports: the comparison of two documents' facts, with the allowed kinds set aside. */
58
- export const outcomeOf = (before: Compared, after: Compared, allowed: Allowed = NOTHING_ALLOWED): Outcome => {
68
+ export const outcomeOf = (before: Compared, after: Compared, allowed: Allowed = NOTHING_ALLOWED, counting: Counting = "as-stated"): Outcome => {
59
69
  const comparison = compareAtoms(before.extraction.atoms, after.extraction.atoms);
60
- const dropped = marked(unwrittenNames(comparison.dropped, before.extraction.atoms, after.extraction.nameText), allowed.dropped);
61
- const added = marked(unwrittenNames(comparison.added, after.extraction.atoms, before.extraction.nameText), allowed.added);
70
+ const dropped = marked(changesOf(comparison.dropped, before.extraction, after.extraction, counting), allowed.dropped);
71
+ const added = marked(changesOf(comparison.added, after.extraction, before.extraction, counting), allowed.added);
62
72
  return {
63
73
  before: sideOf(before.path, before.extraction),
64
74
  after: sideOf(after.path, after.extraction),
@@ -1,6 +1,7 @@
1
1
  import type { ProseDocument, Span, Token } from "../plugin.ts";
2
2
  import type { Atom } from "./atom.ts";
3
3
  import { overlapsAny, type SpanIndex } from "./spans.ts";
4
+ import { factKey } from "./fact-key.ts";
4
5
 
5
6
  const PROPER_NOUN = "PROPN";
6
7
 
@@ -40,11 +41,10 @@ export type NounInput = {
40
41
  /** Facts other readers took and what is not prose: a proper noun inside one is read as that, not again here. */
41
42
  readonly taken: SpanIndex;
42
43
  readonly lineOf: (offset: number) => number;
44
+ /** What a reader never sees (FactText.unseen): a line break inside a name does not make another name. */
45
+ readonly unseen: readonly Span[];
43
46
  };
44
47
 
45
- /** A name as one spelling: full-width letters and line breaks inside a name do not make another name. */
46
- export const nameKey = (written: string): string => written.normalize("NFKC").replace(/\s+/gu, " ");
47
-
48
48
  /** Whether the language package tagged parts of speech: without them, a document with sentences has no proper nouns to read. */
49
49
  export const readsProperNouns = (doc: ProseDocument): boolean => doc.sentences.length === 0 || doc.sentences.some((sentence) => sentence.tokens !== undefined);
50
50
 
@@ -54,12 +54,16 @@ export const readsProperNouns = (doc: ProseDocument): boolean => doc.sentences.l
54
54
  */
55
55
  export const properNouns = (input: NounInput): Atom[] => {
56
56
  const { source } = input.doc;
57
- const lowerCase = lowerCaseWords(source);
58
- return input.doc.sentences.flatMap((sentence) =>
59
- runsOf(sentence.tokens ?? [], source).flatMap((run): Atom[] => {
60
- const text = source.slice(run.start, run.end);
61
- if (overlapsAny(input.taken, run) || isCommonWord(run, text, lowerCase)) return [];
62
- return [{ kind: "name", key: nameKey(text), text, line: input.lineOf(run.start) }];
63
- }),
57
+ return nameSpans(input.doc).flatMap((run): Atom[] => {
58
+ if (overlapsAny(input.taken, run)) return [];
59
+ return [{ kind: "name", key: factKey(source, run, input.unseen), text: source.slice(run.start, run.end), line: input.lineOf(run.start) }];
60
+ });
61
+ };
62
+
63
+ /** Where the tagger's proper nouns are written, each run of them one name, without the common words that began a sentence. */
64
+ export const nameSpans = (doc: ProseDocument): Span[] => {
65
+ const lowerCase = lowerCaseWords(doc.source);
66
+ return doc.sentences.flatMap((sentence) =>
67
+ runsOf(sentence.tokens ?? [], doc.source).filter((run) => !isCommonWord(run, doc.source.slice(run.start, run.end), lowerCase)),
64
68
  );
65
69
  };
@@ -7,7 +7,7 @@ import type { CompareText } from "./text.ts";
7
7
  const SHOWN_WIDTH = 60;
8
8
 
9
9
  /** One line of a fact as written: a code block or a wrapped quotation is shown on one line, cut at SHOWN_WIDTH. */
10
- const shown = (text: string): string => {
10
+ export const shown = (text: string): string => {
11
11
  const oneLine = text.replace(/\s+/gu, " ").trim();
12
12
  return oneLine.length > SHOWN_WIDTH ? `${oneLine.slice(0, SHOWN_WIDTH)}…` : oneLine;
13
13
  };
@@ -84,7 +84,7 @@ export const renderCompact = (outcome: Outcome, text: CompareText): string => {
84
84
  ].join("\n");
85
85
  };
86
86
 
87
- const atomJson = (atom: Atom): Readonly<Record<string, string | number>> => ({ kind: atom.kind, key: atom.key, text: atom.text, line: atom.line });
87
+ export const atomJson = (atom: Atom): Readonly<Record<string, string | number>> => ({ kind: atom.kind, key: atom.key, text: atom.text, line: atom.line });
88
88
 
89
89
  /** For an AI to act on: every dropped and added fact with its line, the reformed pairs, and the counts per kind. */
90
90
  export const renderJson = (outcome: Outcome): string =>
@@ -2,6 +2,7 @@ import { QUOTATION_MARKS, quotedSpans } from "../quoted-span.ts";
2
2
  import type { Span } from "../plugin.ts";
3
3
  import type { Atom } from "./atom.ts";
4
4
  import { coversOffset, overlapsAny, spanIndex, type SpanIndex } from "./spans.ts";
5
+ import { factKey } from "./fact-key.ts";
5
6
 
6
7
  /** Where a reader looks, and how it says where it found something. */
7
8
  export type TextInput = { readonly text: string; readonly source: string; readonly lineOf: (offset: number) => number };
@@ -63,14 +64,14 @@ const paragraphsOf = (text: string): Span[] => {
63
64
  return [-1, ...breaks].map((from, index) => ({ start: from + 1, end: breaks[index] ?? text.length }));
64
65
  };
65
66
 
66
- /** What is quoted, as one spelling: line breaks and runs of spaces are how it was wrapped, not what it says. */
67
- const quoteKey = (inner: string): string => inner.normalize("NFKC").replace(/\s+/gu, " ").trim();
68
-
69
- /** Quoted strings: 「」『』, “” and "". The key is what is inside; the marks are how it is written. */
70
- export const quotations = (input: TextInput): Atom[] =>
67
+ /**
68
+ * Quoted strings: 「」『』, “” and "". The key is what is inside, as one spelling: line breaks, runs of spaces and bold
69
+ * marks are how it is written, not what it says. unseen: what a reader never sees (FactText.unseen).
70
+ */
71
+ export const quotations = (input: TextInput, unseen: readonly Span[]): Atom[] =>
71
72
  paragraphsOf(input.text).flatMap((paragraph) =>
72
73
  quotedSpans(input.text.slice(paragraph.start, paragraph.end), QUOTATION_MARKS).flatMap((inner) => {
73
- const key = quoteKey(input.text.slice(paragraph.start + inner.start, paragraph.start + inner.end));
74
+ const key = factKey(input.text, { start: paragraph.start + inner.start, end: paragraph.start + inner.end }, unseen).trim();
74
75
  const span = { start: paragraph.start + inner.start - 1, end: paragraph.start + inner.end + 1 };
75
76
  return key === "" ? [] : atomsOf([{ ...span, key }], "quote", input);
76
77
  }),
@@ -82,7 +82,8 @@ const UNREAD_EN: Readonly<Record<UnreadReason, (kind: AtomKind) => string>> = {
82
82
 
83
83
  export const COMPARE_TEXT: Texts<CompareText> = {
84
84
  ja: {
85
- usage: "使い方: chaff compare <書き換える前> <書き換えた後> [--compact | --json] [--allow-dropped <種類>] [--allow-added <種類>] [--language ja|en|…]",
85
+ usage:
86
+ "使い方: chaff compare <書き換える前> <書き換えた後> [--compact | --json] [--allow-dropped <種類>] [--allow-added <種類>] [--distinct] [--language ja|en|…]",
86
87
  unknownKind: (kind, kinds) => `知らない種類です: ${kind}(使えるのは ${kinds})`,
87
88
  kinds: KINDS_JA,
88
89
  kind: KINDS_JA,
@@ -100,7 +101,7 @@ export const COMPARE_TEXT: Texts<CompareText> = {
100
101
  tally: (dropped, added, reformed) => `落ちた ${String(dropped)} 件、足された ${String(added)} 件、書き方だけ ${String(reformed)} 件`,
101
102
  },
102
103
  en: {
103
- usage: "usage: chaff compare <before> <after> [--compact | --json] [--allow-dropped <kind>] [--allow-added <kind>] [--language ja|en|…]",
104
+ usage: "usage: chaff compare <before> <after> [--compact | --json] [--allow-dropped <kind>] [--allow-added <kind>] [--distinct] [--language ja|en|…]",
104
105
  unknownKind: (kind, kinds) => `Unknown kind: ${kind} (the kinds are ${kinds})`,
105
106
  kinds: KINDS_EN,
106
107
  kind: KIND_EN,
@@ -1,11 +1,12 @@
1
- import { readFileSync } from "node:fs";
2
1
  import { dirname } from "node:path";
3
- import { parse } from "yaml";
2
+ import { readYamlFile } from "./yaml-file.ts";
4
3
  import { isLevel } from "../levels.ts";
5
4
  import { defaultModel } from "../judge.ts";
6
5
  import { isBackend, type BackendName } from "../backends/types.ts";
7
6
  import type { Level } from "../plugin.ts";
8
7
  import type { PathRule } from "./by-path.ts";
8
+ import type { Extensions } from "../extension/load.ts";
9
+ import type { StyleLimits } from "../style-parse.ts";
9
10
 
10
11
  export const CONFIG_FILE = "chaff.yaml";
11
12
 
@@ -34,6 +35,8 @@ export type Config = {
34
35
  readonly names: readonly string[];
35
36
  /** names に書かれていたが名前として読めなかった値。黙って捨てると、並べたつもりの名前が効いていないことに気づけない。 */
36
37
  readonly unreadableNames: readonly string[];
38
+ /** File-name globs (*.yaml) a directory walk checks besides Markdown. --include adds to them. */
39
+ readonly include?: readonly string[];
37
40
  /** パスごとの上書き。設定ファイルのある場所からの相対で照合する。 */
38
41
  readonly byPath: readonly PathRule[];
39
42
  readonly baseDir: string;
@@ -47,12 +50,20 @@ export type Config = {
47
50
  readonly applied?: AppliedStyle | undefined;
48
51
  /** custom_rules as written: the team's own rules. custom/parse.ts reads and checks them. */
49
52
  readonly customRules?: unknown;
53
+ /** grade as written: the rubric `chaff grade` reads (grade/rubric.ts). */
54
+ readonly grade?: unknown;
55
+ /** plugins as written: package names and paths. extension/plugin-load.ts reads and checks them. */
56
+ readonly plugins?: unknown;
57
+ /** The code chaff.yaml names, once loaded (extension/load.ts). Reading chaff.yaml does not load it. */
58
+ readonly extensions?: Extensions;
50
59
  };
51
60
 
52
61
  export type AppliedStyle = {
53
62
  readonly style: string;
54
63
  readonly levelsFrom: readonly string[];
55
64
  readonly options: Readonly<Record<string, unknown>>;
65
+ /** The style's numbers, by rule and language, for the rules whose level it decided. */
66
+ readonly limits: StyleLimits;
56
67
  };
57
68
 
58
69
  /** 判定の質が誤検知に直結するので、既定は最上位のモデル。cost は絞り込みで削る。spec §14。 */
@@ -155,7 +166,7 @@ const byPathOf = (raw: unknown): PathRule[] => (Array.isArray(raw) ? raw.map(toP
155
166
 
156
167
  /** 設定ファイルが無くても動く。あっても、既定から変えたものだけが書かれている。spec §18。 */
157
168
  export const loadConfig = (path: string): Config => {
158
- const raw: unknown = parse(readFileSync(path, "utf8"));
169
+ const raw: unknown = readYamlFile(path);
159
170
  if (!isRecord(raw)) return { ...EMPTY, path };
160
171
  const declared: unknown = raw["ai_backend"];
161
172
  const backend: BackendName = isBackend(declared) ? declared : DEFAULT_BACKEND;
@@ -178,11 +189,14 @@ export const loadConfig = (path: string): Config => {
178
189
  requiredSections: wordsOf(raw["required_sections"]),
179
190
  names: names.names,
180
191
  unreadableNames: names.unreadable,
192
+ include: globsOf(raw["include"]),
181
193
  byPath: byPathOf(raw["by_path"]),
182
194
  baseDir: dirname(path),
183
195
  options: isRecord(options) ? options : {},
184
196
  unreadableOptions: options === undefined || options === null || isRecord(options) ? undefined : printed(options),
185
197
  style: raw["style"] === undefined || raw["style"] === null ? undefined : (str(raw["style"]) ?? printed(raw["style"])),
186
198
  customRules: raw["custom_rules"],
199
+ grade: raw["grade"],
200
+ plugins: raw["plugins"],
187
201
  };
188
202
  };
@@ -1,7 +1,7 @@
1
1
  import { CONFIG_FILE, type Config } from "./load.ts";
2
2
  import type { RuleDefinition, RuleOption } from "../plugin.ts";
3
3
  import { optionProblems, type OptionLayer, type OptionProblem } from "../rule-options.ts";
4
- import { styleLevelSource, styleSource } from "./style.ts";
4
+ import { limitsFor, styleLevelSource, styleSource } from "./style.ts";
5
5
  import type { Texts, UiLanguage } from "../ui.ts";
6
6
 
7
7
  /** Where chaff.yaml's options come from, for settleOptions: the file itself. */
@@ -10,13 +10,15 @@ export const configOptionLayer = (config: Pick<Config, "options">): OptionLayer
10
10
  values: config.options ?? {},
11
11
  });
12
12
 
13
- /** Where a rule's settings come from, for explain: the option layers, and the style when it set the level. */
13
+ /** Where a rule's settings come from, for explain: the option layers, the style when it set the level, and a number set for it. */
14
14
  export const settingSourcesOf = (
15
- config: Pick<Config, "options" | "applied">,
15
+ config: Pick<Config, "options" | "applied" | "limits">,
16
16
  ruleId: string,
17
- ): { optionLayers: OptionLayer[]; levelFrom: string | undefined } => ({
17
+ language: string,
18
+ ): { optionLayers: OptionLayer[]; levelFrom: string | undefined; limit: number | undefined } => ({
18
19
  optionLayers: optionLayersOf(config),
19
20
  levelFrom: styleLevelSource(config, ruleId),
21
+ limit: limitsFor(config, language)[ruleId],
20
22
  });
21
23
 
22
24
  /** Every place options come from, strongest first: chaff.yaml, then its style. */
@@ -18,13 +18,26 @@ export const withStyle = (config: Config, styles: readonly StyleDefinition[]): C
18
18
  const style = styles.find((entry) => entry.id === config.style);
19
19
  if (style === undefined) return config;
20
20
  const fromStyle = Object.keys(style.rules).filter((id) => config.rules[id] === undefined && config.limits[id] === undefined);
21
+ const limits = Object.fromEntries(Object.entries(style.limits).filter(([id]) => fromStyle.includes(id)));
21
22
  return {
22
23
  ...config,
23
24
  rules: { ...style.rules, ...config.rules },
24
- applied: { style: style.id, levelsFrom: fromStyle, options: style.options },
25
+ applied: { style: style.id, levelsFrom: fromStyle, options: style.options, limits },
25
26
  };
26
27
  };
27
28
 
29
+ /**
30
+ * The numeric limits a run of a document in this language uses: chaff.yaml's own, and under them the style's for this
31
+ * language. A style that gives a number only for Japanese leaves an English document at the level's number.
32
+ */
33
+ export const limitsFor = (config: Pick<Config, "limits" | "applied">, language: string): Readonly<Record<string, number>> => {
34
+ const fromStyle = Object.entries(config.applied?.limits ?? {}).flatMap(([id, byLanguage]): [string, number][] => {
35
+ const limit = byLanguage[language];
36
+ return limit === undefined ? [] : [[id, limit]];
37
+ });
38
+ return { ...Object.fromEntries(fromStyle), ...config.limits };
39
+ };
40
+
28
41
  const TEXT: Texts<{ readonly unknown: (where: string, style: string, known: string) => string }> = {
29
42
  ja: {
30
43
  unknown: (where, style, known) => `${where}: style: ${style} というスタイルはありません。使えるのは ${known} です`,
@@ -0,0 +1,65 @@
1
+ import { readFileSync } from "node:fs";
2
+ import { parse, YAMLParseError } from "yaml";
3
+ import { relative } from "node:path";
4
+ import type { Texts, UiLanguage } from "../ui.ts";
5
+
6
+ /** Where a settings file stops being YAML: 1-based line and column, and the parser's own sentence without its position. */
7
+ export type YamlSyntax = { readonly line: number; readonly column: number; readonly detail: string };
8
+
9
+ /** The parser appends " at line 3, column 1:" and, on the lines below, a picture of the line; chaff says the position itself. */
10
+ const POSITION_TAIL = / at line \d+, column \d+:?$/u;
11
+
12
+ /** A YAML syntax error as a position and a sentence, or undefined for anything else (a missing file is not a syntax error). */
13
+ export const yamlSyntaxOf = (error: unknown): YamlSyntax | undefined => {
14
+ if (!(error instanceof YAMLParseError)) return undefined;
15
+ const start = error.linePos?.[0];
16
+ return {
17
+ line: start?.line ?? 1,
18
+ column: start?.col ?? 1,
19
+ detail: (error.message.split("\n")[0] ?? "").replace(POSITION_TAIL, "").trim(),
20
+ };
21
+ };
22
+
23
+ /** A settings file the person wrote that is not YAML. The command line says where and stops; no stack trace. */
24
+ export class YamlFileError extends Error {
25
+ readonly path: string;
26
+ readonly syntax: YamlSyntax;
27
+
28
+ constructor(path: string, syntax: YamlSyntax, cause: unknown) {
29
+ super(`${path}:${syntax.line}:${syntax.column}: ${syntax.detail}`, { cause });
30
+ this.name = "YamlFileError";
31
+ this.path = path;
32
+ this.syntax = syntax;
33
+ }
34
+ }
35
+
36
+ /** A settings file read as YAML. A syntax error becomes a YamlFileError naming the file; other failures pass through. */
37
+ export const readYamlFile = (path: string): unknown => {
38
+ const text = readFileSync(path, "utf8");
39
+ try {
40
+ return parse(text);
41
+ } catch (error) {
42
+ const syntax = yamlSyntaxOf(error);
43
+ if (syntax === undefined) throw error;
44
+ throw new YamlFileError(path, syntax, error);
45
+ }
46
+ };
47
+
48
+ const TEXT: Texts<(path: string, syntax: YamlSyntax) => string> = {
49
+ ja: (path, { line, column, detail }) => `chaff: ${path} の ${line} 行目 ${column} 桁目が YAML として読めません: ${detail}`,
50
+ en: (path, { line, column, detail }) => `chaff: ${path}, line ${line}, column ${column}, is not valid YAML: ${detail}`,
51
+ };
52
+
53
+ /** The sentence the command line prints for a settings file that is not YAML. path: as the person would type it. */
54
+ export const yamlFileProblem = (path: string, syntax: YamlSyntax, ui: UiLanguage): string => TEXT[ui](path, syntax);
55
+
56
+ /** Runs a command, and turns a settings file that is not YAML into its sentence and exit code 1. cwd: what the path is printed relative to. */
57
+ export const stoppingOnYamlFileError = async (run: () => Promise<number>, cwd: string, ui: UiLanguage): Promise<number> => {
58
+ try {
59
+ return await run();
60
+ } catch (error) {
61
+ if (!(error instanceof YamlFileError)) throw error;
62
+ console.error(yamlFileProblem(relative(cwd, error.path) || error.path, error.syntax, ui));
63
+ return 1;
64
+ }
65
+ };
@@ -0,0 +1,43 @@
1
+ // 誤った形と正しい形の組から、書いた語のどこをどう直すかを決める。純粋な関数だけを置く。
2
+
3
+ /** wrong の上の [start, end) を replacement にすると right になる。前後の同じ字は含めない。 */
4
+ export type Edit = { readonly start: number; readonly end: number; readonly replacement: string };
5
+
6
+ const commonPrefix = (left: string, right: string): number => {
7
+ const limit = Math.min(left.length, right.length);
8
+ const differs = [...Array(limit).keys()].find((at) => left[at] !== right[at]);
9
+ return differs ?? limit;
10
+ };
11
+
12
+ /** 二つの形の違う所。前の同じ字を先に除き、残りから後ろの同じ字を除く(「ですす」と「です」は、後ろの「す」を足した所)。 */
13
+ export const editBetween = (wrong: string, right: string): Edit => {
14
+ const start = commonPrefix(wrong, right);
15
+ const tail = commonPrefix(Array.from(wrong.slice(start)).reverse().join(""), Array.from(right.slice(start)).reverse().join(""));
16
+ return { start, end: wrong.length - tail, replacement: right.slice(start, right.length - tail) };
17
+ };
18
+
19
+ /** 指す字と、そこに入る正しい形。指す字は、書いた字の頭から。 */
20
+ export type Correction = { readonly matched: string; readonly suggestion: string };
21
+
22
+ const capitalised = (word: string): string => `${word.charAt(0).toUpperCase()}${word.slice(1)}`;
23
+
24
+ const isAllCapitals = (word: string): boolean => /\p{Lu}.*\p{Lu}/u.test(word) && !/\p{Ll}/u.test(word);
25
+
26
+ /** 書いた語の大文字に合わせる(文頭の "Teh" には "The"、"TEH" には "THE")。 */
27
+ const casedLike = (written: string, suggestion: string): string => {
28
+ if (isAllCapitals(written)) return suggestion.toUpperCase();
29
+ return /^\p{Lu}/u.test(written) && /^\p{Ll}/u.test(suggestion) ? capitalised(suggestion) : suggestion;
30
+ };
31
+
32
+ /**
33
+ * 書いた字(written)に、語彙表の組の違い(edit)を当てる。boundaries は written の中の語の終わりの位置で、written.length を含む。
34
+ * 指すのは written の頭から、違う所を含む語の終わりまで。後ろに続く前後の語は言わない(「以外と簡単」は「以外」を「意外」に、
35
+ * 活用した「始めて会った」は「始めて」を「初めて」に)。written の頭が誤った形の違う所まで同じでなければ(活用で字が変わった)undefined。
36
+ */
37
+ export const correctionIn = (written: string, wrong: string, edit: Edit, boundaries: readonly number[]): Correction | undefined => {
38
+ if (written.slice(0, edit.end).toLowerCase() !== wrong.slice(0, edit.end).toLowerCase()) return undefined;
39
+ const end = Math.min(written.length, ...boundaries.filter((at) => at >= edit.end));
40
+ const matched = written.slice(0, end);
41
+ const suggestion = `${matched.slice(0, edit.start)}${edit.replacement}${matched.slice(edit.end)}`;
42
+ return { matched, suggestion: casedLike(matched, suggestion) };
43
+ };