chaffjs 0.49.0 → 0.51.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1144) hide show
  1. package/README.ja.md +30 -3
  2. package/README.md +30 -2
  3. package/dist/allow.d.ts +49 -0
  4. package/dist/allow.d.ts.map +1 -0
  5. package/dist/allow.js +111 -0
  6. package/dist/allow.js.map +1 -0
  7. package/dist/announced-count.d.ts.map +1 -1
  8. package/dist/announced-count.js +18 -1
  9. package/dist/announced-count.js.map +1 -1
  10. package/dist/announced-list.d.ts.map +1 -1
  11. package/dist/announced-list.js +6 -1
  12. package/dist/announced-list.js.map +1 -1
  13. package/dist/check-source.d.ts +13 -3
  14. package/dist/check-source.d.ts.map +1 -1
  15. package/dist/check-source.js +23 -6
  16. package/dist/check-source.js.map +1 -1
  17. package/dist/cli-text.d.ts +7 -1
  18. package/dist/cli-text.d.ts.map +1 -1
  19. package/dist/cli-text.js +8 -2
  20. package/dist/cli-text.js.map +1 -1
  21. package/dist/cli.d.ts.map +1 -1
  22. package/dist/cli.js +16 -13
  23. package/dist/cli.js.map +1 -1
  24. package/dist/commands/eval.js +1 -1
  25. package/dist/commands/eval.js.map +1 -1
  26. package/dist/commands/suppressions.d.ts +4 -1
  27. package/dist/commands/suppressions.d.ts.map +1 -1
  28. package/dist/commands/suppressions.js +2 -2
  29. package/dist/commands/suppressions.js.map +1 -1
  30. package/dist/commands/test.js +1 -1
  31. package/dist/commands/test.js.map +1 -1
  32. package/dist/composite-signals.d.ts +3 -1
  33. package/dist/composite-signals.d.ts.map +1 -1
  34. package/dist/composite-signals.js +7 -0
  35. package/dist/composite-signals.js.map +1 -1
  36. package/dist/compound-head.d.ts +5 -2
  37. package/dist/compound-head.d.ts.map +1 -1
  38. package/dist/compound-head.js +17 -8
  39. package/dist/compound-head.js.map +1 -1
  40. package/dist/config/allow-problems.d.ts +8 -0
  41. package/dist/config/allow-problems.d.ts.map +1 -0
  42. package/dist/config/allow-problems.js +61 -0
  43. package/dist/config/allow-problems.js.map +1 -0
  44. package/dist/config/by-path-problems.d.ts +3 -0
  45. package/dist/config/by-path-problems.d.ts.map +1 -1
  46. package/dist/config/by-path-problems.js +21 -2
  47. package/dist/config/by-path-problems.js.map +1 -1
  48. package/dist/config/by-path-rules.d.ts +34 -0
  49. package/dist/config/by-path-rules.d.ts.map +1 -0
  50. package/dist/config/by-path-rules.js +53 -0
  51. package/dist/config/by-path-rules.js.map +1 -0
  52. package/dist/config/by-path.d.ts +15 -0
  53. package/dist/config/by-path.d.ts.map +1 -1
  54. package/dist/config/by-path.js.map +1 -1
  55. package/dist/config/consistent-problems.d.ts +5 -0
  56. package/dist/config/consistent-problems.d.ts.map +1 -0
  57. package/dist/config/consistent-problems.js +24 -0
  58. package/dist/config/consistent-problems.js.map +1 -0
  59. package/dist/config/load.d.ts +23 -1
  60. package/dist/config/load.d.ts.map +1 -1
  61. package/dist/config/load.js +63 -10
  62. package/dist/config/load.js.map +1 -1
  63. package/dist/config/option-problems.d.ts +6 -4
  64. package/dist/config/option-problems.d.ts.map +1 -1
  65. package/dist/config/option-problems.js +5 -2
  66. package/dist/config/option-problems.js.map +1 -1
  67. package/dist/config/prefer-problems.d.ts +5 -0
  68. package/dist/config/prefer-problems.d.ts.map +1 -0
  69. package/dist/config/prefer-problems.js +15 -0
  70. package/dist/config/prefer-problems.js.map +1 -0
  71. package/dist/config/prefer.d.ts +21 -0
  72. package/dist/config/prefer.d.ts.map +1 -0
  73. package/dist/config/prefer.js +35 -0
  74. package/dist/config/prefer.js.map +1 -0
  75. package/dist/config/term-problems.d.ts +5 -0
  76. package/dist/config/term-problems.d.ts.map +1 -0
  77. package/dist/config/term-problems.js +25 -0
  78. package/dist/config/term-problems.js.map +1 -0
  79. package/dist/config/warnings.d.ts +1 -1
  80. package/dist/config/warnings.d.ts.map +1 -1
  81. package/dist/config/warnings.js +9 -2
  82. package/dist/config/warnings.js.map +1 -1
  83. package/dist/cross-variants.d.ts +1 -1
  84. package/dist/cross-variants.d.ts.map +1 -1
  85. package/dist/cross-variants.js +4 -8
  86. package/dist/cross-variants.js.map +1 -1
  87. package/dist/cross-votes.d.ts +13 -0
  88. package/dist/cross-votes.d.ts.map +1 -1
  89. package/dist/cross-votes.js +25 -2
  90. package/dist/cross-votes.js.map +1 -1
  91. package/dist/custom/parse.d.ts +9 -0
  92. package/dist/custom/parse.d.ts.map +1 -1
  93. package/dist/custom/parse.js +11 -2
  94. package/dist/custom/parse.js.map +1 -1
  95. package/dist/custom/problems.d.ts.map +1 -1
  96. package/dist/custom/problems.js +9 -3
  97. package/dist/custom/problems.js.map +1 -1
  98. package/dist/custom/scope-field.d.ts +7 -0
  99. package/dist/custom/scope-field.d.ts.map +1 -0
  100. package/dist/custom/scope-field.js +14 -0
  101. package/dist/custom/scope-field.js.map +1 -0
  102. package/dist/date-format.d.ts +5 -3
  103. package/dist/date-format.d.ts.map +1 -1
  104. package/dist/date-format.js +30 -5
  105. package/dist/date-format.js.map +1 -1
  106. package/dist/derived/elapsed.d.ts +4 -1
  107. package/dist/derived/elapsed.d.ts.map +1 -1
  108. package/dist/derived/elapsed.js +11 -1
  109. package/dist/derived/elapsed.js.map +1 -1
  110. package/dist/detectors/acronym-context.d.ts +3 -1
  111. package/dist/detectors/acronym-context.d.ts.map +1 -1
  112. package/dist/detectors/acronym-context.js +7 -1
  113. package/dist/detectors/acronym-context.js.map +1 -1
  114. package/dist/detectors/acronym-gloss.d.ts +20 -7
  115. package/dist/detectors/acronym-gloss.d.ts.map +1 -1
  116. package/dist/detectors/acronym-gloss.js +50 -13
  117. package/dist/detectors/acronym-gloss.js.map +1 -1
  118. package/dist/detectors/agentless-passive.d.ts.map +1 -1
  119. package/dist/detectors/agentless-passive.js +39 -4
  120. package/dist/detectors/agentless-passive.js.map +1 -1
  121. package/dist/detectors/agreement-slip.d.ts +2 -0
  122. package/dist/detectors/agreement-slip.d.ts.map +1 -1
  123. package/dist/detectors/agreement-slip.js +10 -3
  124. package/dist/detectors/agreement-slip.js.map +1 -1
  125. package/dist/detectors/amount-scale.js +2 -2
  126. package/dist/detectors/amount-scale.js.map +1 -1
  127. package/dist/detectors/bare-comparative.d.ts +4 -0
  128. package/dist/detectors/bare-comparative.d.ts.map +1 -1
  129. package/dist/detectors/bare-comparative.js +27 -3
  130. package/dist/detectors/bare-comparative.js.map +1 -1
  131. package/dist/detectors/blank-structure.d.ts +5 -1
  132. package/dist/detectors/blank-structure.d.ts.map +1 -1
  133. package/dist/detectors/blank-structure.js +13 -7
  134. package/dist/detectors/blank-structure.js.map +1 -1
  135. package/dist/detectors/bold-label.d.ts.map +1 -1
  136. package/dist/detectors/bold-label.js +12 -6
  137. package/dist/detectors/bold-label.js.map +1 -1
  138. package/dist/detectors/bracket-title-date.d.ts +6 -0
  139. package/dist/detectors/bracket-title-date.d.ts.map +1 -0
  140. package/dist/detectors/bracket-title-date.js +29 -0
  141. package/dist/detectors/bracket-title-date.js.map +1 -0
  142. package/dist/detectors/broken-link.d.ts.map +1 -1
  143. package/dist/detectors/broken-link.js +12 -1
  144. package/dist/detectors/broken-link.js.map +1 -1
  145. package/dist/detectors/capitalised-term.d.ts.map +1 -1
  146. package/dist/detectors/capitalised-term.js +24 -11
  147. package/dist/detectors/capitalised-term.js.map +1 -1
  148. package/dist/detectors/change-rate.d.ts.map +1 -1
  149. package/dist/detectors/change-rate.js +27 -4
  150. package/dist/detectors/change-rate.js.map +1 -1
  151. package/dist/detectors/char-shape.d.ts.map +1 -1
  152. package/dist/detectors/char-shape.js +12 -17
  153. package/dist/detectors/char-shape.js.map +1 -1
  154. package/dist/detectors/chat-citation.d.ts +2 -6
  155. package/dist/detectors/chat-citation.d.ts.map +1 -1
  156. package/dist/detectors/chat-citation.js +4 -2
  157. package/dist/detectors/chat-citation.js.map +1 -1
  158. package/dist/detectors/chat-mark-extent.d.ts +11 -0
  159. package/dist/detectors/chat-mark-extent.d.ts.map +1 -0
  160. package/dist/detectors/chat-mark-extent.js +53 -0
  161. package/dist/detectors/chat-mark-extent.js.map +1 -0
  162. package/dist/detectors/clause-shape.d.ts +4 -2
  163. package/dist/detectors/clause-shape.d.ts.map +1 -1
  164. package/dist/detectors/clause-shape.js +8 -4
  165. package/dist/detectors/clause-shape.js.map +1 -1
  166. package/dist/detectors/conjugated-entry.d.ts +2 -2
  167. package/dist/detectors/conjugated-entry.d.ts.map +1 -1
  168. package/dist/detectors/conjugated-entry.js +3 -5
  169. package/dist/detectors/conjugated-entry.js.map +1 -1
  170. package/dist/detectors/contraction-mix.d.ts.map +1 -1
  171. package/dist/detectors/contraction-mix.js +3 -2
  172. package/dist/detectors/contraction-mix.js.map +1 -1
  173. package/dist/detectors/contraction-set-apart.d.ts +7 -1
  174. package/dist/detectors/contraction-set-apart.d.ts.map +1 -1
  175. package/dist/detectors/contraction-set-apart.js +14 -1
  176. package/dist/detectors/contraction-set-apart.js.map +1 -1
  177. package/dist/detectors/contrast-frame.d.ts.map +1 -1
  178. package/dist/detectors/contrast-frame.js +34 -1
  179. package/dist/detectors/contrast-frame.js.map +1 -1
  180. package/dist/detectors/coordinate-adjective.d.ts +5 -3
  181. package/dist/detectors/coordinate-adjective.d.ts.map +1 -1
  182. package/dist/detectors/coordinate-adjective.js +49 -1
  183. package/dist/detectors/coordinate-adjective.js.map +1 -1
  184. package/dist/detectors/count-per-section.d.ts.map +1 -1
  185. package/dist/detectors/count-per-section.js +29 -23
  186. package/dist/detectors/count-per-section.js.map +1 -1
  187. package/dist/detectors/counter-edge.d.ts +11 -0
  188. package/dist/detectors/counter-edge.d.ts.map +1 -1
  189. package/dist/detectors/counter-edge.js +17 -0
  190. package/dist/detectors/counter-edge.js.map +1 -1
  191. package/dist/detectors/cross-variant.d.ts.map +1 -1
  192. package/dist/detectors/cross-variant.js +14 -2
  193. package/dist/detectors/cross-variant.js.map +1 -1
  194. package/dist/detectors/currency-notation.js +2 -2
  195. package/dist/detectors/currency-notation.js.map +1 -1
  196. package/dist/detectors/custom.d.ts.map +1 -1
  197. package/dist/detectors/custom.js +6 -4
  198. package/dist/detectors/custom.js.map +1 -1
  199. package/dist/detectors/date-format.js +1 -1
  200. package/dist/detectors/date-format.js.map +1 -1
  201. package/dist/detectors/date-repeated-day.d.ts +11 -0
  202. package/dist/detectors/date-repeated-day.d.ts.map +1 -0
  203. package/dist/detectors/date-repeated-day.js +15 -0
  204. package/dist/detectors/date-repeated-day.js.map +1 -0
  205. package/dist/detectors/date-year.d.ts.map +1 -1
  206. package/dist/detectors/date-year.js +8 -1
  207. package/dist/detectors/date-year.js.map +1 -1
  208. package/dist/detectors/defined-term-form.d.ts.map +1 -1
  209. package/dist/detectors/defined-term-form.js +21 -6
  210. package/dist/detectors/defined-term-form.js.map +1 -1
  211. package/dist/detectors/definition-use.d.ts.map +1 -1
  212. package/dist/detectors/definition-use.js +12 -2
  213. package/dist/detectors/definition-use.js.map +1 -1
  214. package/dist/detectors/derived-numbers.d.ts.map +1 -1
  215. package/dist/detectors/derived-numbers.js +1 -0
  216. package/dist/detectors/derived-numbers.js.map +1 -1
  217. package/dist/detectors/document-shape.d.ts +1 -1
  218. package/dist/detectors/document-shape.d.ts.map +1 -1
  219. package/dist/detectors/document-shape.js +4 -1
  220. package/dist/detectors/document-shape.js.map +1 -1
  221. package/dist/detectors/ellipsis.js +2 -2
  222. package/dist/detectors/ellipsis.js.map +1 -1
  223. package/dist/detectors/email-letter.d.ts +5 -1
  224. package/dist/detectors/email-letter.d.ts.map +1 -1
  225. package/dist/detectors/email-letter.js +5 -3
  226. package/dist/detectors/email-letter.js.map +1 -1
  227. package/dist/detectors/empty-section.d.ts +1 -0
  228. package/dist/detectors/empty-section.d.ts.map +1 -1
  229. package/dist/detectors/empty-section.js +10 -1
  230. package/dist/detectors/empty-section.js.map +1 -1
  231. package/dist/detectors/en-shape.d.ts.map +1 -1
  232. package/dist/detectors/en-shape.js +49 -9
  233. package/dist/detectors/en-shape.js.map +1 -1
  234. package/dist/detectors/enumeration-marker.d.ts +7 -0
  235. package/dist/detectors/enumeration-marker.d.ts.map +1 -0
  236. package/dist/detectors/enumeration-marker.js +8 -0
  237. package/dist/detectors/enumeration-marker.js.map +1 -0
  238. package/dist/detectors/event-title-item.d.ts +8 -0
  239. package/dist/detectors/event-title-item.d.ts.map +1 -0
  240. package/dist/detectors/event-title-item.js +45 -0
  241. package/dist/detectors/event-title-item.js.map +1 -0
  242. package/dist/detectors/example-baseline.d.ts +5 -0
  243. package/dist/detectors/example-baseline.d.ts.map +1 -1
  244. package/dist/detectors/example-baseline.js +15 -1
  245. package/dist/detectors/example-baseline.js.map +1 -1
  246. package/dist/detectors/filler-word.d.ts +11 -0
  247. package/dist/detectors/filler-word.d.ts.map +1 -0
  248. package/dist/detectors/filler-word.js +73 -0
  249. package/dist/detectors/filler-word.js.map +1 -0
  250. package/dist/detectors/fullwidth-alnum.d.ts.map +1 -1
  251. package/dist/detectors/fullwidth-alnum.js +19 -0
  252. package/dist/detectors/fullwidth-alnum.js.map +1 -1
  253. package/dist/detectors/gram-furniture.d.ts +1 -0
  254. package/dist/detectors/gram-furniture.d.ts.map +1 -1
  255. package/dist/detectors/gram-furniture.js +6 -0
  256. package/dist/detectors/gram-furniture.js.map +1 -1
  257. package/dist/detectors/gram-repetition.d.ts.map +1 -1
  258. package/dist/detectors/gram-repetition.js +8 -2
  259. package/dist/detectors/gram-repetition.js.map +1 -1
  260. package/dist/detectors/heading-case.d.ts +1 -0
  261. package/dist/detectors/heading-case.d.ts.map +1 -1
  262. package/dist/detectors/heading-case.js +16 -4
  263. package/dist/detectors/heading-case.js.map +1 -1
  264. package/dist/detectors/heading-marker-no-space.d.ts +3 -0
  265. package/dist/detectors/heading-marker-no-space.d.ts.map +1 -0
  266. package/dist/detectors/heading-marker-no-space.js +49 -0
  267. package/dist/detectors/heading-marker-no-space.js.map +1 -0
  268. package/dist/detectors/hyphen-name-suffix.d.ts.map +1 -1
  269. package/dist/detectors/hyphen-name-suffix.js +3 -2
  270. package/dist/detectors/hyphen-name-suffix.js.map +1 -1
  271. package/dist/detectors/inline-item-label.d.ts +6 -0
  272. package/dist/detectors/inline-item-label.d.ts.map +1 -0
  273. package/dist/detectors/inline-item-label.js +68 -0
  274. package/dist/detectors/inline-item-label.js.map +1 -0
  275. package/dist/detectors/kanji-name-edge.d.ts +5 -0
  276. package/dist/detectors/kanji-name-edge.d.ts.map +1 -1
  277. package/dist/detectors/kanji-name-edge.js +9 -0
  278. package/dist/detectors/kanji-name-edge.js.map +1 -1
  279. package/dist/detectors/known-correction.d.ts.map +1 -1
  280. package/dist/detectors/known-correction.js +13 -1
  281. package/dist/detectors/known-correction.js.map +1 -1
  282. package/dist/detectors/kutoten-consistency.d.ts.map +1 -1
  283. package/dist/detectors/kutoten-consistency.js +27 -6
  284. package/dist/detectors/kutoten-consistency.js.map +1 -1
  285. package/dist/detectors/lexicon-match.d.ts +2 -0
  286. package/dist/detectors/lexicon-match.d.ts.map +1 -1
  287. package/dist/detectors/lexicon-match.js +14 -3
  288. package/dist/detectors/lexicon-match.js.map +1 -1
  289. package/dist/detectors/lexicon.d.ts.map +1 -1
  290. package/dist/detectors/lexicon.js +8 -1
  291. package/dist/detectors/lexicon.js.map +1 -1
  292. package/dist/detectors/link-definition.d.ts +3 -0
  293. package/dist/detectors/link-definition.d.ts.map +1 -0
  294. package/dist/detectors/link-definition.js +78 -0
  295. package/dist/detectors/link-definition.js.map +1 -0
  296. package/dist/detectors/list-item-asides.d.ts +7 -0
  297. package/dist/detectors/list-item-asides.d.ts.map +1 -0
  298. package/dist/detectors/list-item-asides.js +25 -0
  299. package/dist/detectors/list-item-asides.js.map +1 -0
  300. package/dist/detectors/list-item-clause.d.ts +4 -0
  301. package/dist/detectors/list-item-clause.d.ts.map +1 -0
  302. package/dist/detectors/list-item-clause.js +8 -0
  303. package/dist/detectors/list-item-clause.js.map +1 -0
  304. package/dist/detectors/list-item.d.ts +2 -0
  305. package/dist/detectors/list-item.d.ts.map +1 -1
  306. package/dist/detectors/list-item.js +6 -0
  307. package/dist/detectors/list-item.js.map +1 -1
  308. package/dist/detectors/list-items.d.ts.map +1 -1
  309. package/dist/detectors/list-items.js +12 -3
  310. package/dist/detectors/list-items.js.map +1 -1
  311. package/dist/detectors/list-opening-conjunction.d.ts +7 -0
  312. package/dist/detectors/list-opening-conjunction.d.ts.map +1 -0
  313. package/dist/detectors/list-opening-conjunction.js +22 -0
  314. package/dist/detectors/list-opening-conjunction.js.map +1 -0
  315. package/dist/detectors/list-parallel.d.ts.map +1 -1
  316. package/dist/detectors/list-parallel.js +17 -16
  317. package/dist/detectors/list-parallel.js.map +1 -1
  318. package/dist/detectors/list-run.d.ts.map +1 -1
  319. package/dist/detectors/list-run.js +15 -3
  320. package/dist/detectors/list-run.js.map +1 -1
  321. package/dist/detectors/list-sentence.d.ts +2 -0
  322. package/dist/detectors/list-sentence.d.ts.map +1 -1
  323. package/dist/detectors/list-sentence.js.map +1 -1
  324. package/dist/detectors/list-verb-series.d.ts +6 -0
  325. package/dist/detectors/list-verb-series.d.ts.map +1 -0
  326. package/dist/detectors/list-verb-series.js +20 -0
  327. package/dist/detectors/list-verb-series.js.map +1 -0
  328. package/dist/detectors/mark-shape.d.ts +5 -2
  329. package/dist/detectors/mark-shape.d.ts.map +1 -1
  330. package/dist/detectors/mark-shape.js +40 -23
  331. package/dist/detectors/mark-shape.js.map +1 -1
  332. package/dist/detectors/markdown-slip.d.ts +5 -0
  333. package/dist/detectors/markdown-slip.d.ts.map +1 -1
  334. package/dist/detectors/markdown-slip.js +23 -0
  335. package/dist/detectors/markdown-slip.js.map +1 -1
  336. package/dist/detectors/marked-word.d.ts +10 -0
  337. package/dist/detectors/marked-word.d.ts.map +1 -0
  338. package/dist/detectors/marked-word.js +30 -0
  339. package/dist/detectors/marked-word.js.map +1 -0
  340. package/dist/detectors/middle-dot.d.ts +1 -1
  341. package/dist/detectors/middle-dot.d.ts.map +1 -1
  342. package/dist/detectors/middle-dot.js +21 -2
  343. package/dist/detectors/middle-dot.js.map +1 -1
  344. package/dist/detectors/missing-final-period.d.ts.map +1 -1
  345. package/dist/detectors/missing-final-period.js +17 -1
  346. package/dist/detectors/missing-final-period.js.map +1 -1
  347. package/dist/detectors/name-variant-two-things.d.ts +2 -1
  348. package/dist/detectors/name-variant-two-things.d.ts.map +1 -1
  349. package/dist/detectors/name-variant-two-things.js +30 -2
  350. package/dist/detectors/name-variant-two-things.js.map +1 -1
  351. package/dist/detectors/net-amount-mismatch.d.ts.map +1 -1
  352. package/dist/detectors/net-amount-mismatch.js +26 -4
  353. package/dist/detectors/net-amount-mismatch.js.map +1 -1
  354. package/dist/detectors/nominalization.d.ts.map +1 -1
  355. package/dist/detectors/nominalization.js +17 -5
  356. package/dist/detectors/nominalization.js.map +1 -1
  357. package/dist/detectors/number-style.d.ts +2 -0
  358. package/dist/detectors/number-style.d.ts.map +1 -1
  359. package/dist/detectors/number-style.js +5 -0
  360. package/dist/detectors/number-style.js.map +1 -1
  361. package/dist/detectors/ordinal-suffix.js +2 -2
  362. package/dist/detectors/ordinal-suffix.js.map +1 -1
  363. package/dist/detectors/ordinary-phrase.d.ts +5 -0
  364. package/dist/detectors/ordinary-phrase.d.ts.map +1 -1
  365. package/dist/detectors/ordinary-phrase.js +12 -0
  366. package/dist/detectors/ordinary-phrase.js.map +1 -1
  367. package/dist/detectors/organisation-run.d.ts +2 -0
  368. package/dist/detectors/organisation-run.d.ts.map +1 -1
  369. package/dist/detectors/organisation-run.js +7 -0
  370. package/dist/detectors/organisation-run.js.map +1 -1
  371. package/dist/detectors/orthographic-variant-kanji-word.d.ts +22 -0
  372. package/dist/detectors/orthographic-variant-kanji-word.d.ts.map +1 -0
  373. package/dist/detectors/orthographic-variant-kanji-word.js +27 -0
  374. package/dist/detectors/orthographic-variant-kanji-word.js.map +1 -0
  375. package/dist/detectors/orthographic-variant-open.d.ts.map +1 -1
  376. package/dist/detectors/orthographic-variant-open.js +2 -1
  377. package/dist/detectors/orthographic-variant-open.js.map +1 -1
  378. package/dist/detectors/orthographic-variant-text.d.ts +7 -0
  379. package/dist/detectors/orthographic-variant-text.d.ts.map +1 -0
  380. package/dist/detectors/orthographic-variant-text.js +14 -0
  381. package/dist/detectors/orthographic-variant-text.js.map +1 -0
  382. package/dist/detectors/orthographic-variant.d.ts.map +1 -1
  383. package/dist/detectors/orthographic-variant.js +46 -23
  384. package/dist/detectors/orthographic-variant.js.map +1 -1
  385. package/dist/detectors/orthography.d.ts.map +1 -1
  386. package/dist/detectors/orthography.js +24 -8
  387. package/dist/detectors/orthography.js.map +1 -1
  388. package/dist/detectors/oxford-comma.d.ts.map +1 -1
  389. package/dist/detectors/oxford-comma.js +28 -3
  390. package/dist/detectors/oxford-comma.js.map +1 -1
  391. package/dist/detectors/paragraph-run.d.ts +1 -1
  392. package/dist/detectors/paragraph-run.d.ts.map +1 -1
  393. package/dist/detectors/paragraph-run.js +6 -4
  394. package/dist/detectors/paragraph-run.js.map +1 -1
  395. package/dist/detectors/phone-number-variant.d.ts.map +1 -1
  396. package/dist/detectors/phone-number-variant.js +2 -1
  397. package/dist/detectors/phone-number-variant.js.map +1 -1
  398. package/dist/detectors/phrase-context.d.ts +6 -0
  399. package/dist/detectors/phrase-context.d.ts.map +1 -0
  400. package/dist/detectors/phrase-context.js +12 -0
  401. package/dist/detectors/phrase-context.js.map +1 -0
  402. package/dist/detectors/phrase-match-all.d.ts +3 -0
  403. package/dist/detectors/phrase-match-all.d.ts.map +1 -0
  404. package/dist/detectors/phrase-match-all.js +47 -0
  405. package/dist/detectors/phrase-match-all.js.map +1 -0
  406. package/dist/detectors/phrase-match.d.ts +2 -1
  407. package/dist/detectors/phrase-match.d.ts.map +1 -1
  408. package/dist/detectors/phrase-match.js +25 -6
  409. package/dist/detectors/phrase-match.js.map +1 -1
  410. package/dist/detectors/placeholder-text.d.ts.map +1 -1
  411. package/dist/detectors/placeholder-text.js +22 -2
  412. package/dist/detectors/placeholder-text.js.map +1 -1
  413. package/dist/detectors/placeholder.d.ts +1 -0
  414. package/dist/detectors/placeholder.d.ts.map +1 -1
  415. package/dist/detectors/placeholder.js +8 -0
  416. package/dist/detectors/placeholder.js.map +1 -1
  417. package/dist/detectors/proper-noun-density.d.ts.map +1 -1
  418. package/dist/detectors/proper-noun-density.js +10 -6
  419. package/dist/detectors/proper-noun-density.js.map +1 -1
  420. package/dist/detectors/pseudo-heading.d.ts +9 -0
  421. package/dist/detectors/pseudo-heading.d.ts.map +1 -0
  422. package/dist/detectors/pseudo-heading.js +54 -0
  423. package/dist/detectors/pseudo-heading.js.map +1 -0
  424. package/dist/detectors/quote-around.d.ts +4 -1
  425. package/dist/detectors/quote-around.d.ts.map +1 -1
  426. package/dist/detectors/quote-around.js +28 -5
  427. package/dist/detectors/quote-around.js.map +1 -1
  428. package/dist/detectors/quoted-label.d.ts +8 -0
  429. package/dist/detectors/quoted-label.d.ts.map +1 -0
  430. package/dist/detectors/quoted-label.js +18 -0
  431. package/dist/detectors/quoted-label.js.map +1 -0
  432. package/dist/detectors/ra-nuki.d.ts +1 -7
  433. package/dist/detectors/ra-nuki.d.ts.map +1 -1
  434. package/dist/detectors/ra-nuki.js +2 -27
  435. package/dist/detectors/ra-nuki.js.map +1 -1
  436. package/dist/detectors/range-notation.js +2 -2
  437. package/dist/detectors/range-notation.js.map +1 -1
  438. package/dist/detectors/register-required.d.ts +27 -0
  439. package/dist/detectors/register-required.d.ts.map +1 -0
  440. package/dist/detectors/register-required.js +33 -0
  441. package/dist/detectors/register-required.js.map +1 -0
  442. package/dist/detectors/register-voice.d.ts +13 -1
  443. package/dist/detectors/register-voice.d.ts.map +1 -1
  444. package/dist/detectors/register-voice.js +27 -0
  445. package/dist/detectors/register-voice.js.map +1 -1
  446. package/dist/detectors/registry/enumeration-marker.d.ts +3 -0
  447. package/dist/detectors/registry/enumeration-marker.d.ts.map +1 -0
  448. package/dist/detectors/registry/enumeration-marker.js +3 -0
  449. package/dist/detectors/registry/enumeration-marker.js.map +1 -0
  450. package/dist/detectors/registry/filler-word.d.ts +3 -0
  451. package/dist/detectors/registry/filler-word.d.ts.map +1 -0
  452. package/dist/detectors/registry/filler-word.js +3 -0
  453. package/dist/detectors/registry/filler-word.js.map +1 -0
  454. package/dist/detectors/registry/heading-marker-no-space.d.ts +3 -0
  455. package/dist/detectors/registry/heading-marker-no-space.d.ts.map +1 -0
  456. package/dist/detectors/registry/heading-marker-no-space.js +3 -0
  457. package/dist/detectors/registry/heading-marker-no-space.js.map +1 -0
  458. package/dist/detectors/registry/link-definition-unused.d.ts +3 -0
  459. package/dist/detectors/registry/link-definition-unused.d.ts.map +1 -0
  460. package/dist/detectors/registry/link-definition-unused.js +3 -0
  461. package/dist/detectors/registry/link-definition-unused.js.map +1 -0
  462. package/dist/detectors/registry/phrase-match-all.d.ts +3 -0
  463. package/dist/detectors/registry/phrase-match-all.d.ts.map +1 -0
  464. package/dist/detectors/registry/phrase-match-all.js +3 -0
  465. package/dist/detectors/registry/phrase-match-all.js.map +1 -0
  466. package/dist/detectors/registry/pseudo-heading.d.ts +3 -0
  467. package/dist/detectors/registry/pseudo-heading.d.ts.map +1 -0
  468. package/dist/detectors/registry/pseudo-heading.js +3 -0
  469. package/dist/detectors/registry/pseudo-heading.js.map +1 -0
  470. package/dist/detectors/registry/reversed-link.d.ts +3 -0
  471. package/dist/detectors/registry/reversed-link.d.ts.map +1 -0
  472. package/dist/detectors/registry/reversed-link.js +3 -0
  473. package/dist/detectors/registry/reversed-link.js.map +1 -0
  474. package/dist/detectors/registry/sa-ire.d.ts +3 -0
  475. package/dist/detectors/registry/sa-ire.d.ts.map +1 -0
  476. package/dist/detectors/registry/sa-ire.js +3 -0
  477. package/dist/detectors/registry/sa-ire.js.map +1 -0
  478. package/dist/detectors/registry/table-absorbed-line.d.ts +3 -0
  479. package/dist/detectors/registry/table-absorbed-line.d.ts.map +1 -0
  480. package/dist/detectors/registry/table-absorbed-line.js +3 -0
  481. package/dist/detectors/registry/table-absorbed-line.js.map +1 -0
  482. package/dist/detectors/registry/term-consistency.d.ts +3 -0
  483. package/dist/detectors/registry/term-consistency.d.ts.map +1 -0
  484. package/dist/detectors/registry/term-consistency.js +3 -0
  485. package/dist/detectors/registry/term-consistency.js.map +1 -0
  486. package/dist/detectors/registry/term-form.d.ts +3 -0
  487. package/dist/detectors/registry/term-form.d.ts.map +1 -0
  488. package/dist/detectors/registry/term-form.js +3 -0
  489. package/dist/detectors/registry/term-form.js.map +1 -0
  490. package/dist/detectors/relative-pronoun-mix.d.ts +1 -1
  491. package/dist/detectors/relative-pronoun-mix.d.ts.map +1 -1
  492. package/dist/detectors/relative-pronoun-mix.js +14 -3
  493. package/dist/detectors/relative-pronoun-mix.js.map +1 -1
  494. package/dist/detectors/release-notes.d.ts +7 -0
  495. package/dist/detectors/release-notes.d.ts.map +1 -0
  496. package/dist/detectors/release-notes.js +12 -0
  497. package/dist/detectors/release-notes.js.map +1 -0
  498. package/dist/detectors/request-owner.d.ts +5 -1
  499. package/dist/detectors/request-owner.d.ts.map +1 -1
  500. package/dist/detectors/request-owner.js +53 -1
  501. package/dist/detectors/request-owner.js.map +1 -1
  502. package/dist/detectors/requirement-lists.d.ts.map +1 -1
  503. package/dist/detectors/requirement-lists.js +2 -0
  504. package/dist/detectors/requirement-lists.js.map +1 -1
  505. package/dist/detectors/reversed-link.d.ts +3 -0
  506. package/dist/detectors/reversed-link.d.ts.map +1 -0
  507. package/dist/detectors/reversed-link.js +31 -0
  508. package/dist/detectors/reversed-link.js.map +1 -0
  509. package/dist/detectors/sa-ire.d.ts +3 -0
  510. package/dist/detectors/sa-ire.d.ts.map +1 -0
  511. package/dist/detectors/sa-ire.js +5 -0
  512. package/dist/detectors/sa-ire.js.map +1 -0
  513. package/dist/detectors/sentence-counts.d.ts.map +1 -1
  514. package/dist/detectors/sentence-counts.js +24 -9
  515. package/dist/detectors/sentence-counts.js.map +1 -1
  516. package/dist/detectors/sentence-ending.d.ts.map +1 -1
  517. package/dist/detectors/sentence-ending.js +35 -11
  518. package/dist/detectors/sentence-ending.js.map +1 -1
  519. package/dist/detectors/sentence-length.d.ts.map +1 -1
  520. package/dist/detectors/sentence-length.js +20 -3
  521. package/dist/detectors/sentence-length.js.map +1 -1
  522. package/dist/detectors/sentence-rhythm.d.ts.map +1 -1
  523. package/dist/detectors/sentence-rhythm.js +6 -2
  524. package/dist/detectors/sentence-rhythm.js.map +1 -1
  525. package/dist/detectors/signals.d.ts.map +1 -1
  526. package/dist/detectors/signals.js +8 -3
  527. package/dist/detectors/signals.js.map +1 -1
  528. package/dist/detectors/structure.d.ts +1 -0
  529. package/dist/detectors/structure.d.ts.map +1 -1
  530. package/dist/detectors/structure.js +5 -0
  531. package/dist/detectors/structure.js.map +1 -1
  532. package/dist/detectors/team.d.ts.map +1 -1
  533. package/dist/detectors/team.js +42 -9
  534. package/dist/detectors/team.js.map +1 -1
  535. package/dist/detectors/technical-docs.d.ts +8 -1
  536. package/dist/detectors/technical-docs.d.ts.map +1 -1
  537. package/dist/detectors/technical-docs.js +16 -3
  538. package/dist/detectors/technical-docs.js.map +1 -1
  539. package/dist/detectors/term-consistency.d.ts +4 -0
  540. package/dist/detectors/term-consistency.d.ts.map +1 -0
  541. package/dist/detectors/term-consistency.js +35 -0
  542. package/dist/detectors/term-consistency.js.map +1 -0
  543. package/dist/detectors/term-form.d.ts +4 -0
  544. package/dist/detectors/term-form.d.ts.map +1 -0
  545. package/dist/detectors/term-form.js +17 -0
  546. package/dist/detectors/term-form.js.map +1 -0
  547. package/dist/detectors/token-shape.d.ts.map +1 -1
  548. package/dist/detectors/token-shape.js +4 -1
  549. package/dist/detectors/token-shape.js.map +1 -1
  550. package/dist/detectors/unbalanced-bracket.d.ts +1 -1
  551. package/dist/detectors/unbalanced-bracket.d.ts.map +1 -1
  552. package/dist/detectors/unbalanced-bracket.js +4 -2
  553. package/dist/detectors/unbalanced-bracket.js.map +1 -1
  554. package/dist/detectors/unit-spacing.js +2 -2
  555. package/dist/detectors/unit-spacing.js.map +1 -1
  556. package/dist/detectors/unknown-word-context.d.ts +2 -0
  557. package/dist/detectors/unknown-word-context.d.ts.map +1 -1
  558. package/dist/detectors/unknown-word-context.js +3 -0
  559. package/dist/detectors/unknown-word-context.js.map +1 -1
  560. package/dist/detectors/unknown-word.d.ts.map +1 -1
  561. package/dist/detectors/unknown-word.js +7 -2
  562. package/dist/detectors/unknown-word.js.map +1 -1
  563. package/dist/detectors/vague-deadline.d.ts.map +1 -1
  564. package/dist/detectors/vague-deadline.js +2 -1
  565. package/dist/detectors/vague-deadline.js.map +1 -1
  566. package/dist/detectors/vague-density.d.ts.map +1 -1
  567. package/dist/detectors/vague-density.js +10 -2
  568. package/dist/detectors/vague-density.js.map +1 -1
  569. package/dist/detectors/version-mismatch.d.ts.map +1 -1
  570. package/dist/detectors/version-mismatch.js +5 -1
  571. package/dist/detectors/version-mismatch.js.map +1 -1
  572. package/dist/detectors/weasel-word.d.ts.map +1 -1
  573. package/dist/detectors/weasel-word.js +11 -2
  574. package/dist/detectors/weasel-word.js.map +1 -1
  575. package/dist/document-prose.d.ts +17 -0
  576. package/dist/document-prose.d.ts.map +1 -0
  577. package/dist/document-prose.js +35 -0
  578. package/dist/document-prose.js.map +1 -0
  579. package/dist/document-scope.d.ts +16 -0
  580. package/dist/document-scope.d.ts.map +1 -0
  581. package/dist/document-scope.js +51 -0
  582. package/dist/document-scope.js.map +1 -0
  583. package/dist/document.d.ts +10 -1
  584. package/dist/document.d.ts.map +1 -1
  585. package/dist/document.js +26 -37
  586. package/dist/document.js.map +1 -1
  587. package/dist/enumeration-marks.d.ts +23 -0
  588. package/dist/enumeration-marks.d.ts.map +1 -0
  589. package/dist/enumeration-marks.js +184 -0
  590. package/dist/enumeration-marks.js.map +1 -0
  591. package/dist/facts/cross-facts.d.ts +1 -1
  592. package/dist/facts/cross-facts.d.ts.map +1 -1
  593. package/dist/facts/cross-facts.js +8 -3
  594. package/dist/facts/cross-facts.js.map +1 -1
  595. package/dist/facts/labelled-facts.d.ts.map +1 -1
  596. package/dist/facts/labelled-facts.js +7 -4
  597. package/dist/facts/labelled-facts.js.map +1 -1
  598. package/dist/file-header.d.ts +2 -6
  599. package/dist/file-header.d.ts.map +1 -1
  600. package/dist/file-header.js +1 -1
  601. package/dist/file-header.js.map +1 -1
  602. package/dist/files.d.ts +18 -1
  603. package/dist/files.d.ts.map +1 -1
  604. package/dist/files.js +58 -8
  605. package/dist/files.js.map +1 -1
  606. package/dist/gitignore.d.ts +30 -0
  607. package/dist/gitignore.d.ts.map +1 -0
  608. package/dist/gitignore.js +68 -0
  609. package/dist/gitignore.js.map +1 -0
  610. package/dist/grade/stamp.d.ts.map +1 -1
  611. package/dist/grade/stamp.js +5 -0
  612. package/dist/grade/stamp.js.map +1 -1
  613. package/dist/latin-word-boundary.d.ts +5 -0
  614. package/dist/latin-word-boundary.d.ts.map +1 -1
  615. package/dist/latin-word-boundary.js +11 -0
  616. package/dist/latin-word-boundary.js.map +1 -1
  617. package/dist/levels.d.ts +14 -0
  618. package/dist/levels.d.ts.map +1 -1
  619. package/dist/levels.js +8 -3
  620. package/dist/levels.js.map +1 -1
  621. package/dist/markdown-node.d.ts +1 -0
  622. package/dist/markdown-node.d.ts.map +1 -1
  623. package/dist/markdown-node.js.map +1 -1
  624. package/dist/name-separator.d.ts.map +1 -1
  625. package/dist/name-separator.js +27 -5
  626. package/dist/name-separator.js.map +1 -1
  627. package/dist/news-dateline.d.ts +7 -0
  628. package/dist/news-dateline.d.ts.map +1 -0
  629. package/dist/news-dateline.js +24 -0
  630. package/dist/news-dateline.js.map +1 -0
  631. package/dist/phone-numbers.d.ts +5 -2
  632. package/dist/phone-numbers.d.ts.map +1 -1
  633. package/dist/phone-numbers.js +17 -3
  634. package/dist/phone-numbers.js.map +1 -1
  635. package/dist/plugin.d.ts +26 -0
  636. package/dist/plugin.d.ts.map +1 -1
  637. package/dist/reasons.d.ts +4 -0
  638. package/dist/reasons.d.ts.map +1 -1
  639. package/dist/reasons.js +4 -0
  640. package/dist/reasons.js.map +1 -1
  641. package/dist/render/explain.d.ts +5 -0
  642. package/dist/render/explain.d.ts.map +1 -1
  643. package/dist/render/explain.js +57 -15
  644. package/dist/render/explain.js.map +1 -1
  645. package/dist/render/options.d.ts.map +1 -1
  646. package/dist/render/options.js +11 -6
  647. package/dist/render/options.js.map +1 -1
  648. package/dist/render/rules-json.d.ts.map +1 -1
  649. package/dist/render/rules-json.js +12 -2
  650. package/dist/render/rules-json.js.map +1 -1
  651. package/dist/render/summary.d.ts +5 -2
  652. package/dist/render/summary.d.ts.map +1 -1
  653. package/dist/render/summary.js +25 -4
  654. package/dist/render/summary.js.map +1 -1
  655. package/dist/render/suppressions.d.ts +6 -1
  656. package/dist/render/suppressions.d.ts.map +1 -1
  657. package/dist/render/suppressions.js +76 -3
  658. package/dist/render/suppressions.js.map +1 -1
  659. package/dist/render/text.d.ts.map +1 -1
  660. package/dist/render/text.js +14 -4
  661. package/dist/render/text.js.map +1 -1
  662. package/dist/rule-load.d.ts.map +1 -1
  663. package/dist/rule-load.js +2 -1
  664. package/dist/rule-load.js.map +1 -1
  665. package/dist/run-in-title.d.ts +4 -0
  666. package/dist/run-in-title.d.ts.map +1 -0
  667. package/dist/run-in-title.js +82 -0
  668. package/dist/run-in-title.js.map +1 -0
  669. package/dist/run.d.ts +5 -0
  670. package/dist/run.d.ts.map +1 -1
  671. package/dist/run.js +40 -21
  672. package/dist/run.js.map +1 -1
  673. package/dist/scope-markers.d.ts +9 -0
  674. package/dist/scope-markers.d.ts.map +1 -0
  675. package/dist/scope-markers.js +19 -0
  676. package/dist/scope-markers.js.map +1 -0
  677. package/dist/scope-problem-text.d.ts +4 -0
  678. package/dist/scope-problem-text.d.ts.map +1 -0
  679. package/dist/scope-problem-text.js +17 -0
  680. package/dist/scope-problem-text.js.map +1 -0
  681. package/dist/scoped-sentences.d.ts +21 -0
  682. package/dist/scoped-sentences.d.ts.map +1 -0
  683. package/dist/scoped-sentences.js +21 -0
  684. package/dist/scoped-sentences.js.map +1 -0
  685. package/dist/setting-problems.d.ts.map +1 -1
  686. package/dist/setting-problems.js +4 -0
  687. package/dist/setting-problems.js.map +1 -1
  688. package/dist/spelling.js +4 -4
  689. package/dist/spelling.js.map +1 -1
  690. package/dist/stet-body.d.ts +13 -0
  691. package/dist/stet-body.d.ts.map +1 -0
  692. package/dist/stet-body.js +49 -0
  693. package/dist/stet-body.js.map +1 -0
  694. package/dist/stet.d.ts +30 -4
  695. package/dist/stet.d.ts.map +1 -1
  696. package/dist/stet.js +78 -28
  697. package/dist/stet.js.map +1 -1
  698. package/dist/structure/alert-lines.d.ts +4 -0
  699. package/dist/structure/alert-lines.d.ts.map +1 -0
  700. package/dist/structure/alert-lines.js +19 -0
  701. package/dist/structure/alert-lines.js.map +1 -0
  702. package/dist/structure/catch-all-row-blank.d.ts +9 -0
  703. package/dist/structure/catch-all-row-blank.d.ts.map +1 -0
  704. package/dist/structure/catch-all-row-blank.js +19 -0
  705. package/dist/structure/catch-all-row-blank.js.map +1 -0
  706. package/dist/structure/change-rate-tied.d.ts +22 -0
  707. package/dist/structure/change-rate-tied.d.ts.map +1 -0
  708. package/dist/structure/change-rate-tied.js +85 -0
  709. package/dist/structure/change-rate-tied.js.map +1 -0
  710. package/dist/structure/cross-definitions.d.ts +1 -1
  711. package/dist/structure/cross-definitions.d.ts.map +1 -1
  712. package/dist/structure/cross-definitions.js +3 -9
  713. package/dist/structure/cross-definitions.js.map +1 -1
  714. package/dist/structure/deadline-after-event.d.ts +1 -1
  715. package/dist/structure/deadline-after-event.d.ts.map +1 -1
  716. package/dist/structure/deadline-after-event.js +36 -9
  717. package/dist/structure/deadline-after-event.js.map +1 -1
  718. package/dist/structure/defining-names.d.ts +1 -1
  719. package/dist/structure/defining-names.d.ts.map +1 -1
  720. package/dist/structure/defining-names.js +12 -1
  721. package/dist/structure/defining-names.js.map +1 -1
  722. package/dist/structure/definition-use.d.ts +10 -1
  723. package/dist/structure/definition-use.d.ts.map +1 -1
  724. package/dist/structure/definition-use.js +4 -4
  725. package/dist/structure/definition-use.js.map +1 -1
  726. package/dist/structure/leg-times.d.ts.map +1 -1
  727. package/dist/structure/leg-times.js +10 -2
  728. package/dist/structure/leg-times.js.map +1 -1
  729. package/dist/structure/net-amount.d.ts +16 -0
  730. package/dist/structure/net-amount.d.ts.map +1 -1
  731. package/dist/structure/net-amount.js +28 -1
  732. package/dist/structure/net-amount.js.map +1 -1
  733. package/dist/structure/period-label-conflict.d.ts +2 -2
  734. package/dist/structure/period-label-conflict.d.ts.map +1 -1
  735. package/dist/structure/period-label-conflict.js +17 -3
  736. package/dist/structure/period-label-conflict.js.map +1 -1
  737. package/dist/structure/requirement-lists.d.ts +3 -0
  738. package/dist/structure/requirement-lists.d.ts.map +1 -1
  739. package/dist/structure/requirement-lists.js +8 -2
  740. package/dist/structure/requirement-lists.js.map +1 -1
  741. package/dist/structure/serial-range.d.ts.map +1 -1
  742. package/dist/structure/serial-range.js +14 -6
  743. package/dist/structure/serial-range.js.map +1 -1
  744. package/dist/structure/time-marks.d.ts +10 -0
  745. package/dist/structure/time-marks.d.ts.map +1 -1
  746. package/dist/structure/time-marks.js +21 -0
  747. package/dist/structure/time-marks.js.map +1 -1
  748. package/dist/structure/version-mismatch.d.ts +6 -1
  749. package/dist/structure/version-mismatch.d.ts.map +1 -1
  750. package/dist/structure/version-mismatch.js +28 -6
  751. package/dist/structure/version-mismatch.js.map +1 -1
  752. package/dist/structure/weekday.d.ts.map +1 -1
  753. package/dist/structure/weekday.js +14 -1
  754. package/dist/structure/weekday.js.map +1 -1
  755. package/dist/table-cells.d.ts +1 -1
  756. package/dist/table-cells.d.ts.map +1 -1
  757. package/dist/table-cells.js.map +1 -1
  758. package/dist/term-form.d.ts +15 -0
  759. package/dist/term-form.d.ts.map +1 -0
  760. package/dist/term-form.js +72 -0
  761. package/dist/term-form.js.map +1 -0
  762. package/dist/term-groups.d.ts +33 -0
  763. package/dist/term-groups.d.ts.map +1 -0
  764. package/dist/term-groups.js +46 -0
  765. package/dist/term-groups.js.map +1 -0
  766. package/dist/text-scope.d.ts +35 -0
  767. package/dist/text-scope.d.ts.map +1 -0
  768. package/dist/text-scope.js +55 -0
  769. package/dist/text-scope.js.map +1 -0
  770. package/dist/topic-clause.d.ts.map +1 -1
  771. package/dist/topic-clause.js +85 -16
  772. package/dist/topic-clause.js.map +1 -1
  773. package/dist/unclosed-code-quote.d.ts +7 -0
  774. package/dist/unclosed-code-quote.d.ts.map +1 -0
  775. package/dist/unclosed-code-quote.js +37 -0
  776. package/dist/unclosed-code-quote.js.map +1 -0
  777. package/package.json +4 -3
  778. package/rules/abstract-length.yaml +1 -1
  779. package/rules/adverb-overuse.yaml +3 -3
  780. package/rules/agentless-passive.yaml +3 -3
  781. package/rules/agreement-slip.yaml +5 -4
  782. package/rules/ai-generated-composite.yaml +3 -3
  783. package/rules/ai-structure.yaml +1 -1
  784. package/rules/all-caps-shouting.yaml +1 -1
  785. package/rules/announced-count-mismatch.yaml +2 -2
  786. package/rules/announcing-opener.yaml +1 -1
  787. package/rules/arrival-before-departure.yaml +1 -1
  788. package/rules/article-sound.yaml +1 -1
  789. package/rules/baito-keigo.yaml +1 -1
  790. package/rules/bold-density.yaml +3 -3
  791. package/rules/bold-emphasis.yaml +1 -1
  792. package/rules/bold-label-list.yaml +3 -3
  793. package/rules/bracket-width-consistency.yaml +3 -3
  794. package/rules/broken-link.yaml +2 -2
  795. package/rules/change-rate-mismatch.yaml +2 -2
  796. package/rules/chat-citation-residue.yaml +1 -1
  797. package/rules/citation-style-mix.yaml +1 -1
  798. package/rules/clause-chain.yaml +1 -1
  799. package/rules/cliche.yaml +4 -4
  800. package/rules/closing-cliche.yaml +1 -1
  801. package/rules/closing-exhortation.yaml +1 -1
  802. package/rules/code-fence-language-mix.yaml +2 -2
  803. package/rules/cold-open.yaml +1 -1
  804. package/rules/colloquial-opener.yaml +1 -1
  805. package/rules/comparative-without-baseline.yaml +2 -2
  806. package/rules/concrete-evidence-density.yaml +1 -1
  807. package/rules/contraction-consistency.yaml +4 -4
  808. package/rules/cross-doc-duplicate-definition.yaml +2 -2
  809. package/rules/cross-doc-fact-conflict.yaml +2 -2
  810. package/rules/cross-doc-term-variant.yaml +6 -6
  811. package/rules/cushion-phrase-density.yaml +1 -1
  812. package/rules/date-format-consistency.yaml +2 -2
  813. package/rules/date-weekday-mismatch.yaml +2 -2
  814. package/rules/date-without-year.yaml +2 -2
  815. package/rules/deadline-after-event.yaml +2 -2
  816. package/rules/defined-term-form.yaml +2 -2
  817. package/rules/demonstrative-opener-run.yaml +1 -1
  818. package/rules/double-keigo.yaml +1 -1
  819. package/rules/double-negative.yaml +11 -2
  820. package/rules/doubled-nado.yaml +1 -1
  821. package/rules/elapsed-years-mismatch.yaml +2 -2
  822. package/rules/email-stock-courtesy.yaml +1 -1
  823. package/rules/email-subject-length.yaml +1 -1
  824. package/rules/emoji-heading.yaml +1 -1
  825. package/rules/empty-intensifier.yaml +1 -1
  826. package/rules/empty-section.yaml +2 -2
  827. package/rules/empty-table-cell.yaml +2 -2
  828. package/rules/enumeration-marker-mix.yaml +102 -0
  829. package/rules/excessive-hedging.yaml +1 -1
  830. package/rules/exclamation-width-consistency.yaml +1 -1
  831. package/rules/expletive-construction.yaml +3 -3
  832. package/rules/figurative-density.yaml +3 -3
  833. package/rules/filler-word.yaml +74 -0
  834. package/rules/fullwidth-alnum-consistency.yaml +2 -2
  835. package/rules/heading-marker-no-space.yaml +79 -0
  836. package/rules/hiragana-fukushi.yaml +1 -1
  837. package/rules/homophone-slip.yaml +3 -3
  838. package/rules/honesty-marker.yaml +1 -1
  839. package/rules/humble-for-others.yaml +1 -1
  840. package/rules/hyphen-as-dash.yaml +3 -3
  841. package/rules/idiom-misuse.yaml +1 -1
  842. package/rules/internal-jargon.yaml +1 -1
  843. package/rules/kana-function-word.yaml +1 -1
  844. package/rules/katakana-long-vowel.yaml +1 -1
  845. package/rules/known-misspelling.yaml +2 -2
  846. package/rules/kutoten-consistency.yaml +7 -3
  847. package/rules/latin-abbreviation-form.yaml +1 -1
  848. package/rules/latin-spacing.yaml +5 -5
  849. package/rules/link-definition-unused.yaml +107 -0
  850. package/rules/list-item-form-mix.yaml +2 -2
  851. package/rules/max-kanji-continuous.yaml +5 -2
  852. package/rules/max-paragraph-length.yaml +1 -1
  853. package/rules/max-sentence-length.yaml +3 -3
  854. package/rules/max-ten.yaml +1 -1
  855. package/rules/misconversion.yaml +2 -2
  856. package/rules/missing-final-period.yaml +2 -2
  857. package/rules/name-variant.yaml +2 -2
  858. package/rules/net-amount-mismatch.yaml +5 -5
  859. package/rules/ngram-repetition.yaml +3 -3
  860. package/rules/no-doubled-joshi.yaml +2 -2
  861. package/rules/no-em-dash.yaml +3 -3
  862. package/rules/no-mixed-desumasu.yaml +63 -3
  863. package/rules/no-nakaguro-parallel.yaml +3 -3
  864. package/rules/nominalization.yaml +3 -3
  865. package/rules/nonstandard-word.yaml +2 -2
  866. package/rules/number-style-consistency.yaml +2 -2
  867. package/rules/numbered-generic-heading.yaml +1 -1
  868. package/rules/numbering-gap.yaml +2 -2
  869. package/rules/obligation-without-deadline.yaml +2 -2
  870. package/rules/one-sentence-paragraph-run.yaml +3 -3
  871. package/rules/orthographic-variant.yaml +2 -2
  872. package/rules/over-general-claim.yaml +1 -1
  873. package/rules/oxford-comma-consistency.yaml +4 -3
  874. package/rules/padded-intro.yaml +1 -1
  875. package/rules/period-label-conflict.yaml +2 -2
  876. package/rules/phone-number-variant.yaml +1 -1
  877. package/rules/preamble-length.yaml +3 -3
  878. package/rules/preferred-term.yaml +1 -1
  879. package/rules/proper-noun-density.yaml +1 -1
  880. package/rules/pseudo-heading.yaml +79 -0
  881. package/rules/q-fragment-answer.yaml +1 -1
  882. package/rules/quote-style-consistency.yaml +1 -1
  883. package/rules/quote-without-source.yaml +2 -2
  884. package/rules/redundant-expression.yaml +1 -1
  885. package/rules/repeated-conjunction.yaml +1 -1
  886. package/rules/repeated-sentence-ending.yaml +3 -3
  887. package/rules/repeated-sentence-head.yaml +5 -5
  888. package/rules/request-without-deadline.yaml +2 -2
  889. package/rules/required-listed-as-preferred.yaml +2 -2
  890. package/rules/required-sections.yaml +1 -1
  891. package/rules/reversed-link.yaml +78 -0
  892. package/rules/sa-ire.yaml +43 -0
  893. package/rules/sasete-itadaku.yaml +1 -1
  894. package/rules/sentence-initial-conjunction-run.yaml +1 -1
  895. package/rules/sentence-initial-so.yaml +1 -1
  896. package/rules/sentence-rhythm.yaml +2 -2
  897. package/rules/sentence-spacing-consistency.yaml +1 -1
  898. package/rules/serial-range-reversed.yaml +4 -4
  899. package/rules/shell-prompt-mix.yaml +3 -3
  900. package/rules/stock-transition.yaml +1 -1
  901. package/rules/stray-space.yaml +1 -1
  902. package/rules/table-absorbed-line.yaml +88 -0
  903. package/rules/taigen-dome-in-prose.yaml +1 -1
  904. package/rules/teki-overuse.yaml +3 -3
  905. package/rules/term-consistency.yaml +56 -0
  906. package/rules/term-form.yaml +56 -0
  907. package/rules/title-case-consistency.yaml +5 -5
  908. package/rules/title-length.yaml +3 -3
  909. package/rules/topic-predicate-distance.yaml +3 -3
  910. package/rules/translationese-density.yaml +1 -1
  911. package/rules/unbalanced-bracket.yaml +2 -2
  912. package/rules/uncomparable-graded.yaml +1 -1
  913. package/rules/undefined-acronym.yaml +5 -3
  914. package/rules/undefined-term.yaml +2 -2
  915. package/rules/unfilled-placeholder.yaml +4 -4
  916. package/rules/unknown-word.yaml +2 -2
  917. package/rules/unqualified-superlative.yaml +1 -1
  918. package/rules/use-before-definition.yaml +2 -2
  919. package/rules/vague-word-density.yaml +3 -3
  920. package/rules/version-mismatch.yaml +2 -2
  921. package/rules/weasel-word.yaml +4 -4
  922. package/rules/which-that-consistency.yaml +3 -3
  923. package/rules/wordy-phrase.yaml +1 -1
  924. package/skills/chaff/SKILL.md +51 -7
  925. package/src/allow.ts +146 -0
  926. package/src/announced-count.ts +22 -1
  927. package/src/announced-list.ts +7 -1
  928. package/src/check-source.ts +33 -9
  929. package/src/cli-text.ts +13 -4
  930. package/src/cli.ts +20 -17
  931. package/src/commands/eval.ts +1 -1
  932. package/src/commands/suppressions.ts +3 -3
  933. package/src/commands/test.ts +1 -1
  934. package/src/composite-signals.ts +10 -1
  935. package/src/compound-head.ts +17 -8
  936. package/src/config/allow-problems.ts +75 -0
  937. package/src/config/by-path-problems.ts +29 -3
  938. package/src/config/by-path-rules.ts +78 -0
  939. package/src/config/by-path.ts +9 -0
  940. package/src/config/consistent-problems.ts +36 -0
  941. package/src/config/load.ts +87 -15
  942. package/src/config/option-problems.ts +8 -5
  943. package/src/config/prefer-problems.ts +22 -0
  944. package/src/config/prefer.ts +52 -0
  945. package/src/config/term-problems.ts +38 -0
  946. package/src/config/warnings.ts +9 -2
  947. package/src/cross-variants.ts +4 -7
  948. package/src/cross-votes.ts +35 -4
  949. package/src/custom/parse.ts +16 -3
  950. package/src/custom/problems.ts +9 -3
  951. package/src/custom/scope-field.ts +16 -0
  952. package/src/date-format.ts +43 -8
  953. package/src/derived/elapsed.ts +17 -2
  954. package/src/detectors/acronym-context.ts +7 -1
  955. package/src/detectors/acronym-gloss.ts +59 -11
  956. package/src/detectors/agentless-passive.ts +49 -5
  957. package/src/detectors/agreement-slip.ts +11 -3
  958. package/src/detectors/amount-scale.ts +2 -2
  959. package/src/detectors/bare-comparative.ts +35 -3
  960. package/src/detectors/blank-structure.ts +18 -9
  961. package/src/detectors/bold-label.ts +7 -2
  962. package/src/detectors/bracket-title-date.ts +36 -0
  963. package/src/detectors/broken-link.ts +14 -1
  964. package/src/detectors/capitalised-term.ts +18 -4
  965. package/src/detectors/change-rate.ts +29 -4
  966. package/src/detectors/char-shape.ts +13 -17
  967. package/src/detectors/chat-citation.ts +4 -5
  968. package/src/detectors/chat-mark-extent.ts +63 -0
  969. package/src/detectors/clause-shape.ts +8 -4
  970. package/src/detectors/conjugated-entry.ts +3 -5
  971. package/src/detectors/contraction-mix.ts +8 -2
  972. package/src/detectors/contraction-set-apart.ts +22 -2
  973. package/src/detectors/contrast-frame.ts +37 -2
  974. package/src/detectors/coordinate-adjective.ts +54 -1
  975. package/src/detectors/count-per-section.ts +13 -8
  976. package/src/detectors/counter-edge.ts +20 -0
  977. package/src/detectors/cross-variant.ts +16 -2
  978. package/src/detectors/currency-notation.ts +2 -2
  979. package/src/detectors/custom.ts +6 -4
  980. package/src/detectors/date-format.ts +1 -1
  981. package/src/detectors/date-repeated-day.ts +20 -0
  982. package/src/detectors/date-year.ts +8 -1
  983. package/src/detectors/defined-term-form.ts +21 -7
  984. package/src/detectors/definition-use.ts +12 -9
  985. package/src/detectors/derived-numbers.ts +1 -0
  986. package/src/detectors/document-shape.ts +4 -1
  987. package/src/detectors/ellipsis.ts +2 -2
  988. package/src/detectors/email-letter.ts +7 -3
  989. package/src/detectors/empty-section.ts +10 -2
  990. package/src/detectors/en-shape.ts +57 -6
  991. package/src/detectors/enumeration-marker.ts +14 -0
  992. package/src/detectors/event-title-item.ts +57 -0
  993. package/src/detectors/example-baseline.ts +16 -1
  994. package/src/detectors/filler-word.ts +96 -0
  995. package/src/detectors/fullwidth-alnum.ts +24 -0
  996. package/src/detectors/gram-furniture.ts +8 -0
  997. package/src/detectors/gram-repetition.ts +8 -1
  998. package/src/detectors/heading-case.ts +18 -4
  999. package/src/detectors/heading-marker-no-space.ts +62 -0
  1000. package/src/detectors/hyphen-name-suffix.ts +3 -2
  1001. package/src/detectors/inline-item-label.ts +98 -0
  1002. package/src/detectors/kanji-name-edge.ts +11 -0
  1003. package/src/detectors/known-correction.ts +17 -1
  1004. package/src/detectors/kutoten-consistency.ts +37 -6
  1005. package/src/detectors/lexicon-match.ts +17 -3
  1006. package/src/detectors/lexicon.ts +10 -4
  1007. package/src/detectors/link-definition.ts +91 -0
  1008. package/src/detectors/list-item-asides.ts +29 -0
  1009. package/src/detectors/list-item-clause.ts +9 -0
  1010. package/src/detectors/list-item.ts +7 -0
  1011. package/src/detectors/list-items.ts +13 -2
  1012. package/src/detectors/list-opening-conjunction.ts +22 -0
  1013. package/src/detectors/list-parallel.ts +16 -17
  1014. package/src/detectors/list-run.ts +16 -3
  1015. package/src/detectors/list-sentence.ts +2 -0
  1016. package/src/detectors/list-verb-series.ts +24 -0
  1017. package/src/detectors/mark-shape.ts +51 -27
  1018. package/src/detectors/markdown-slip.ts +25 -1
  1019. package/src/detectors/marked-word.ts +40 -0
  1020. package/src/detectors/middle-dot.ts +27 -2
  1021. package/src/detectors/missing-final-period.ts +19 -1
  1022. package/src/detectors/name-variant-two-things.ts +37 -2
  1023. package/src/detectors/net-amount-mismatch.ts +41 -4
  1024. package/src/detectors/nominalization.ts +22 -5
  1025. package/src/detectors/number-style.ts +8 -0
  1026. package/src/detectors/ordinal-suffix.ts +2 -2
  1027. package/src/detectors/ordinary-phrase.ts +13 -0
  1028. package/src/detectors/organisation-run.ts +9 -0
  1029. package/src/detectors/orthographic-variant-kanji-word.ts +33 -0
  1030. package/src/detectors/orthographic-variant-open.ts +2 -1
  1031. package/src/detectors/orthographic-variant-text.ts +20 -0
  1032. package/src/detectors/orthographic-variant.ts +61 -32
  1033. package/src/detectors/orthography.ts +36 -10
  1034. package/src/detectors/oxford-comma.ts +28 -2
  1035. package/src/detectors/paragraph-run.ts +9 -12
  1036. package/src/detectors/phone-number-variant.ts +2 -1
  1037. package/src/detectors/phrase-context.ts +19 -0
  1038. package/src/detectors/phrase-match-all.ts +57 -0
  1039. package/src/detectors/phrase-match.ts +31 -6
  1040. package/src/detectors/placeholder-text.ts +36 -3
  1041. package/src/detectors/placeholder.ts +10 -0
  1042. package/src/detectors/proper-noun-density.ts +14 -6
  1043. package/src/detectors/pseudo-heading.ts +59 -0
  1044. package/src/detectors/quote-around.ts +37 -6
  1045. package/src/detectors/quoted-label.ts +22 -0
  1046. package/src/detectors/ra-nuki.ts +3 -34
  1047. package/src/detectors/range-notation.ts +2 -2
  1048. package/src/detectors/register-required.ts +56 -0
  1049. package/src/detectors/register-voice.ts +36 -1
  1050. package/src/detectors/registry/enumeration-marker.ts +4 -0
  1051. package/src/detectors/registry/filler-word.ts +4 -0
  1052. package/src/detectors/registry/heading-marker-no-space.ts +4 -0
  1053. package/src/detectors/registry/link-definition-unused.ts +4 -0
  1054. package/src/detectors/registry/phrase-match-all.ts +4 -0
  1055. package/src/detectors/registry/pseudo-heading.ts +4 -0
  1056. package/src/detectors/registry/reversed-link.ts +4 -0
  1057. package/src/detectors/registry/sa-ire.ts +4 -0
  1058. package/src/detectors/registry/table-absorbed-line.ts +4 -0
  1059. package/src/detectors/registry/term-consistency.ts +4 -0
  1060. package/src/detectors/registry/term-form.ts +4 -0
  1061. package/src/detectors/relative-pronoun-mix.ts +18 -3
  1062. package/src/detectors/release-notes.ts +19 -0
  1063. package/src/detectors/request-owner.ts +62 -2
  1064. package/src/detectors/requirement-lists.ts +2 -0
  1065. package/src/detectors/reversed-link.ts +39 -0
  1066. package/src/detectors/sa-ire.ts +7 -0
  1067. package/src/detectors/sentence-counts.ts +35 -13
  1068. package/src/detectors/sentence-ending.ts +53 -12
  1069. package/src/detectors/sentence-length.ts +28 -4
  1070. package/src/detectors/sentence-rhythm.ts +6 -2
  1071. package/src/detectors/signals.ts +12 -3
  1072. package/src/detectors/structure.ts +4 -0
  1073. package/src/detectors/team.ts +50 -12
  1074. package/src/detectors/technical-docs.ts +27 -3
  1075. package/src/detectors/term-consistency.ts +41 -0
  1076. package/src/detectors/term-form.ts +17 -0
  1077. package/src/detectors/token-shape.ts +4 -1
  1078. package/src/detectors/unbalanced-bracket.ts +4 -2
  1079. package/src/detectors/unit-spacing.ts +2 -2
  1080. package/src/detectors/unknown-word-context.ts +6 -0
  1081. package/src/detectors/unknown-word.ts +7 -1
  1082. package/src/detectors/vague-deadline.ts +2 -1
  1083. package/src/detectors/vague-density.ts +10 -2
  1084. package/src/detectors/version-mismatch.ts +7 -1
  1085. package/src/detectors/weasel-word.ts +13 -2
  1086. package/src/document-prose.ts +43 -0
  1087. package/src/document-scope.ts +66 -0
  1088. package/src/document.ts +43 -50
  1089. package/src/enumeration-marks.ts +233 -0
  1090. package/src/facts/cross-facts.ts +10 -4
  1091. package/src/facts/labelled-facts.ts +7 -4
  1092. package/src/file-header.ts +3 -5
  1093. package/src/files.ts +87 -8
  1094. package/src/gitignore.ts +83 -0
  1095. package/src/grade/stamp.ts +5 -0
  1096. package/src/latin-word-boundary.ts +12 -0
  1097. package/src/levels.ts +9 -3
  1098. package/src/markdown-node.ts +1 -0
  1099. package/src/name-separator.ts +29 -7
  1100. package/src/news-dateline.ts +29 -0
  1101. package/src/phone-numbers.ts +19 -3
  1102. package/src/plugin.ts +23 -3
  1103. package/src/reasons.ts +8 -0
  1104. package/src/render/explain.ts +72 -17
  1105. package/src/render/options.ts +12 -6
  1106. package/src/render/rules-json.ts +16 -2
  1107. package/src/render/summary.ts +33 -4
  1108. package/src/render/suppressions.ts +101 -4
  1109. package/src/render/text.ts +20 -7
  1110. package/src/rule-load.ts +3 -2
  1111. package/src/run-in-title.ts +91 -0
  1112. package/src/run.ts +53 -16
  1113. package/src/scope-markers.ts +25 -0
  1114. package/src/scope-problem-text.ts +21 -0
  1115. package/src/scoped-sentences.ts +41 -0
  1116. package/src/setting-problems.ts +4 -0
  1117. package/src/spelling.ts +4 -4
  1118. package/src/stet-body.ts +74 -0
  1119. package/src/stet.ts +113 -32
  1120. package/src/structure/alert-lines.ts +19 -0
  1121. package/src/structure/catch-all-row-blank.ts +22 -0
  1122. package/src/structure/change-rate-tied.ts +113 -0
  1123. package/src/structure/cross-definitions.ts +6 -9
  1124. package/src/structure/deadline-after-event.ts +49 -10
  1125. package/src/structure/defining-names.ts +14 -1
  1126. package/src/structure/definition-use.ts +15 -5
  1127. package/src/structure/leg-times.ts +16 -1
  1128. package/src/structure/net-amount.ts +44 -5
  1129. package/src/structure/period-label-conflict.ts +22 -7
  1130. package/src/structure/requirement-lists.ts +14 -2
  1131. package/src/structure/serial-range.ts +14 -6
  1132. package/src/structure/time-marks.ts +25 -0
  1133. package/src/structure/version-mismatch.ts +41 -8
  1134. package/src/structure/weekday.ts +14 -1
  1135. package/src/table-cells.ts +2 -2
  1136. package/src/term-form.ts +99 -0
  1137. package/src/term-groups.ts +68 -0
  1138. package/src/text-scope.ts +79 -0
  1139. package/src/topic-clause.ts +96 -17
  1140. package/src/unclosed-code-quote.ts +42 -0
  1141. package/dist/honorific-group.d.ts +0 -8
  1142. package/dist/honorific-group.d.ts.map +0 -1
  1143. package/dist/honorific-group.js +0 -15
  1144. package/dist/honorific-group.js.map +0 -1
@@ -182,28 +182,63 @@ export const bracketedDate = (text: string, date: WrittenDate): boolean => {
182
182
 
183
183
  /**
184
184
  * 日付の置き場所の手がかり。stampLabels は刻印のラベル(語彙表 date-stamp-label)、cited は文献一覧と注の並びの範囲、
185
- * source は記法を覆う前の文書(文書の頭の日付の行を見分ける)。
185
+ * source は記法を覆う前の文書(文書の頭の日付の行を見分ける)、headings は見出しの頭の位置。
186
186
  */
187
- export type DatePlaces = { readonly stampLabels?: readonly string[]; readonly cited?: readonly Span[]; readonly source?: string };
187
+ export type DatePlaces = {
188
+ readonly stampLabels?: readonly string[];
189
+ readonly cited?: readonly Span[];
190
+ readonly source?: string;
191
+ readonly headings?: readonly number[];
192
+ };
188
193
 
189
- type DateGroup = "head" | "body" | "stamp" | "cited";
194
+ type DateGroup = "head" | "body" | "stamp" | "cited" | "listed";
190
195
 
191
196
  const isWithin = (spans: readonly Span[], offset: number): boolean => spans.some((span) => offset >= span.start && offset < span.end);
192
197
 
198
+ /** 箇条書きの項目の行。 */
199
+ const LIST_ITEM_LINE = /^\s*(?:[-*+]|\d+[.)])\s/u;
200
+ const OPENS_ASIDE = /[((]$/u;
201
+ /** 括弧を閉じて行が終わる。後ろに続く括弧書き((PDF))も項目の印。 */
202
+ const CLOSES_LINE = /^[))](?:\s*[((][^))\n]*[))])*\s*$/u;
203
+
204
+ /** 箇条書きの項目の終わりの括弧の日付(- 研究集会(2025/11/20))。text は項目の印が残っている文書。催しや記事の一覧が項目ごとに付ける日付で、本文の書き方とは別のもの。 */
205
+ const listedDate = (text: string, date: WrittenDate): boolean => {
206
+ const line = lineAround(text, date.offset);
207
+ return (
208
+ LIST_ITEM_LINE.test(text.slice(line.start, line.end)) &&
209
+ OPENS_ASIDE.test(text.slice(line.start, date.offset)) &&
210
+ CLOSES_LINE.test(text.slice(date.offset + date.written.length, line.end))
211
+ );
212
+ };
213
+
193
214
  const groupOf = (text: string, date: WrittenDate, places: DatePlaces): DateGroup => {
194
215
  if (isWithin(places.cited ?? [], date.offset)) return "cited";
195
216
  if (stampedDate(text, date.offset, places.stampLabels ?? []) || bracketedDate(text, date)) return "stamp";
196
217
  if (places.source !== undefined && headerDate(places.source, date)) return "stamp";
197
- return opensLine(text, date.offset) ? "head" : "body";
218
+ if (opensLine(text, date.offset)) return "head";
219
+ return listedDate(places.source ?? text, date) ? "listed" : "body";
198
220
  };
199
221
 
200
222
  /** 比べる組。文献一覧と注の日付(cited)は比べない。題の中の日付は引いた文書の書き方で、参照日は文献の書き方の決まりに従う。 */
201
- const GROUP_ORDER: readonly DateGroup[] = ["head", "body", "stamp"];
223
+ const GROUP_ORDER: readonly DateGroup[] = ["head", "body", "stamp", "listed"];
224
+
225
+ /** 節(見出しから次の見出しまで)の頭。見出しの前は -1。 */
226
+ const sectionOf = (headings: readonly number[], offset: number): number => headings.filter((start) => start <= offset).at(-1) ?? -1;
227
+
228
+ /** 行の頭の日付を節ごとに分ける。予定表の節と更新の記録の節は、それぞれの中でそろえる。 */
229
+ const bySection = (dates: readonly WrittenDate[], headings: readonly number[]): WrittenDate[][] => {
230
+ const keys = [...new Set(dates.map((date) => sectionOf(headings, date.offset)))];
231
+ return keys.map((key) => dates.filter((date) => sectionOf(headings, date.offset) === key));
232
+ };
202
233
 
203
234
  /**
204
- * 行の頭の日付と、文の中の日付と、更新日・公開日の刻印の日付を分ける。予定表を 2026-10-16 で並べ、文では 14 October 2026 と
205
- * 書くのは使い分けで、混ざりではない。刻印のラベルは言語パッケージの語彙表(date-stamp-label)が渡す。書き方はそれぞれの組の中でだけ比べる。
235
+ * 行の頭の日付と、文の中の日付と、更新日・公開日の刻印の日付と、項目の終わりの括弧の日付を分ける。予定表を 2026-10-16 で並べ、
236
+ * 文では 14 October 2026 と書くのは使い分けで、混ざりではない。行の頭の日付は、節ごとに分ける(予定表の節と
237
+ * 更新の記録の節)。刻印のラベルは言語パッケージの語彙表(date-stamp-label)が渡す。書き方はそれぞれの組の中でだけ比べる。
206
238
  * 文献一覧と注の並びの中の日付は、どの組にも入れない。
207
239
  */
208
240
  export const dateGroups = (text: string, dates: readonly WrittenDate[], places: DatePlaces = {}): WrittenDate[][] =>
209
- GROUP_ORDER.map((group) => dates.filter((date) => groupOf(text, date, places) === group)).filter((group) => group.length > 0);
241
+ GROUP_ORDER.flatMap((group) => {
242
+ const inGroup = dates.filter((date) => groupOf(text, date, places) === group);
243
+ return group === "head" ? bySection(inGroup, places.headings ?? []) : [inGroup];
244
+ }).filter((group) => group.length > 0);
@@ -5,7 +5,8 @@ import { bySentence } from "./sentence-buckets.ts";
5
5
  * 起点の年から数えた年数(「2015年創業」と「創業10年」、「1980年生まれ」と「45歳」)を、文書の日付の年と比べる。
6
6
  * 年数は、文書の年から起点の年を引いた数と、前後一年まで合えばよい(誕生日の前後、「10年目」の数え方)。それより離れていれば言う。
7
7
  * 創業の年数は、起点の語のすぐ後ろか前に、つなぎの語(から、以来、since)だけを挟んで書いたもの(「創業10年」「設立から10年」)。
8
- * 起点の年は同じ文の中で起点の語に一番近い年、無ければ文書の中で起点の語に付いた年(一通りのときだけ)。
8
+ * 起点の年は同じ文の中で起点の語に一番近い年、無ければ文書の中で起点の語に付いた年、それも無ければ同じ文の中で起点の語や開いた語
9
+ * (opened its doors)に付いた年(どちらも一通りのときだけ)。
9
10
  * 年齢は、生まれた年と同じ文の年齢だけを比べる(文に生まれた年と年齢が一つずつのとき)。別の人の年齢と組にしないため。
10
11
  */
11
12
  export type Year = Span & { readonly year: number };
@@ -20,6 +21,8 @@ export type ElapsedInput = {
20
21
  readonly years: readonly Year[];
21
22
  /** 創業・設立・founded など、年数を数え始める語。 */
22
23
  readonly foundings: readonly OriginWord[];
24
+ /** opened、opened its doors など、同じ文の年数の起点の年だけを決める語。広く使う語なので、文書の中の年の当てにはしない。 */
25
+ readonly openings?: readonly OriginWord[];
23
26
  /** 生まれ・born など。 */
24
27
  readonly births: readonly OriginWord[];
25
28
  /** 年数(10年、20周年、10 years)。 */
@@ -59,6 +62,7 @@ const MAX_YEAR_DISTANCE = 6;
59
62
  type InSentence = {
60
63
  readonly years: readonly Year[];
61
64
  readonly foundings: readonly OriginWord[];
65
+ readonly openings: readonly OriginWord[];
62
66
  readonly births: readonly OriginWord[];
63
67
  readonly elapsed: readonly Elapsed[];
64
68
  readonly ages: readonly Elapsed[];
@@ -80,11 +84,20 @@ const documentYear = (sentences: readonly InSentence[]): Year | undefined => {
80
84
  return new Set(found.map((year) => year.year)).size === 1 ? found[0] : undefined;
81
85
  };
82
86
 
87
+ /**
88
+ * 文の中で、起点の語(founded、opened its doors)に付いた年。一通りのときだけ。「Brookside Dental opened its doors in 2006, and
89
+ * this month marks 10 years since its founding」の年数は、文書が創業の年を書いていなければ、その文の開いた年から数える。
90
+ */
91
+ const sentenceYear = (sentence: InSentence): Year | undefined => {
92
+ const found = [...sentence.foundings, ...sentence.openings].flatMap((word) => yearAt(sentence.years, word) ?? []);
93
+ return new Set(found.map((year) => year.year)).size === 1 ? found[0] : undefined;
94
+ };
95
+
83
96
  const foundingMismatches = (input: ElapsedInput, sentence: InSentence, fallback: Year | undefined): ElapsedMismatch[] =>
84
97
  sentence.elapsed.flatMap((elapsed) => {
85
98
  const word = sentence.foundings.find((candidate) => attached(input, candidate, elapsed));
86
99
  if (word === undefined) return [];
87
- const origin = yearAt(sentence.years, word) ?? fallback;
100
+ const origin = yearAt(sentence.years, word) ?? fallback ?? sentenceYear(sentence);
88
101
  return origin === undefined ? [] : mismatchOf(input, elapsed, origin);
89
102
  });
90
103
 
@@ -104,6 +117,7 @@ const sentencesOf = (input: ElapsedInput): InSentence[] => {
104
117
  input.years.filter((year) => year.year < input.reference),
105
118
  ),
106
119
  foundings: bySentence(input.sentences, input.foundings),
120
+ openings: bySentence(input.sentences, input.openings ?? []),
107
121
  births: bySentence(input.sentences, input.births),
108
122
  elapsed: bySentence(input.sentences, input.elapsed),
109
123
  ages: bySentence(input.sentences, input.ages),
@@ -112,6 +126,7 @@ const sentencesOf = (input: ElapsedInput): InSentence[] => {
112
126
  return indexes.map((index) => ({
113
127
  years: groups.years.get(index) ?? [],
114
128
  foundings: groups.foundings.get(index) ?? [],
129
+ openings: groups.openings.get(index) ?? [],
115
130
  births: groups.births.get(index) ?? [],
116
131
  elapsed: groups.elapsed.get(index) ?? [],
117
132
  ages: groups.ages.get(index) ?? [],
@@ -15,6 +15,8 @@ import { citationNoteSpans } from "./citation-note.ts";
15
15
  import { documentCitationSpans } from "./case-citation.ts";
16
16
  import { referenceEntrySpans } from "./reference-entry.ts";
17
17
  import { chatLogSpans } from "./chat-log-line.ts";
18
+ import { quotedLabelSpans } from "./quoted-label.ts";
19
+ import { eventTitleSpans } from "./event-title-item.ts";
18
20
 
19
21
  /**
20
22
  * 大文字の語が略語ではなく、決まった書き方の一部として読める所(3:30 PM、1pm ET、USD 1,000、Kansas City, MO 64108、Fort Lauderdale FL 33304)。
@@ -248,7 +250,9 @@ export const sourceNotAcronymSpans = (source: string, wordsOf: (id: string) => s
248
250
 
249
251
  /**
250
252
  * 数には入れるが指さない略語の範囲。リンク先の題名、文献を引いて始まる注、判例の引用の当事者・裁判所・事件番号、
251
- * 角括弧の見出しで始まる文献の項目([FETCH] WHATWG, "Fetch")、貼り付けたチャットの発言(<jinxer-wm> FIRING: …)は、書き手が直せない。
253
+ * 角括弧の見出しで始まる文献の項目([FETCH] WHATWG, "Fetch")、貼り付けたチャットの発言(<jinxer-wm> FIRING: …)、
254
+ * 書式の部品の名前の前に括弧で引いた表示(the “VOID” box)、過去の講演や催しの一覧の題名(- 「…の改善」、- …の進め方~(2014/1/9))は、
255
+ * 書き手が直せない。
252
256
  */
253
257
  export const unreportedAcronymSpans = (
254
258
  source: string,
@@ -261,4 +265,6 @@ export const unreportedAcronymSpans = (
261
265
  ...documentCitationSpans(sentences, source, wordsOf("case-party-joiner")),
262
266
  ...referenceEntrySpans(source),
263
267
  ...chatLogSpans(source),
268
+ ...quotedLabelSpans(source, wordsOf("control-noun")),
269
+ ...eventTitleSpans(source, wordsOf("talk-kind")),
264
270
  ];
@@ -68,6 +68,21 @@ const sentenceWords = (sentence: string): SentenceWord[] =>
68
68
  /** Initials and where they end, for the runs of name words that start at `from`. Small words join a run, never open or close one. */
69
69
  type Spelled = { readonly letters: string; readonly end: number };
70
70
 
71
+ /** A common noun in lower case that closes a name ("Social Security number" → SSN): it gives the last letter, and the run ends there. */
72
+ const CLOSING_NOUN = /^\p{Ll}+$/u;
73
+
74
+ /** The run closed by a common noun after its name words, when the name words give all but the last letter. */
75
+ const closedByNoun = (word: SentenceWord, letters: readonly string[]): Spelled[] =>
76
+ CLOSING_NOUN.test(word.core) && !JOINERS.has(word.core) && letters.length >= MIN_SPELLED - 1
77
+ ? [{ letters: [...letters, word.core.charAt(0).toUpperCase()].join(""), end: word.end }]
78
+ : [];
79
+
80
+ /** A word past the run's start that is not a name word: a closing noun adds its run, and only a small word that closes nothing lets the run go on. */
81
+ const stopsAt = (word: SentenceWord, letters: readonly string[], runs: Spelled[]): boolean => {
82
+ runs.push(...closedByNoun(word, letters));
83
+ return !JOINERS.has(word.core) || word.closes;
84
+ };
85
+
71
86
  // A loop that stops at the run's end: slicing the rest of the sentence for every word would be quadratic in a long one.
72
87
  const runsFrom = (words: readonly SentenceWord[], from: number): Spelled[] => {
73
88
  const runs: Spelled[] = [];
@@ -75,20 +90,24 @@ const runsFrom = (words: readonly SentenceWord[], from: number): Spelled[] => {
75
90
  for (let index = from; index < words.length && letters.length < MAX_SPELLED; index += 1) {
76
91
  const word = words[index];
77
92
  if (word === undefined || (index > from && word.opens)) break;
78
- const named = NAME_WORD.test(word.core);
79
- if (!named && (index === from || !JOINERS.has(word.core))) break;
80
- if (named) letters.push(word.core.charAt(0));
81
- if (named && letters.length >= MIN_SPELLED) runs.push({ letters: letters.join(""), end: word.end });
93
+ if (!NAME_WORD.test(word.core)) {
94
+ if (index === from || stopsAt(word, letters, runs)) break;
95
+ continue;
96
+ }
97
+ letters.push(word.core.charAt(0));
98
+ if (letters.length >= MIN_SPELLED) runs.push({ letters: letters.join(""), end: word.end });
82
99
  if (word.closes) break;
83
100
  }
84
101
  return runs;
85
102
  };
86
103
 
87
104
  /**
88
- * Acronyms whose name is written out earlier in the same sentence, without brackets: a citation names the publisher and then
105
+ * Acronyms whose name is written out earlier in the same passage, without brackets: a citation names the publisher and then
89
106
  * gives its short name ("U.S. Small Business Administration, … (Washington: SBA, August)", "(Nat'l Indian Gaming Comm'n May
90
- * 30, 2002) (NIGC Final Order)"). The name must give the acronym's letters word for word, and come before the acronym's first
91
- * use: a name written out only after the reader has met the acronym, or in another sentence, does not explain it.
107
+ * 30, 2002) (NIGC Final Order)"), or a paragraph names the thing and then uses its short name ("your stolen Social Security
108
+ * number … filed using your SSN"). Each passage is read alone: the caller passes sentences or paragraphs. The name must give
109
+ * the acronym's letters word for word, and come before the acronym's first use: a name written out only after the reader has
110
+ * met the acronym, or in another passage, does not explain it.
92
111
  */
93
112
  export const spelledInSentence = (sentences: readonly string[]): ReadonlySet<string> => {
94
113
  const seen = new Set<string>();
@@ -147,11 +166,40 @@ export const spelledBeforeSameNoun = (sentences: readonly string[]): ReadonlySet
147
166
  return spelled;
148
167
  };
149
168
 
169
+ type PassageSentence = { readonly text: string; readonly span: { readonly start: number } };
170
+
171
+ /**
172
+ * The sentences joined into passages: the sentences of one paragraph make one passage, and a sentence outside every paragraph
173
+ * (a list item, a table cell) is a passage alone. paragraphOf: the paragraph a sentence starting there belongs to.
174
+ */
175
+ const passagesOf = (sentences: readonly PassageSentence[], paragraphOf: (start: number) => number | undefined): string[] => {
176
+ const passages: string[][] = [];
177
+ const opened = new Map<number, string[]>();
178
+ sentences.forEach((sentence) => {
179
+ const paragraph = paragraphOf(sentence.span.start);
180
+ const passage = paragraph === undefined ? undefined : opened.get(paragraph);
181
+ if (passage !== undefined) {
182
+ passage.push(sentence.text);
183
+ return;
184
+ }
185
+ const fresh = [sentence.text];
186
+ passages.push(fresh);
187
+ if (paragraph !== undefined) opened.set(paragraph, fresh);
188
+ });
189
+ return passages.map((passage) => passage.join(" "));
190
+ };
191
+
150
192
  /**
151
- * The acronyms the text explains without brackets: glossed between dashes, named earlier in the sentence (capitalised, or in
152
- * lower case before the same noun), or a series cited by number.
193
+ * The acronyms the text explains without brackets: glossed between dashes, named earlier in the paragraph, named in lower case
194
+ * earlier in the sentence before the same noun, or a series cited by number.
153
195
  */
154
- export const explainedInText = (body: string, sentences: readonly { readonly text: string }[]): ReadonlySet<string> => {
196
+ export const explainedInText = (
197
+ body: string,
198
+ sentences: readonly PassageSentence[],
199
+ paragraphs: readonly { readonly sentences: readonly { readonly span: { readonly start: number } }[] }[],
200
+ ): ReadonlySet<string> => {
201
+ const paragraphAt = new Map(paragraphs.flatMap((paragraph, index) => paragraph.sentences.map((sentence): [number, number] => [sentence.span.start, index])));
155
202
  const texts = sentences.map((sentence) => sentence.text);
156
- return new Set([...glossedAcronyms(body), ...spelledInSentence(texts), ...spelledBeforeSameNoun(texts), ...numberedSeries(body)]);
203
+ const passages = passagesOf(sentences, (start) => paragraphAt.get(start));
204
+ return new Set([...glossedAcronyms(body), ...spelledInSentence(passages), ...spelledBeforeSameNoun(texts), ...numberedSeries(body)]);
157
205
  };
@@ -1,4 +1,4 @@
1
- import type { Detector, Finding, Sentence, Token } from "../plugin.ts";
1
+ import type { Detector, Finding, Lexicon, Sentence, Token } from "../plugin.ts";
2
2
 
3
3
  /**
4
4
  * 受動のまま動作主を書かないと、誰がしたのかが文から消える。
@@ -11,13 +11,57 @@ import type { Detector, Finding, Sentence, Token } from "../plugin.ts";
11
11
  */
12
12
  const isPassive = (token: Token): boolean => token.features?.["Voice"] === "Pass";
13
13
 
14
- const hasAgent = (sentence: Sentence, markers: readonly string[]): boolean => markers.some((marker) => sentence.text.includes(marker));
14
+ /** 起点の語(から)と、数のすぐ後ろで時を言う単位(月、時)。どちらも語彙表の group で受け取る。 */
15
+ const SOURCE_GROUP = "source";
16
+ const TIME_GROUP = "time";
17
+
18
+ type AgentWords = { readonly markers: readonly string[]; readonly sources: readonly string[]; readonly timeUnits: readonly string[] };
19
+
20
+ const patternsOf = (lexicon: Lexicon, group: string | undefined): string[] => lexicon.filter((entry) => entry.group === group).map((entry) => entry.pattern);
21
+
22
+ const agentWordsOf = (lexicon: Lexicon): AgentWords => ({
23
+ markers: patternsOf(lexicon, undefined),
24
+ sources: patternsOf(lexicon, SOURCE_GROUP),
25
+ timeUnits: patternsOf(lexicon, TIME_GROUP),
26
+ });
27
+
28
+ /** 時の語: 副詞のように使う名詞(来月、本日)か、数のすぐ後ろの時の単位(4月、10時)。 */
29
+ const isTime = (tokens: readonly Token[], at: number, timeUnits: readonly string[]): boolean => {
30
+ const token = tokens[at];
31
+ if (token === undefined) return false;
32
+ if (token.features?.["Adverbial"] === "Yes") return true;
33
+ return timeUnits.includes(token.surface) && tokens[at - 1]?.features?.["NumType"] === "Card";
34
+ };
35
+
36
+ /** 起点の語のうち、すぐ前が時の語でないもの(部長から)。来月から、4月1日からは時の起点で、した人を言わない。 */
37
+ const namesSource = (tokens: readonly Token[], { sources, timeUnits }: AgentWords): boolean =>
38
+ tokens.some((token, at) => sources.includes(token.surface) && at > 0 && !isTime(tokens, at - 1, timeUnits));
39
+
40
+ const hasAgent = (sentence: Sentence, words: AgentWords): boolean =>
41
+ words.markers.some((marker) => sentence.text.includes(marker)) || namesSource(sentence.tokens ?? [], words);
42
+
43
+ const isLightVerb = (token: Token | undefined): boolean => token?.pos === "VERB" && token.features?.["VerbType"] === "Light";
44
+ const isVerbalNoun = (token: Token | undefined): boolean => token?.pos === "NOUN" && token.features?.["VerbForm"] === "Vnoun";
45
+ const touches = (left: Token | undefined, right: Token | undefined): boolean => left !== undefined && right !== undefined && left.span.end === right.span.start;
46
+
47
+ /** 受け身の印のすぐ前に続けて書いた動詞の始まり(送ら れ、決定 さ れ)。印が動詞そのもの(reviewed)なら印の位置。 */
48
+ const verbStart = (tokens: readonly Token[], at: number): number => {
49
+ const before = tokens[at - 1];
50
+ if (!touches(before, tokens[at]) || before?.pos !== "VERB") return at;
51
+ return isLightVerb(before) && isVerbalNoun(tokens[at - 2]) && touches(tokens[at - 2], before) ? at - 2 : at - 1;
52
+ };
53
+
54
+ /** 指摘が引く受け身の語。印だけ(れ)では読み手に何の受け身かが分からないので、動詞から引く(決定され)。 */
55
+ const passiveVerb = (source: string, tokens: readonly Token[], passive: Token): string => {
56
+ const start = tokens[verbStart(tokens, tokens.indexOf(passive))]?.span.start ?? passive.span.start;
57
+ return source.slice(start, passive.span.end);
58
+ };
15
59
 
16
60
  export const agentlessPassive: Detector = (doc, options): Finding[] => {
17
- const markers = (options.lexicon ?? []).map((entry) => entry.pattern);
61
+ const words = agentWordsOf(options.lexicon ?? []);
18
62
  return doc.sentences
19
63
  .map((sentence) => ({ sentence, passives: (sentence.tokens ?? []).filter(isPassive) }))
20
- .filter(({ sentence, passives }) => passives.length >= options.limit && !hasAgent(sentence, markers))
64
+ .filter(({ sentence, passives }) => passives.length >= options.limit && !hasAgent(sentence, words))
21
65
  .map(({ sentence, passives }) => ({
22
66
  rule: "agentless-passive",
23
67
  severity: "warning",
@@ -27,7 +71,7 @@ export const agentlessPassive: Detector = (doc, options): Finding[] => {
27
71
  values: {
28
72
  count: passives.length,
29
73
  limit: options.limit,
30
- word: passives.map((token) => token.surface).join(" "),
74
+ word: passives.map((token) => passiveVerb(doc.source, sentence.tokens ?? [], token)).join(" "),
31
75
  offset: passives[0]?.span.start ?? sentence.span.start,
32
76
  },
33
77
  }));
@@ -26,6 +26,8 @@ export type AgreementLists = {
26
26
  readonly afterArticle: ReadonlySet<string>;
27
27
  /** 名詞句を目的語に取る前置詞(on / of)。この後ろの this / these は主語にならない。 */
28
28
  readonly prepositions?: ReadonlySet<string>;
29
+ /** homophone-slip が言う組(their are)。その規則が正しい語まで言うので、ここでは数えない。 */
30
+ readonly homophones?: ReadonlySet<string>;
29
31
  };
30
32
 
31
33
  export type Slip = { readonly variant: "number" | "possessive" | "determiner"; readonly first: Token; readonly last: Token; readonly word: string };
@@ -42,6 +44,8 @@ const CLOSING_MARK = new Set([".", ";", ":", "?", "!", ")"]);
42
44
  */
43
45
  const PHRASE_END = new Set(["AUX", "ADP", "SCONJ", "PRON", "DET", "ADV"]);
44
46
  const PREDICATE_TAIL = new Set(["DET", "ADJ", "PRON", "NUM"]);
47
+ /** 所有の印('s / ')。不変化詞のうち、これだけが名詞を重ねた語の途中(a children's book)。to や not は名詞句の外。 */
48
+ const POSSESSIVE_MARK = /^['’]/u;
45
49
 
46
50
  const lower = (token: Token): string => token.surface.toLowerCase();
47
51
 
@@ -54,6 +58,7 @@ const isPlural = (token: Token): boolean => token.features?.["Number"] === "Plur
54
58
  /** 名詞の後ろの語で、名詞句が終わるか。分詞(a data driven approach)も名詞を重ねた語の途中。 */
55
59
  export const endsNounPhrase = (next: Token | undefined, finite: ReadonlySet<string>): boolean => {
56
60
  if (next === undefined || finite.has(lower(next))) return true;
61
+ if (next.pos === "PART") return !POSSESSIVE_MARK.test(next.surface);
57
62
  return next.pos === "PUNCT" ? CLOSING_MARK.has(next.surface) : PHRASE_END.has(next.pos);
58
63
  };
59
64
 
@@ -128,7 +133,8 @@ const mayBeNoun = (token: Token): boolean => token.features?.["AlsoNoun"] === "Y
128
133
  /**
129
134
  * 名詞が動詞にも読め(works)、その前に名詞句の頭になれる語があれば、限定詞と名詞ではなく主語と動詞かもしれない。
130
135
  * an individual works(individual は名詞にもなる)/ Those responsible report to the board(those は代名詞にもなる)。
131
- * 後ろが is / has なら、名詞は動詞ではない(these key result is)。
136
+ * 後ろが is / has なら、名詞は動詞ではない(these key result is)。後ろが to なら、解析器が動詞と知らない語も動詞かもしれない
137
+ * (every key maps to an array の maps)。
132
138
  */
133
139
  const mayBeVerb = (
134
140
  determiner: Determiner,
@@ -138,7 +144,7 @@ const mayBeVerb = (
138
144
  finite: ReadonlySet<string>,
139
145
  bound: boolean,
140
146
  ): boolean =>
141
- noun.features?.["AlsoVerb"] === "Yes" &&
147
+ (noun.features?.["AlsoVerb"] === "Yes" || next?.pos === "PART") &&
142
148
  !(next !== undefined && finite.has(lower(next))) &&
143
149
  ((standsAlone(determiner) && !bound) || modifiers.some(mayBeNoun));
144
150
 
@@ -188,7 +194,8 @@ const possessiveSlipAt = (source: string, tokens: readonly Token[], at: number,
188
194
  const auxiliary = verb.pos === "AUX" && isBaseVerb(tokens[at + 2]) && !isNounAfterPreposition(tokens, at);
189
195
  const verbal = LOWER.test(verb.surface) && (lists.finite.has(lower(verb)) || auxiliary);
190
196
  if (!verbal || !joinedBySpace(source, [possessive, verb]) || isPartOfLongerWord(source, possessive, verb)) return undefined;
191
- return slipOf("possessive", source, possessive, verb);
197
+ const slip = slipOf("possessive", source, possessive, verb);
198
+ return lists.homophones?.has(slip.word.toLowerCase()) === true ? undefined : slip;
192
199
  };
193
200
 
194
201
  /** ones of the most。前に限定詞・形容詞・代名詞があれば、ones は代名詞(the ones of the most use)。 */
@@ -236,6 +243,7 @@ const listsOf = (lexicons: Readonly<Record<string, Lexicon>>): AgreementLists =>
236
243
  misnumbered: lexicons["misnumbered-phrase"] ?? [],
237
244
  afterArticle: setOf(lexicons["determiner-after-article"]),
238
245
  prepositions: setOf(lexicons["object-preposition"]),
246
+ homophones: setOf(lexicons["homophone-slip"]),
239
247
  });
240
248
 
241
249
  export const agreementSlip: Detector = (doc): Finding[] => {
@@ -4,7 +4,7 @@ import type { Detector, Finding, Lexicon, ProseDocument } from "../plugin.ts";
4
4
  import { escapeRegExp } from "../orthography.ts";
5
5
  import { amountValue, scaleMixes, withoutRoundTextFigures, type ScaleWord, type ScaledAmount } from "../structure/amount-scale.ts";
6
6
  import { AMOUNT, amountsIn, formsOf, type WrittenAmount } from "./currency-notation.ts";
7
- import { quoteAround } from "./quote-around.ts";
7
+ import { quoteAround, sentenceQuoteAt } from "./quote-around.ts";
8
8
  import { proseAndTablesOf } from "../table-text.ts";
9
9
 
10
10
  /** How far back a larger part of one amount may start (1億2,000万円 is read from 2,000万円). */
@@ -90,7 +90,7 @@ export const amountScale: Detector = (doc): Finding[] => {
90
90
  severity: "info",
91
91
  line: 0,
92
92
  column: 0,
93
- quote: quoteAround(text, odd.offset, odd.offset + odd.written.length),
93
+ quote: sentenceQuoteAt(doc.sentences, odd.offset) ?? quoteAround(text, odd.offset, odd.offset + odd.written.length),
94
94
  values: { written: odd.written.trim(), usual: usual.written.trim(), offset: odd.offset },
95
95
  }));
96
96
  };
@@ -1,7 +1,7 @@
1
1
  import type { Detector, Finding, Lexicon, ProseDocument, Sentence, Span, Token } from "../plugin.ts";
2
2
  import { quotedIn } from "../quoted-span.ts";
3
3
  import { followsInlineCode } from "./code-before.ts";
4
- import { followsTwoExamples } from "./example-baseline.ts";
4
+ import { followsExampleNaming, followsTwoExamples } from "./example-baseline.ts";
5
5
  import { isNamedStep, plainStepKeys } from "./graded-step.ts";
6
6
  import { comparesComparatives, comparesKinds, followsCause, madeComparative, opensWithCause, withoutNegation } from "./comparative-context.ts";
7
7
 
@@ -17,6 +17,8 @@ import { comparesComparatives, comparesKinds, followsCause, madeComparative, ope
17
17
  * pointer は文の頭で、いま見せた例を指す語(This is much better!)。二つのコードの例のすぐ後ろなら、相手は前の例。
18
18
  * cause は比べた形より前で、比較が何の結果か、何に対してかを言う語(これにより、…できるため、…, but)。opener は文の頭で同じことをする語(As …, By …)。
19
19
  * 英語の aim は比べた形の少し前で、今の状態から変えると言う動詞(to make results more predictable、do better)。
20
+ * pointer の文が一つのコードの例のすぐ後ろで、例の中に相手を言う語(baseline か shown: used to)があれば、相手は例が示す前の振る舞い。
21
+ * alternative は程度を言う語に続く名詞の並びの後ろで、ほかの手立てがあると言う語(より安全な書き方がある)。相手は、いま述べている手立て。
20
22
  * 同じ文か前の二文に相手を言う語があれば、相手は書いてある。
21
23
  */
22
24
 
@@ -35,6 +37,8 @@ export type ComparativeLists = {
35
37
  readonly causes: ReadonlySet<string>;
36
38
  readonly openers: ReadonlySet<string>;
37
39
  readonly layers: ReadonlySet<string>;
40
+ readonly alternatives: ReadonlySet<string>;
41
+ readonly shown: readonly string[];
38
42
  };
39
43
 
40
44
  /** head は英語の比べた形の前の述語(is faster の is)。 */
@@ -110,6 +114,20 @@ const afterGradable = (tokens: readonly Token[], at: number): number =>
110
114
  /** 程度を言う語(at)の後ろが、層の並びの中の位置を言う語か(より低い層)。相手は、いま述べている層。 */
111
115
  const namesLayer = (tokens: readonly Token[], at: number, layers: ReadonlySet<string>): boolean => layers.has(tokens[afterGradable(tokens, at)]?.surface ?? "");
112
116
 
117
+ /** at から続く名詞の並び(反復処理の書き方)の後ろの語の位置。名詞のあいだの「の」は並びの一部。 */
118
+ const afterNounPhrase = (tokens: readonly Token[], at: number): number => {
119
+ const ends = tokens
120
+ .slice(at)
121
+ .findIndex((token, index) => token.pos !== "NOUN" && !(token.surface === "の" && index > 0 && tokens[at + index + 1]?.pos === "NOUN"));
122
+ return ends === -1 ? tokens.length : at + ends;
123
+ };
124
+
125
+ /** 程度を言う語(at)の名詞の並びに、ほかの手立てがあると言う語が続くか(より安全な書き方がある)。比べる相手は、いま述べている手立て。 */
126
+ const namesAlternative = (tokens: readonly Token[], at: number, alternatives: ReadonlySet<string>): boolean => {
127
+ const next = afterGradable(tokens, at);
128
+ return tokens[next]?.pos === "NOUN" && runsFrom(tokens, afterNounPhrase(tokens, next)).some(({ run }) => alternatives.has(run));
129
+ };
130
+
113
131
  /** 程度を言う語(at)の後ろが、今より良くする目当てか(より良い社会、より豊かな暮らし、より良いものにする、より良い共生の実現)。 */
114
132
  const namesAim = (tokens: readonly Token[], at: number, aims: ReadonlySet<string>): boolean => {
115
133
  const next = afterGradable(tokens, at);
@@ -127,6 +145,7 @@ const markedAt = (tokens: readonly Token[], at: number, lists: ComparativeLists)
127
145
  const previous = tokens[at - 1];
128
146
  if (previous !== undefined && !OPENS_WORD.has(previous.pos)) return undefined;
129
147
  if (!isGradable(tokens, at + 1) || namesAim(tokens, at + 1, lists.aims) || namesLayer(tokens, at + 1, lists.layers)) return undefined;
148
+ if (namesAlternative(tokens, at + 1, lists.alternatives)) return undefined;
130
149
  return { first: marker, last: word };
131
150
  };
132
151
 
@@ -178,9 +197,16 @@ const goesBeyond = (tokens: readonly Token[], found: BareComparative, beyond: Re
178
197
  */
179
198
  const CAUSE_BEFORE: ReadonlySet<string> = new Set(["た", "だ", "の", "ある", "いる"]);
180
199
 
200
+ /** 語か、続く二語をつないだもの(と・よい)が、願いや目的を言う語か。 */
201
+ const namesIntent = (tokens: readonly Token[], at: number, intents: ReadonlySet<string>): boolean => {
202
+ const token = tokens[at];
203
+ if (token === undefined) return false;
204
+ return intents.has(lower(token)) || intents.has(token.lemma?.toLowerCase() ?? "") || intents.has(`${token.surface}${tokens[at + 1]?.surface ?? ""}`);
205
+ };
206
+
181
207
  const isIntentWord = (tokens: readonly Token[], at: number, intents: ReadonlySet<string>): boolean => {
182
208
  const token = tokens[at];
183
- if (token === undefined || !(intents.has(lower(token)) || intents.has(token.lemma?.toLowerCase() ?? ""))) return false;
209
+ if (token === undefined || !namesIntent(tokens, at, intents)) return false;
184
210
  return token.surface !== "ため" || !CAUSE_BEFORE.has(tokens[at - 1]?.surface ?? "");
185
211
  };
186
212
 
@@ -255,6 +281,8 @@ export const listsOf = (lexicon: Lexicon): ComparativeLists => ({
255
281
  causes: new Set(groupOf(lexicon, "cause")),
256
282
  openers: new Set(groupOf(lexicon, "opener")),
257
283
  layers: new Set(groupOf(lexicon, "layer")),
284
+ alternatives: new Set(groupOf(lexicon, "alternative")),
285
+ shown: groupOf(lexicon, "shown"),
258
286
  });
259
287
 
260
288
  /** 鉤括弧の中の比較(「給与所得の確定申告がさらに簡単に!」ページ)は題や語を挙げたもので、書き手の比較ではない。 */
@@ -279,7 +307,11 @@ export const bareComparative: Detector = (doc): Finding[] => {
279
307
  return doc.sentences.flatMap((sentence, at) => {
280
308
  const nearby = doc.sentences.slice(Math.max(0, at - BASELINE_REACH), at + 1);
281
309
  if (sentence.embeddedLanguage !== undefined || nearby.some((near) => namesBaseline(near, lists.baselines))) return [];
282
- if (pointsAtExample(sentence, lists.pointers) && followsTwoExamples(doc.source, spans, at)) return [];
310
+ if (
311
+ pointsAtExample(sentence, lists.pointers) &&
312
+ (followsTwoExamples(doc.source, spans, at) || followsExampleNaming(doc.source, spans, at, [...lists.baselines, ...lists.shown]))
313
+ )
314
+ return [];
283
315
  if (opensWithCause(sentence.tokens ?? [], lists.openers)) return [];
284
316
  const quoted = quotedIn(sentence);
285
317
  return bareComparativesIn(sentence.tokens ?? [], lists)
@@ -9,6 +9,7 @@ import { amountColumnOf, isTotalRowGap, type BodyRow } from "../structure/total-
9
9
  import { isAmountNameLine, isTotalLine } from "../structure/total-line.ts";
10
10
  import { isTotalLabel, withoutLeadingBlankCells } from "../structure/total.ts";
11
11
  import { isSpannedLabelGap } from "../structure/spanned-label-blank.ts";
12
+ import { isCatchAllRowGap } from "../structure/catch-all-row-blank.ts";
12
13
  import { picturesSpreadsheet } from "./spreadsheet-grid.ts";
13
14
 
14
15
  /** Fewer body rows than this, and one blank is as likely a choice as a gap. */
@@ -79,24 +80,28 @@ const bodyRowOf = (source: string, row: MarkdownNode, isTotalRow: IsTotalRow): B
79
80
  cells: (row.children ?? []).map((cell) => (shows(cell) ? sourceOf(source, cell) : undefined)),
80
81
  });
81
82
 
82
- /** How a table's rows are read: which rows are totals, and the total words that make a cell a row label (Total score). */
83
- type TableReading = { readonly isTotalRow: IsTotalRow; readonly totalWords: readonly string[] };
83
+ /**
84
+ * How a table's rows are read: which rows are totals, the total words that make a cell a row label (Total score), and the
85
+ * words that open a catch-all row (none of the above).
86
+ */
87
+ type TableReading = { readonly isTotalRow: IsTotalRow; readonly totalWords: readonly string[]; readonly catchAllWords: readonly string[] };
84
88
 
85
- const NO_TOTALS: TableReading = { isTotalRow: () => false, totalWords: [] };
89
+ const NO_TOTALS: TableReading = { isTotalRow: () => false, totalWords: [], catchAllWords: [] };
86
90
 
87
91
  /**
88
92
  * The one blank body cell of a column whose other body rows are all filled, unless it is a total row's blank beside its
89
- * amount, or the second column of a label that spans two (| Total score | | 5 |). Such a blank still counts as a second
90
- * blank, so the rows it shares a column with stay as unreported as before.
93
+ * amount, the second column of a label that spans two (| Total score | | 5 |), or a condition a catch-all row leaves out
94
+ * (| none of the above apply | | 10 percent |). Such a blank still counts as a second blank, so the rows it shares a column
95
+ * with stay as unreported as before.
91
96
  */
92
- const columnBlank = (source: string, table: TableRows, totalWords: readonly string[], column: number): Blank[] => {
97
+ const columnBlank = (source: string, table: TableRows, reading: TableReading, column: number): Blank[] => {
93
98
  const { header, body, rows } = table;
94
99
  const blanks = rows.flatMap((row, index) => (row.cells[column] === undefined ? [index] : []));
95
100
  const at = blanks[0];
96
101
  const row = at === undefined ? undefined : rows[at];
97
102
  if (blanks.length !== 1 || at === undefined || row === undefined) return [];
98
103
  if (isTotalRowGap(row, column, amountColumnOf(rows, header.children?.length ?? 0))) return [];
99
- if (isSpannedLabelGap(row.cells, column, totalWords)) return [];
104
+ if (isSpannedLabelGap(row.cells, column, reading.totalWords) || isCatchAllRowGap(row.cells, column, reading.catchAllWords)) return [];
100
105
  const offset = cellOffset(body[at]?.children?.[column], body[at]);
101
106
  const name = sourceOf(source, header.children?.[column]);
102
107
  return offset === undefined || name === "" ? [] : [{ offset, name }];
@@ -120,7 +125,7 @@ const tableBlanksOf = (source: string, table: MarkdownNode, reading: TableReadin
120
125
  const columns = header.children?.length ?? 0;
121
126
  return Array.from({ length: columns }, (_unused, column) => column)
122
127
  .slice(1)
123
- .flatMap((column) => columnBlank(source, { header, body, rows }, reading.totalWords, column));
128
+ .flatMap((column) => columnBlank(source, { header, body, rows }, reading, column));
124
129
  };
125
130
 
126
131
  /** Quoted material is someone else's: email replies the document model found, and every Markdown blockquote. */
@@ -211,6 +216,10 @@ const totalRowOf = (doc: ProseDocument): IsTotalRow => {
211
216
  };
212
217
 
213
218
  export const emptyTableCell: Detector = findingsOf("empty-table-cell", (doc) =>
214
- tableBlanks(doc.source, doc.replyQuotes ?? [], { isTotalRow: totalRowOf(doc), totalWords: patternsOf(doc, "total-label") }),
219
+ tableBlanks(doc.source, doc.replyQuotes ?? [], {
220
+ isTotalRow: totalRowOf(doc),
221
+ totalWords: patternsOf(doc, "total-label"),
222
+ catchAllWords: patternsOf(doc, "catch-all-row-label"),
223
+ }),
215
224
  );
216
225
  export const emptyListItem: Detector = findingsOf("empty-list-item", (doc) => listBlanks(doc.source, doc.replyQuotes ?? []));
@@ -1,4 +1,5 @@
1
1
  import type { Detector, DetectorOptions, Finding, Lexicon, Paragraph, ProseDocument, Span, Token } from "../plugin.ts";
2
+ import { inRelease, releaseSpansOf } from "./release-notes.ts";
2
3
 
3
4
  /** A bold run longer than this is a bold sentence, not a label. */
4
5
  const MAX_LABEL_CHARS = 40;
@@ -87,13 +88,17 @@ export const isParagraphList = (doc: ProseDocument, items: readonly Span[]): boo
87
88
  median(items.map((span) => explanationLength(doc.source.slice(span.start, span.end), doc.lengthUnit))) >= PARAGRAPH_ITEM_LENGTH[doc.lengthUnit];
88
89
 
89
90
  /** The bold-opened items of lists that are captions, not paragraphs, in document order. */
90
- const captionItems = (doc: ProseDocument, opens: (item: string) => string | undefined): Span[] =>
91
- doc.lists
91
+ /** A changelog's entries open with their commit scope in bold (* **deps:** ...), the generator's format, not a writer's labels. */
92
+ const captionItems = (doc: ProseDocument, opens: (item: string) => string | undefined): Span[] => {
93
+ const releases = releaseSpansOf(doc);
94
+ return doc.lists
92
95
  .flatMap((list) => {
93
96
  const items = unquotedItemsOf(doc, list.itemSpans, opens);
94
97
  return isParagraphList(doc, items) ? [] : items;
95
98
  })
99
+ .filter((item) => !inRelease(releases, item.start))
96
100
  .toSorted((left, right) => left.start - right.start);
101
+ };
97
102
 
98
103
  /** The list items, in document order, that open with a bold label and are not quoted. */
99
104
  export const boldLabelItems = (doc: ProseDocument): Span[] => unquotedItems(doc, boldLabelOf);