chaffjs 0.38.0 → 0.39.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 (675) hide show
  1. package/README.ja.md +20 -4
  2. package/README.md +19 -2
  3. package/checks/ai-tells.yaml +153 -0
  4. package/dist/acronym-expansion.d.ts +4 -0
  5. package/dist/acronym-expansion.d.ts.map +1 -0
  6. package/dist/acronym-expansion.js +46 -0
  7. package/dist/acronym-expansion.js.map +1 -0
  8. package/dist/ai-score/human-shares.d.ts.map +1 -1
  9. package/dist/ai-score/human-shares.js +53 -12
  10. package/dist/ai-score/human-shares.js.map +1 -1
  11. package/dist/ai-score/of-document.d.ts.map +1 -1
  12. package/dist/ai-score/of-document.js +4 -2
  13. package/dist/ai-score/of-document.js.map +1 -1
  14. package/dist/body-section.d.ts +3 -1
  15. package/dist/body-section.d.ts.map +1 -1
  16. package/dist/body-section.js +9 -2
  17. package/dist/body-section.js.map +1 -1
  18. package/dist/capitals-with-small.d.ts +5 -0
  19. package/dist/capitals-with-small.d.ts.map +1 -1
  20. package/dist/capitals-with-small.js +15 -0
  21. package/dist/capitals-with-small.js.map +1 -1
  22. package/dist/checks.d.ts +11 -0
  23. package/dist/checks.d.ts.map +1 -1
  24. package/dist/checks.js +27 -1
  25. package/dist/checks.js.map +1 -1
  26. package/dist/cli-args.js +1 -1
  27. package/dist/cli-args.js.map +1 -1
  28. package/dist/cli-text.d.ts.map +1 -1
  29. package/dist/cli-text.js +4 -0
  30. package/dist/cli-text.js.map +1 -1
  31. package/dist/commands/fix-plan.d.ts.map +1 -1
  32. package/dist/commands/fix-plan.js +64 -4
  33. package/dist/commands/fix-plan.js.map +1 -1
  34. package/dist/commands/test.d.ts.map +1 -1
  35. package/dist/commands/test.js +16 -2
  36. package/dist/commands/test.js.map +1 -1
  37. package/dist/detectors/acronym-context.d.ts +4 -1
  38. package/dist/detectors/acronym-context.d.ts.map +1 -1
  39. package/dist/detectors/acronym-context.js +16 -2
  40. package/dist/detectors/acronym-context.js.map +1 -1
  41. package/dist/detectors/acronym-expansion.d.ts.map +1 -1
  42. package/dist/detectors/acronym-expansion.js +25 -0
  43. package/dist/detectors/acronym-expansion.js.map +1 -1
  44. package/dist/detectors/acronym-gloss.d.ts +19 -0
  45. package/dist/detectors/acronym-gloss.d.ts.map +1 -1
  46. package/dist/detectors/acronym-gloss.js +115 -0
  47. package/dist/detectors/acronym-gloss.js.map +1 -1
  48. package/dist/detectors/acronym-name.d.ts +9 -2
  49. package/dist/detectors/acronym-name.d.ts.map +1 -1
  50. package/dist/detectors/acronym-name.js +13 -3
  51. package/dist/detectors/acronym-name.js.map +1 -1
  52. package/dist/detectors/acronym-series.d.ts +7 -0
  53. package/dist/detectors/acronym-series.d.ts.map +1 -0
  54. package/dist/detectors/acronym-series.js +25 -0
  55. package/dist/detectors/acronym-series.js.map +1 -0
  56. package/dist/detectors/ai-phrasing.d.ts +3 -6
  57. package/dist/detectors/ai-phrasing.d.ts.map +1 -1
  58. package/dist/detectors/ai-phrasing.js +17 -16
  59. package/dist/detectors/ai-phrasing.js.map +1 -1
  60. package/dist/detectors/ai-structure.d.ts +1 -0
  61. package/dist/detectors/ai-structure.d.ts.map +1 -1
  62. package/dist/detectors/ai-structure.js +15 -4
  63. package/dist/detectors/ai-structure.js.map +1 -1
  64. package/dist/detectors/alnum-number.d.ts +1 -0
  65. package/dist/detectors/alnum-number.d.ts.map +1 -1
  66. package/dist/detectors/alnum-number.js +7 -3
  67. package/dist/detectors/alnum-number.js.map +1 -1
  68. package/dist/detectors/bare-comparative.d.ts +6 -0
  69. package/dist/detectors/bare-comparative.d.ts.map +1 -1
  70. package/dist/detectors/bare-comparative.js +31 -12
  71. package/dist/detectors/bare-comparative.js.map +1 -1
  72. package/dist/detectors/bold-emphasis-form.d.ts +8 -0
  73. package/dist/detectors/bold-emphasis-form.d.ts.map +1 -0
  74. package/dist/detectors/bold-emphasis-form.js +40 -0
  75. package/dist/detectors/bold-emphasis-form.js.map +1 -0
  76. package/dist/detectors/bold-emphasis.d.ts +0 -1
  77. package/dist/detectors/bold-emphasis.d.ts.map +1 -1
  78. package/dist/detectors/bold-emphasis.js +14 -12
  79. package/dist/detectors/bold-emphasis.js.map +1 -1
  80. package/dist/detectors/caps-caption.d.ts +5 -0
  81. package/dist/detectors/caps-caption.d.ts.map +1 -1
  82. package/dist/detectors/caps-caption.js +20 -2
  83. package/dist/detectors/caps-caption.js.map +1 -1
  84. package/dist/detectors/char-shape.d.ts.map +1 -1
  85. package/dist/detectors/char-shape.js +86 -27
  86. package/dist/detectors/char-shape.js.map +1 -1
  87. package/dist/detectors/chat-log-line.d.ts +8 -0
  88. package/dist/detectors/chat-log-line.d.ts.map +1 -0
  89. package/dist/detectors/chat-log-line.js +13 -0
  90. package/dist/detectors/chat-log-line.js.map +1 -0
  91. package/dist/detectors/citation-string.d.ts +3 -0
  92. package/dist/detectors/citation-string.d.ts.map +1 -0
  93. package/dist/detectors/citation-string.js +34 -0
  94. package/dist/detectors/citation-string.js.map +1 -0
  95. package/dist/detectors/closing-cliche.d.ts +18 -0
  96. package/dist/detectors/closing-cliche.d.ts.map +1 -0
  97. package/dist/detectors/closing-cliche.js +58 -0
  98. package/dist/detectors/closing-cliche.js.map +1 -0
  99. package/dist/detectors/closing-exhortation.d.ts +18 -0
  100. package/dist/detectors/closing-exhortation.d.ts.map +1 -0
  101. package/dist/detectors/closing-exhortation.js +55 -0
  102. package/dist/detectors/closing-exhortation.js.map +1 -0
  103. package/dist/detectors/cold-open.d.ts +25 -0
  104. package/dist/detectors/cold-open.d.ts.map +1 -0
  105. package/dist/detectors/cold-open.js +121 -0
  106. package/dist/detectors/cold-open.js.map +1 -0
  107. package/dist/detectors/comparative-context.d.ts +21 -0
  108. package/dist/detectors/comparative-context.d.ts.map +1 -0
  109. package/dist/detectors/comparative-context.js +57 -0
  110. package/dist/detectors/comparative-context.js.map +1 -0
  111. package/dist/detectors/concrete-evidence-density.d.ts +3 -0
  112. package/dist/detectors/concrete-evidence-density.d.ts.map +1 -0
  113. package/dist/detectors/concrete-evidence-density.js +75 -0
  114. package/dist/detectors/concrete-evidence-density.js.map +1 -0
  115. package/dist/detectors/concrete-evidence.d.ts +14 -0
  116. package/dist/detectors/concrete-evidence.d.ts.map +1 -1
  117. package/dist/detectors/concrete-evidence.js +24 -0
  118. package/dist/detectors/concrete-evidence.js.map +1 -1
  119. package/dist/detectors/contrast-frame.d.ts +5 -0
  120. package/dist/detectors/contrast-frame.d.ts.map +1 -1
  121. package/dist/detectors/contrast-frame.js +53 -6
  122. package/dist/detectors/contrast-frame.js.map +1 -1
  123. package/dist/detectors/coordinate-adjective.d.ts +2 -1
  124. package/dist/detectors/coordinate-adjective.d.ts.map +1 -1
  125. package/dist/detectors/coordinate-adjective.js +4 -2
  126. package/dist/detectors/coordinate-adjective.js.map +1 -1
  127. package/dist/detectors/duplicate-heading.d.ts +4 -2
  128. package/dist/detectors/duplicate-heading.d.ts.map +1 -1
  129. package/dist/detectors/duplicate-heading.js +35 -11
  130. package/dist/detectors/duplicate-heading.js.map +1 -1
  131. package/dist/detectors/email-frame-words.d.ts +10 -0
  132. package/dist/detectors/email-frame-words.d.ts.map +1 -0
  133. package/dist/detectors/email-frame-words.js +34 -0
  134. package/dist/detectors/email-frame-words.js.map +1 -0
  135. package/dist/detectors/email-letter.d.ts +3 -7
  136. package/dist/detectors/email-letter.d.ts.map +1 -1
  137. package/dist/detectors/email-letter.js +13 -21
  138. package/dist/detectors/email-letter.js.map +1 -1
  139. package/dist/detectors/fullwidth-alnum.d.ts.map +1 -1
  140. package/dist/detectors/fullwidth-alnum.js +20 -4
  141. package/dist/detectors/fullwidth-alnum.js.map +1 -1
  142. package/dist/detectors/gram-furniture.d.ts +18 -1
  143. package/dist/detectors/gram-furniture.d.ts.map +1 -1
  144. package/dist/detectors/gram-furniture.js +71 -0
  145. package/dist/detectors/gram-furniture.js.map +1 -1
  146. package/dist/detectors/gram-openers.d.ts +16 -0
  147. package/dist/detectors/gram-openers.d.ts.map +1 -1
  148. package/dist/detectors/gram-openers.js +52 -0
  149. package/dist/detectors/gram-openers.js.map +1 -1
  150. package/dist/detectors/gram-predicate.d.ts.map +1 -1
  151. package/dist/detectors/gram-predicate.js +40 -7
  152. package/dist/detectors/gram-predicate.js.map +1 -1
  153. package/dist/detectors/gram-repetition.d.ts +3 -0
  154. package/dist/detectors/gram-repetition.d.ts.map +1 -0
  155. package/dist/detectors/gram-repetition.js +158 -0
  156. package/dist/detectors/gram-repetition.js.map +1 -0
  157. package/dist/detectors/heading-level-skip.d.ts +6 -0
  158. package/dist/detectors/heading-level-skip.d.ts.map +1 -1
  159. package/dist/detectors/heading-level-skip.js +24 -1
  160. package/dist/detectors/heading-level-skip.js.map +1 -1
  161. package/dist/detectors/heading-numbering.js +2 -2
  162. package/dist/detectors/heading-numbering.js.map +1 -1
  163. package/dist/detectors/hyphen-copied-text.d.ts +3 -0
  164. package/dist/detectors/hyphen-copied-text.d.ts.map +1 -0
  165. package/dist/detectors/hyphen-copied-text.js +49 -0
  166. package/dist/detectors/hyphen-copied-text.js.map +1 -0
  167. package/dist/detectors/kanji-name-edge.d.ts +15 -0
  168. package/dist/detectors/kanji-name-edge.d.ts.map +1 -1
  169. package/dist/detectors/kanji-name-edge.js +30 -0
  170. package/dist/detectors/kanji-name-edge.js.map +1 -1
  171. package/dist/detectors/kanji-run-pieces.d.ts +7 -0
  172. package/dist/detectors/kanji-run-pieces.d.ts.map +1 -1
  173. package/dist/detectors/kanji-run-pieces.js +14 -4
  174. package/dist/detectors/kanji-run-pieces.js.map +1 -1
  175. package/dist/detectors/kutoten-consistency.d.ts.map +1 -1
  176. package/dist/detectors/kutoten-consistency.js +22 -4
  177. package/dist/detectors/kutoten-consistency.js.map +1 -1
  178. package/dist/detectors/lead-in-dash.d.ts +5 -0
  179. package/dist/detectors/lead-in-dash.d.ts.map +1 -1
  180. package/dist/detectors/lead-in-dash.js +9 -0
  181. package/dist/detectors/lead-in-dash.js.map +1 -1
  182. package/dist/detectors/letter-joined-name.d.ts +2 -0
  183. package/dist/detectors/letter-joined-name.d.ts.map +1 -1
  184. package/dist/detectors/letter-joined-name.js +8 -0
  185. package/dist/detectors/letter-joined-name.js.map +1 -1
  186. package/dist/detectors/lexicon.d.ts.map +1 -1
  187. package/dist/detectors/lexicon.js +11 -2
  188. package/dist/detectors/lexicon.js.map +1 -1
  189. package/dist/detectors/list-item.d.ts +14 -0
  190. package/dist/detectors/list-item.d.ts.map +1 -1
  191. package/dist/detectors/list-item.js +30 -1
  192. package/dist/detectors/list-item.js.map +1 -1
  193. package/dist/detectors/list-items.d.ts +1 -1
  194. package/dist/detectors/list-items.d.ts.map +1 -1
  195. package/dist/detectors/list-items.js +2 -0
  196. package/dist/detectors/list-items.js.map +1 -1
  197. package/dist/detectors/list-joint.d.ts +18 -0
  198. package/dist/detectors/list-joint.d.ts.map +1 -0
  199. package/dist/detectors/list-joint.js +42 -0
  200. package/dist/detectors/list-joint.js.map +1 -0
  201. package/dist/detectors/list-layout.d.ts +14 -0
  202. package/dist/detectors/list-layout.d.ts.map +1 -0
  203. package/dist/detectors/list-layout.js +29 -0
  204. package/dist/detectors/list-layout.js.map +1 -0
  205. package/dist/detectors/list-lead-in.d.ts +6 -1
  206. package/dist/detectors/list-lead-in.d.ts.map +1 -1
  207. package/dist/detectors/list-lead-in.js +42 -2
  208. package/dist/detectors/list-lead-in.js.map +1 -1
  209. package/dist/detectors/list-parallel.d.ts +6 -0
  210. package/dist/detectors/list-parallel.d.ts.map +1 -1
  211. package/dist/detectors/list-parallel.js +106 -13
  212. package/dist/detectors/list-parallel.js.map +1 -1
  213. package/dist/detectors/list-run.d.ts +13 -0
  214. package/dist/detectors/list-run.d.ts.map +1 -0
  215. package/dist/detectors/list-run.js +80 -0
  216. package/dist/detectors/list-run.js.map +1 -0
  217. package/dist/detectors/list-sentence.d.ts +11 -0
  218. package/dist/detectors/list-sentence.d.ts.map +1 -1
  219. package/dist/detectors/list-sentence.js +1 -0
  220. package/dist/detectors/list-sentence.js.map +1 -1
  221. package/dist/detectors/mark-shape.d.ts +2 -1
  222. package/dist/detectors/mark-shape.d.ts.map +1 -1
  223. package/dist/detectors/mark-shape.js +10 -6
  224. package/dist/detectors/mark-shape.js.map +1 -1
  225. package/dist/detectors/name-run.d.ts +2 -0
  226. package/dist/detectors/name-run.d.ts.map +1 -1
  227. package/dist/detectors/name-run.js +1 -1
  228. package/dist/detectors/name-run.js.map +1 -1
  229. package/dist/detectors/name-variant-two-things.d.ts +18 -0
  230. package/dist/detectors/name-variant-two-things.d.ts.map +1 -0
  231. package/dist/detectors/name-variant-two-things.js +84 -0
  232. package/dist/detectors/name-variant-two-things.js.map +1 -0
  233. package/dist/detectors/name-variant.d.ts.map +1 -1
  234. package/dist/detectors/name-variant.js +14 -15
  235. package/dist/detectors/name-variant.js.map +1 -1
  236. package/dist/detectors/organisation-run.d.ts +6 -0
  237. package/dist/detectors/organisation-run.d.ts.map +1 -1
  238. package/dist/detectors/organisation-run.js +26 -2
  239. package/dist/detectors/organisation-run.js.map +1 -1
  240. package/dist/detectors/orthographic-variant-open.d.ts +35 -0
  241. package/dist/detectors/orthographic-variant-open.d.ts.map +1 -0
  242. package/dist/detectors/orthographic-variant-open.js +79 -0
  243. package/dist/detectors/orthographic-variant-open.js.map +1 -0
  244. package/dist/detectors/orthographic-variant.d.ts.map +1 -1
  245. package/dist/detectors/orthographic-variant.js +55 -59
  246. package/dist/detectors/orthographic-variant.js.map +1 -1
  247. package/dist/detectors/over-general-claim.d.ts.map +1 -1
  248. package/dist/detectors/over-general-claim.js +82 -4
  249. package/dist/detectors/over-general-claim.js.map +1 -1
  250. package/dist/detectors/oxford-comma.d.ts.map +1 -1
  251. package/dist/detectors/oxford-comma.js +61 -27
  252. package/dist/detectors/oxford-comma.js.map +1 -1
  253. package/dist/detectors/particle-run-names.d.ts +8 -0
  254. package/dist/detectors/particle-run-names.d.ts.map +1 -0
  255. package/dist/detectors/particle-run-names.js +17 -0
  256. package/dist/detectors/particle-run-names.js.map +1 -0
  257. package/dist/detectors/proper-noun-density.d.ts +13 -0
  258. package/dist/detectors/proper-noun-density.d.ts.map +1 -0
  259. package/dist/detectors/proper-noun-density.js +97 -0
  260. package/dist/detectors/proper-noun-density.js.map +1 -0
  261. package/dist/detectors/quoted-excerpt.d.ts +13 -0
  262. package/dist/detectors/quoted-excerpt.d.ts.map +1 -0
  263. package/dist/detectors/quoted-excerpt.js +53 -0
  264. package/dist/detectors/quoted-excerpt.js.map +1 -0
  265. package/dist/detectors/reference-entry.d.ts +7 -0
  266. package/dist/detectors/reference-entry.d.ts.map +1 -0
  267. package/dist/detectors/reference-entry.js +35 -0
  268. package/dist/detectors/reference-entry.js.map +1 -0
  269. package/dist/detectors/register-neutral-shape.d.ts +5 -2
  270. package/dist/detectors/register-neutral-shape.d.ts.map +1 -1
  271. package/dist/detectors/register-neutral-shape.js +21 -4
  272. package/dist/detectors/register-neutral-shape.js.map +1 -1
  273. package/dist/detectors/register-set-apart.d.ts +24 -0
  274. package/dist/detectors/register-set-apart.d.ts.map +1 -0
  275. package/dist/detectors/register-set-apart.js +102 -0
  276. package/dist/detectors/register-set-apart.js.map +1 -0
  277. package/dist/detectors/register-voice.d.ts +14 -0
  278. package/dist/detectors/register-voice.d.ts.map +1 -0
  279. package/dist/detectors/register-voice.js +47 -0
  280. package/dist/detectors/register-voice.js.map +1 -0
  281. package/dist/detectors/register.d.ts +5 -0
  282. package/dist/detectors/register.d.ts.map +1 -1
  283. package/dist/detectors/register.js +13 -0
  284. package/dist/detectors/register.js.map +1 -1
  285. package/dist/detectors/registry/closing-cliche.d.ts +3 -0
  286. package/dist/detectors/registry/closing-cliche.d.ts.map +1 -0
  287. package/dist/detectors/registry/closing-cliche.js +3 -0
  288. package/dist/detectors/registry/closing-cliche.js.map +1 -0
  289. package/dist/detectors/registry/closing-exhortation.d.ts +3 -0
  290. package/dist/detectors/registry/closing-exhortation.d.ts.map +1 -0
  291. package/dist/detectors/registry/closing-exhortation.js +3 -0
  292. package/dist/detectors/registry/closing-exhortation.js.map +1 -0
  293. package/dist/detectors/registry/cold-open.d.ts +3 -0
  294. package/dist/detectors/registry/cold-open.d.ts.map +1 -0
  295. package/dist/detectors/registry/cold-open.js +3 -0
  296. package/dist/detectors/registry/cold-open.js.map +1 -0
  297. package/dist/detectors/registry/colon-lead-in.js +1 -1
  298. package/dist/detectors/registry/colon-lead-in.js.map +1 -1
  299. package/dist/detectors/registry/concrete-evidence.js +1 -1
  300. package/dist/detectors/registry/concrete-evidence.js.map +1 -1
  301. package/dist/detectors/registry/ngram-repetition.js +1 -1
  302. package/dist/detectors/registry/ngram-repetition.js.map +1 -1
  303. package/dist/detectors/registry/proper-noun-density.js +1 -1
  304. package/dist/detectors/registry/proper-noun-density.js.map +1 -1
  305. package/dist/detectors/registry/topic-predicate-distance.js +1 -1
  306. package/dist/detectors/registry/topic-predicate-distance.js.map +1 -1
  307. package/dist/detectors/registry/unprompted-denial.d.ts +3 -0
  308. package/dist/detectors/registry/unprompted-denial.d.ts.map +1 -0
  309. package/dist/detectors/registry/unprompted-denial.js +3 -0
  310. package/dist/detectors/registry/unprompted-denial.js.map +1 -0
  311. package/dist/detectors/sentence-ending.d.ts +6 -1
  312. package/dist/detectors/sentence-ending.d.ts.map +1 -1
  313. package/dist/detectors/sentence-ending.js +42 -9
  314. package/dist/detectors/sentence-ending.js.map +1 -1
  315. package/dist/detectors/sentence-length.d.ts.map +1 -1
  316. package/dist/detectors/sentence-length.js +25 -10
  317. package/dist/detectors/sentence-length.js.map +1 -1
  318. package/dist/detectors/sentence-load.d.ts +5 -3
  319. package/dist/detectors/sentence-load.d.ts.map +1 -1
  320. package/dist/detectors/sentence-load.js +3 -5
  321. package/dist/detectors/sentence-load.js.map +1 -1
  322. package/dist/detectors/sentence-parts.d.ts +9 -0
  323. package/dist/detectors/sentence-parts.d.ts.map +1 -0
  324. package/dist/detectors/sentence-parts.js +62 -0
  325. package/dist/detectors/sentence-parts.js.map +1 -0
  326. package/dist/detectors/sentence-title.d.ts +3 -0
  327. package/dist/detectors/sentence-title.d.ts.map +1 -1
  328. package/dist/detectors/sentence-title.js +10 -0
  329. package/dist/detectors/sentence-title.js.map +1 -1
  330. package/dist/detectors/signals.d.ts +0 -2
  331. package/dist/detectors/signals.d.ts.map +1 -1
  332. package/dist/detectors/signals.js +12 -163
  333. package/dist/detectors/signals.js.map +1 -1
  334. package/dist/detectors/structure-tree.d.ts.map +1 -1
  335. package/dist/detectors/structure-tree.js +1 -1
  336. package/dist/detectors/structure-tree.js.map +1 -1
  337. package/dist/detectors/structure.d.ts +9 -1
  338. package/dist/detectors/structure.d.ts.map +1 -1
  339. package/dist/detectors/structure.js +24 -11
  340. package/dist/detectors/structure.js.map +1 -1
  341. package/dist/detectors/superlative-clause.d.ts.map +1 -1
  342. package/dist/detectors/superlative-clause.js +19 -2
  343. package/dist/detectors/superlative-clause.js.map +1 -1
  344. package/dist/detectors/superlative-context.d.ts +35 -0
  345. package/dist/detectors/superlative-context.d.ts.map +1 -0
  346. package/dist/detectors/superlative-context.js +71 -0
  347. package/dist/detectors/superlative-context.js.map +1 -0
  348. package/dist/detectors/superlative-scope.d.ts +6 -2
  349. package/dist/detectors/superlative-scope.d.ts.map +1 -1
  350. package/dist/detectors/superlative-scope.js +20 -6
  351. package/dist/detectors/superlative-scope.js.map +1 -1
  352. package/dist/detectors/team.d.ts +0 -1
  353. package/dist/detectors/team.d.ts.map +1 -1
  354. package/dist/detectors/team.js +0 -46
  355. package/dist/detectors/team.js.map +1 -1
  356. package/dist/detectors/titled-code-citation.d.ts +12 -0
  357. package/dist/detectors/titled-code-citation.d.ts.map +1 -0
  358. package/dist/detectors/titled-code-citation.js +11 -0
  359. package/dist/detectors/titled-code-citation.js.map +1 -0
  360. package/dist/detectors/titled-run.d.ts +8 -1
  361. package/dist/detectors/titled-run.d.ts.map +1 -1
  362. package/dist/detectors/titled-run.js +14 -4
  363. package/dist/detectors/titled-run.js.map +1 -1
  364. package/dist/detectors/token-shape.d.ts.map +1 -1
  365. package/dist/detectors/token-shape.js +22 -11
  366. package/dist/detectors/token-shape.js.map +1 -1
  367. package/dist/detectors/topic-predicate-distance.d.ts +4 -0
  368. package/dist/detectors/topic-predicate-distance.d.ts.map +1 -0
  369. package/dist/detectors/topic-predicate-distance.js +22 -0
  370. package/dist/detectors/topic-predicate-distance.js.map +1 -0
  371. package/dist/detectors/unknown-word-context.d.ts +28 -0
  372. package/dist/detectors/unknown-word-context.d.ts.map +1 -0
  373. package/dist/detectors/unknown-word-context.js +89 -0
  374. package/dist/detectors/unknown-word-context.js.map +1 -0
  375. package/dist/detectors/unknown-word.d.ts +0 -5
  376. package/dist/detectors/unknown-word.d.ts.map +1 -1
  377. package/dist/detectors/unknown-word.js +16 -19
  378. package/dist/detectors/unknown-word.js.map +1 -1
  379. package/dist/detectors/unprompted-denial.d.ts +25 -0
  380. package/dist/detectors/unprompted-denial.d.ts.map +1 -0
  381. package/dist/detectors/unprompted-denial.js +100 -0
  382. package/dist/detectors/unprompted-denial.js.map +1 -0
  383. package/dist/document-sections.d.ts.map +1 -1
  384. package/dist/document-sections.js +3 -1
  385. package/dist/document-sections.js.map +1 -1
  386. package/dist/fix-plan/all-signs.d.ts +17 -0
  387. package/dist/fix-plan/all-signs.d.ts.map +1 -0
  388. package/dist/fix-plan/all-signs.js +26 -0
  389. package/dist/fix-plan/all-signs.js.map +1 -0
  390. package/dist/fix-plan/plan.d.ts +31 -0
  391. package/dist/fix-plan/plan.d.ts.map +1 -1
  392. package/dist/fix-plan/plan.js +23 -3
  393. package/dist/fix-plan/plan.js.map +1 -1
  394. package/dist/fix-plan/render.d.ts.map +1 -1
  395. package/dist/fix-plan/render.js +31 -2
  396. package/dist/fix-plan/render.js.map +1 -1
  397. package/dist/fix-plan/risen.d.ts +10 -0
  398. package/dist/fix-plan/risen.d.ts.map +1 -0
  399. package/dist/fix-plan/risen.js +7 -0
  400. package/dist/fix-plan/risen.js.map +1 -0
  401. package/dist/fix-plan/text.d.ts +15 -0
  402. package/dist/fix-plan/text.d.ts.map +1 -1
  403. package/dist/fix-plan/text.js +38 -2
  404. package/dist/fix-plan/text.js.map +1 -1
  405. package/dist/heading-numbering.d.ts +2 -1
  406. package/dist/heading-numbering.d.ts.map +1 -1
  407. package/dist/heading-numbering.js +40 -10
  408. package/dist/heading-numbering.js.map +1 -1
  409. package/dist/html/html-site-chrome.d.ts.map +1 -1
  410. package/dist/html/html-site-chrome.js +7 -2
  411. package/dist/html/html-site-chrome.js.map +1 -1
  412. package/dist/law-title.d.ts +7 -0
  413. package/dist/law-title.d.ts.map +1 -0
  414. package/dist/law-title.js +29 -0
  415. package/dist/law-title.js.map +1 -0
  416. package/dist/name-ending-run.d.ts +11 -0
  417. package/dist/name-ending-run.d.ts.map +1 -0
  418. package/dist/name-ending-run.js +37 -0
  419. package/dist/name-ending-run.js.map +1 -0
  420. package/dist/name-title-slip.d.ts +11 -0
  421. package/dist/name-title-slip.d.ts.map +1 -0
  422. package/dist/name-title-slip.js +51 -0
  423. package/dist/name-title-slip.js.map +1 -0
  424. package/dist/name-variant-shapes.d.ts +14 -0
  425. package/dist/name-variant-shapes.d.ts.map +1 -0
  426. package/dist/name-variant-shapes.js +43 -0
  427. package/dist/name-variant-shapes.js.map +1 -0
  428. package/dist/name-word-use.d.ts +5 -0
  429. package/dist/name-word-use.d.ts.map +1 -0
  430. package/dist/name-word-use.js +12 -0
  431. package/dist/name-word-use.js.map +1 -0
  432. package/dist/opening-passage.d.ts +8 -0
  433. package/dist/opening-passage.d.ts.map +1 -0
  434. package/dist/opening-passage.js +24 -0
  435. package/dist/opening-passage.js.map +1 -0
  436. package/dist/plugin.d.ts +2 -0
  437. package/dist/plugin.d.ts.map +1 -1
  438. package/dist/quote-gloss.d.ts +4 -0
  439. package/dist/quote-gloss.d.ts.map +1 -0
  440. package/dist/quote-gloss.js +7 -0
  441. package/dist/quote-gloss.js.map +1 -0
  442. package/dist/quoted-spelling.d.ts +17 -0
  443. package/dist/quoted-spelling.d.ts.map +1 -0
  444. package/dist/quoted-spelling.js +27 -0
  445. package/dist/quoted-spelling.js.map +1 -0
  446. package/dist/render/semantic.d.ts +1 -1
  447. package/dist/render/semantic.d.ts.map +1 -1
  448. package/dist/render/semantic.js +2 -1
  449. package/dist/render/semantic.js.map +1 -1
  450. package/dist/rule-of-three.d.ts +19 -0
  451. package/dist/rule-of-three.d.ts.map +1 -0
  452. package/dist/rule-of-three.js +33 -0
  453. package/dist/rule-of-three.js.map +1 -0
  454. package/dist/run-semantic.d.ts.map +1 -1
  455. package/dist/run-semantic.js +2 -2
  456. package/dist/run-semantic.js.map +1 -1
  457. package/dist/section-levels.d.ts +18 -0
  458. package/dist/section-levels.d.ts.map +1 -0
  459. package/dist/section-levels.js +80 -0
  460. package/dist/section-levels.js.map +1 -0
  461. package/dist/semantic.d.ts +2 -0
  462. package/dist/semantic.d.ts.map +1 -1
  463. package/dist/semantic.js +13 -0
  464. package/dist/semantic.js.map +1 -1
  465. package/dist/sentence-load.d.ts +2 -1
  466. package/dist/sentence-load.d.ts.map +1 -1
  467. package/dist/sentence-load.js +4 -2
  468. package/dist/sentence-load.js.map +1 -1
  469. package/dist/spelling.d.ts +11 -0
  470. package/dist/spelling.d.ts.map +1 -1
  471. package/dist/spelling.js +19 -5
  472. package/dist/spelling.js.map +1 -1
  473. package/dist/structure/cited-document-section.d.ts.map +1 -1
  474. package/dist/structure/cited-document-section.js +15 -1
  475. package/dist/structure/cited-document-section.js.map +1 -1
  476. package/dist/structure/issues.d.ts +1 -1
  477. package/dist/structure/issues.d.ts.map +1 -1
  478. package/dist/structure/issues.js +5 -1
  479. package/dist/structure/issues.js.map +1 -1
  480. package/dist/structure-shape/template-outline.d.ts +11 -0
  481. package/dist/structure-shape/template-outline.d.ts.map +1 -0
  482. package/dist/structure-shape/template-outline.js +25 -0
  483. package/dist/structure-shape/template-outline.js.map +1 -0
  484. package/dist/title-case-name.d.ts +12 -0
  485. package/dist/title-case-name.d.ts.map +1 -0
  486. package/dist/title-case-name.js +37 -0
  487. package/dist/title-case-name.js.map +1 -0
  488. package/dist/topic-clause.d.ts +6 -1
  489. package/dist/topic-clause.d.ts.map +1 -1
  490. package/dist/topic-clause.js +77 -3
  491. package/dist/topic-clause.js.map +1 -1
  492. package/dist/word-use.d.ts +12 -4
  493. package/dist/word-use.d.ts.map +1 -1
  494. package/dist/word-use.js +47 -5
  495. package/dist/word-use.js.map +1 -1
  496. package/package.json +4 -3
  497. package/rules/ai-generated-composite.yaml +11 -3
  498. package/rules/ai-structure.yaml +7 -6
  499. package/rules/ai-tell.yaml +4 -4
  500. package/rules/all-caps-shouting.yaml +2 -2
  501. package/rules/bold-emphasis.yaml +5 -4
  502. package/rules/closing-cliche.yaml +4 -5
  503. package/rules/closing-exhortation.yaml +74 -0
  504. package/rules/cold-open.yaml +95 -0
  505. package/rules/colon-lead-in.yaml +68 -10
  506. package/rules/comparative-without-baseline.yaml +2 -2
  507. package/rules/concrete-evidence-density.yaml +2 -2
  508. package/rules/contrast-framing.yaml +16 -13
  509. package/rules/dangling-reference.yaml +2 -2
  510. package/rules/duplicate-heading.yaml +5 -2
  511. package/rules/email-greeting-closing.yaml +2 -2
  512. package/rules/email-stock-courtesy.yaml +62 -0
  513. package/rules/fullwidth-alnum-consistency.yaml +2 -2
  514. package/rules/generic-opening.yaml +63 -0
  515. package/rules/heading-level-skip.yaml +2 -2
  516. package/rules/heading-numbering-mix.yaml +20 -20
  517. package/rules/hyphen-as-dash.yaml +2 -2
  518. package/rules/kutoten-consistency.yaml +4 -4
  519. package/rules/list-item-form-mix.yaml +2 -2
  520. package/rules/max-kanji-continuous.yaml +7 -3
  521. package/rules/max-sentence-length.yaml +4 -2
  522. package/rules/name-variant.yaml +5 -2
  523. package/rules/ngram-repetition.yaml +2 -2
  524. package/rules/no-doubled-joshi.yaml +2 -2
  525. package/rules/no-em-dash.yaml +2 -2
  526. package/rules/no-mixed-desumasu.yaml +16 -3
  527. package/rules/orthographic-variant.yaml +2 -2
  528. package/rules/over-general-claim.yaml +2 -2
  529. package/rules/oxford-comma-consistency.yaml +15 -3
  530. package/rules/proper-noun-density.yaml +14 -7
  531. package/rules/rule-of-three.yaml +3 -3
  532. package/rules/section-length-uniformity.yaml +2 -2
  533. package/rules/topic-predicate-distance.yaml +3 -2
  534. package/rules/undefined-acronym.yaml +8 -2
  535. package/rules/unknown-word.yaml +2 -2
  536. package/rules/unprompted-denial.yaml +88 -0
  537. package/rules/unqualified-superlative.yaml +8 -2
  538. package/skills/chaff/SKILL.md +38 -6
  539. package/src/acronym-expansion.ts +57 -0
  540. package/src/ai-score/human-shares.ts +53 -12
  541. package/src/ai-score/of-document.ts +5 -2
  542. package/src/body-section.ts +11 -2
  543. package/src/capitals-with-small.ts +16 -0
  544. package/src/checks.ts +32 -1
  545. package/src/cli-args.ts +1 -1
  546. package/src/cli-text.ts +4 -0
  547. package/src/commands/fix-plan.ts +72 -5
  548. package/src/commands/test.ts +18 -2
  549. package/src/detectors/acronym-context.ts +20 -2
  550. package/src/detectors/acronym-expansion.ts +26 -0
  551. package/src/detectors/acronym-gloss.ts +123 -0
  552. package/src/detectors/acronym-name.ts +22 -3
  553. package/src/detectors/acronym-series.ts +27 -0
  554. package/src/detectors/ai-phrasing.ts +18 -17
  555. package/src/detectors/ai-structure.ts +23 -6
  556. package/src/detectors/alnum-number.ts +8 -3
  557. package/src/detectors/bare-comparative.ts +41 -13
  558. package/src/detectors/bold-emphasis-form.ts +58 -0
  559. package/src/detectors/bold-emphasis.ts +16 -17
  560. package/src/detectors/caps-caption.ts +24 -2
  561. package/src/detectors/char-shape.ts +118 -29
  562. package/src/detectors/chat-log-line.ts +17 -0
  563. package/src/detectors/citation-string.ts +36 -0
  564. package/src/detectors/closing-cliche.ts +74 -0
  565. package/src/detectors/closing-exhortation.ts +74 -0
  566. package/src/detectors/cold-open.ts +145 -0
  567. package/src/detectors/comparative-context.ts +74 -0
  568. package/src/detectors/concrete-evidence-density.ts +99 -0
  569. package/src/detectors/concrete-evidence.ts +40 -0
  570. package/src/detectors/contrast-frame.ts +65 -7
  571. package/src/detectors/coordinate-adjective.ts +4 -2
  572. package/src/detectors/duplicate-heading.ts +44 -15
  573. package/src/detectors/email-frame-words.ts +39 -0
  574. package/src/detectors/email-letter.ts +15 -20
  575. package/src/detectors/fullwidth-alnum.ts +24 -4
  576. package/src/detectors/gram-furniture.ts +87 -1
  577. package/src/detectors/gram-openers.ts +71 -0
  578. package/src/detectors/gram-predicate.ts +49 -6
  579. package/src/detectors/gram-repetition.ts +199 -0
  580. package/src/detectors/heading-level-skip.ts +31 -1
  581. package/src/detectors/heading-numbering.ts +2 -2
  582. package/src/detectors/hyphen-copied-text.ts +65 -0
  583. package/src/detectors/kanji-name-edge.ts +31 -0
  584. package/src/detectors/kanji-run-pieces.ts +26 -0
  585. package/src/detectors/kutoten-consistency.ts +24 -4
  586. package/src/detectors/lead-in-dash.ts +11 -0
  587. package/src/detectors/letter-joined-name.ts +14 -0
  588. package/src/detectors/lexicon.ts +15 -2
  589. package/src/detectors/list-item.ts +37 -1
  590. package/src/detectors/list-items.ts +4 -1
  591. package/src/detectors/list-joint.ts +44 -0
  592. package/src/detectors/list-layout.ts +39 -0
  593. package/src/detectors/list-lead-in.ts +50 -3
  594. package/src/detectors/list-parallel.ts +119 -13
  595. package/src/detectors/list-run.ts +86 -0
  596. package/src/detectors/list-sentence.ts +11 -0
  597. package/src/detectors/mark-shape.ts +12 -7
  598. package/src/detectors/name-run.ts +2 -1
  599. package/src/detectors/name-variant-two-things.ts +136 -0
  600. package/src/detectors/name-variant.ts +14 -19
  601. package/src/detectors/organisation-run.ts +26 -2
  602. package/src/detectors/orthographic-variant-open.ts +119 -0
  603. package/src/detectors/orthographic-variant.ts +82 -82
  604. package/src/detectors/over-general-claim.ts +106 -5
  605. package/src/detectors/oxford-comma.ts +68 -28
  606. package/src/detectors/particle-run-names.ts +17 -0
  607. package/src/detectors/proper-noun-density.ts +109 -0
  608. package/src/detectors/quoted-excerpt.ts +68 -0
  609. package/src/detectors/reference-entry.ts +42 -0
  610. package/src/detectors/register-neutral-shape.ts +26 -6
  611. package/src/detectors/register-set-apart.ts +124 -0
  612. package/src/detectors/register-voice.ts +63 -0
  613. package/src/detectors/register.ts +15 -0
  614. package/src/detectors/registry/closing-cliche.ts +4 -0
  615. package/src/detectors/registry/closing-exhortation.ts +4 -0
  616. package/src/detectors/registry/cold-open.ts +4 -0
  617. package/src/detectors/registry/colon-lead-in.ts +1 -1
  618. package/src/detectors/registry/concrete-evidence.ts +1 -1
  619. package/src/detectors/registry/ngram-repetition.ts +1 -1
  620. package/src/detectors/registry/proper-noun-density.ts +1 -1
  621. package/src/detectors/registry/topic-predicate-distance.ts +1 -1
  622. package/src/detectors/registry/unprompted-denial.ts +4 -0
  623. package/src/detectors/sentence-ending.ts +60 -12
  624. package/src/detectors/sentence-length.ts +26 -9
  625. package/src/detectors/sentence-load.ts +3 -6
  626. package/src/detectors/sentence-parts.ts +70 -0
  627. package/src/detectors/sentence-title.ts +14 -0
  628. package/src/detectors/signals.ts +13 -198
  629. package/src/detectors/structure-tree.ts +3 -1
  630. package/src/detectors/structure.ts +25 -13
  631. package/src/detectors/superlative-clause.ts +21 -2
  632. package/src/detectors/superlative-context.ts +99 -0
  633. package/src/detectors/superlative-scope.ts +27 -9
  634. package/src/detectors/team.ts +1 -50
  635. package/src/detectors/titled-code-citation.ts +19 -0
  636. package/src/detectors/titled-run.ts +22 -5
  637. package/src/detectors/token-shape.ts +25 -13
  638. package/src/detectors/topic-predicate-distance.ts +25 -0
  639. package/src/detectors/unknown-word-context.ts +112 -0
  640. package/src/detectors/unknown-word.ts +18 -20
  641. package/src/detectors/unprompted-denial.ts +133 -0
  642. package/src/document-sections.ts +3 -1
  643. package/src/fix-plan/all-signs.ts +35 -0
  644. package/src/fix-plan/plan.ts +50 -3
  645. package/src/fix-plan/render.ts +41 -3
  646. package/src/fix-plan/risen.ts +13 -0
  647. package/src/fix-plan/text.ts +56 -2
  648. package/src/heading-numbering.ts +44 -10
  649. package/src/html/html-site-chrome.ts +9 -2
  650. package/src/law-title.ts +38 -0
  651. package/src/name-ending-run.ts +49 -0
  652. package/src/name-title-slip.ts +59 -0
  653. package/src/name-variant-shapes.ts +58 -0
  654. package/src/name-word-use.ts +17 -0
  655. package/src/opening-passage.ts +31 -0
  656. package/src/plugin.ts +2 -0
  657. package/src/quote-gloss.ts +11 -0
  658. package/src/quoted-spelling.ts +48 -0
  659. package/src/render/semantic.ts +2 -2
  660. package/src/rule-of-three.ts +50 -0
  661. package/src/run-semantic.ts +2 -2
  662. package/src/section-levels.ts +98 -0
  663. package/src/semantic.ts +14 -0
  664. package/src/sentence-load.ts +5 -3
  665. package/src/spelling.ts +37 -7
  666. package/src/structure/cited-document-section.ts +16 -1
  667. package/src/structure/issues.ts +10 -1
  668. package/src/structure-shape/template-outline.ts +34 -0
  669. package/src/title-case-name.ts +55 -0
  670. package/src/topic-clause.ts +96 -5
  671. package/src/word-use.ts +57 -6
  672. package/dist/legal-address.d.ts +0 -2
  673. package/dist/legal-address.d.ts.map +0 -1
  674. package/dist/legal-address.js +0 -16
  675. package/dist/legal-address.js.map +0 -1
@@ -3,7 +3,20 @@ layer: L3
3
3
  status: stable
4
4
  how_to_find: sentence-ending
5
5
  word_list: polite-ending
6
- extra_word_lists: [neutral-ending, neutral-request, notice-phrase, asker-heading, licence-word]
6
+ extra_word_lists:
7
+ [
8
+ neutral-ending,
9
+ neutral-request,
10
+ neutral-wish,
11
+ notice-phrase,
12
+ asker-heading,
13
+ licence-word,
14
+ set-polite-phrase,
15
+ contact-line-opener,
16
+ declaration-particle,
17
+ takeup-opener,
18
+ quote-label,
19
+ ]
7
20
  requires: [pos]
8
21
  languages: [ja]
9
22
  severity: info
@@ -51,8 +64,8 @@ example:
51
64
  新しい料金は来月から始まります。請求書の形式も変わります。支払いの期限は月末です。古い料金は三月で終わります。
52
65
 
53
66
  not_flagged:
54
- ja: どちらの調子が正しいかは決めません。多いほうに揃っていない、少ないほうの文だけを指します。本文と箇条書きは別々に数えます。箇条書きの中の少ないほうが文書全体では多いほうなら、その文は指しません。項目や段落の頭の太字の札(「- **速く書ける。** 説明です。」の「速く書ける。」)は見出しと同じく文に数えません。免責や変更の予告を書いた段落(「…ご了承ください。」)が、2 文以上すべて文書の多いほうと違う同じ調子でそろっているときも、本文とは別の決まり文句として数えません。読み手の相談や質問を載せる節(見出しが「【相談事例等】」「ご質問内容」)の文も、尋ねた人の言葉のままなので数えません。文書の最後に掲載先が付けた利用条件の断り書き(ライセンスの名前と条件の URL を書いた短い段落)も数えません。
55
- en: Neither register is called right; only the sentences in the minority are pointed at. The body and each list are counted apart, and a sentence in a list's minority is left alone when its register is the document's majority. A bold label that opens an item or a paragraph and is followed by more text on its line is a heading, not a sentence. A paragraph of disclaimer or notice wording (…ご了承ください。) whose two or more sentences all share the register the rest of the document does not use is boilerplate in its own voice and is not counted. Nor are the sentences of a section whose heading names what a reader asked (【相談事例等】, ご質問内容), since they quote the asker in their own words. Nor is a licence notice the publisher appends at the end (a short closing paragraph that names a licence and links to its terms).
67
+ ja: どちらの調子が正しいかは決めません。多いほうに揃っていない、少ないほうの文だけを指します。本文と箇条書きは別々に数えます。箇条書きの中の少ないほうが文書全体では多いほうなら、その文は指しません。項目や段落の頭の太字の札(「- **速く書ける。** 説明です。」の「速く書ける。」)は見出しと同じく文に数えません。免責や変更の予告を書いた段落(「…ご了承ください。」)が、2 文以上すべて文書の多いほうと違う同じ調子でそろっているときも、本文とは別の決まり文句として数えません。読み手の相談や質問を載せる節(見出しが「【相談事例等】」「ご質問内容」)の文も、尋ねた人の言葉のままなので数えません。文書の最後に掲載先が付けた利用条件の断り書き(ライセンスの名前と条件の URL を書いた短い段落)も数えません。札を付けて引いた言葉(「例:」「Q:」で始まる文、「用例」だけの段落の下の段落)、「■ 調査目的」のような印付きの札の行の下の記入欄の値、〒や「電話:」の行がある問い合わせ先の段落、一つの文の中に「?」で並べて引いた問い(…一覧か?順序付きか?などです。)も数えません。数えたうえで指さないのは、丁寧な形でしか言わない挨拶(お疲れ様でした。)、相手への願い(信じてほしい。)、条件だけで問う文(…だったら?)、演説で主語を言わずに決意を言い切る文(戦争の惨禍を、二度と繰り返さない。)、次の文が「そんな」「こんな」「これだけで」で受ける場面や行いの書き出し(PDFが送れない。そんなときは…)、「!」で終わる叫び(わかるかっ!)、※で始まる行の注記、文で終わらない行の塊に前後を挟まれた表のセル(制限なし。)です。
68
+ en: Neither register is called right; only the sentences in the minority are pointed at. The body and each list are counted apart, and a sentence in a list's minority is left alone when its register is the document's majority. A bold label that opens an item or a paragraph and is followed by more text on its line is a heading, not a sentence. A paragraph of disclaimer or notice wording (…ご了承ください。) whose two or more sentences all share the register the rest of the document does not use is boilerplate in its own voice and is not counted. Nor are the sentences of a section whose heading names what a reader asked (【相談事例等】, ご質問内容), since they quote the asker in their own words. Nor is a licence notice the publisher appends at the end (a short closing paragraph that names a licence and links to its terms). Nor are words quoted under a label (a sentence opening with 例: or Q:, the paragraph under a lone 用例), the value under a marked field label (■ 調査目的), a contact block (a paragraph with a 〒 or 電話: line), or questions run together inside one sentence (…一覧か?順序付きか?などです。). Counted but never pointed at are a greeting said only politely (お疲れ様でした。), a wish to others (信じてほしい。), a question that gives only a condition (…だったら?), a speaker declaring a resolve without a subject in a speech (戦争の惨禍を、二度と繰り返さない。), a scene-setting opener the next sentence takes up with そんな, こんな or これだけで, a cry that ends in an exclamation mark (わかるかっ!), a note on a line opening with ※, and a table cell set out between runs of lines that do not end as sentences (制限なし。).
56
69
  level_meaning:
57
70
  ja: 少ないほうの調子の文が {limit} 文以下のとき、それを指摘
58
71
  en: reported when the minority register has {limit} sentences or fewer
@@ -56,8 +56,8 @@ example:
56
56
  Send the form by email. We answer every email within a day. Attach the receipt to the email.
57
57
 
58
58
  not_flagged:
59
- ja: 読みが同じでも漢字の違う語(書く・描く)、補助動詞・形式名詞と本来の使い方の書き分け(見て下さい・資料を下さい)、書き分けが意味の違いになる語(成る・なる、言う・いう。法務のジャンルでは、法令の書き方で書き分ける 時・とき、物・もの、在る・ある も)、名詞と動詞(払込み・払い込む、申出・申し出る。辞書が名詞を動詞と読んでも)、二つの語に読める漢字の書き方(行っ は 行く とも 行う とも読み、「様を」の様は さま)、語末の「ー」だけの違い(katakana-long-vowel が見ます)、鉤括弧や引用符の中(判決が法令を文をまたいで引く一重の引用符も)、行の頭のリンクで引いた外のページの題名、語の直後のふりがなの括弧の中(HTTP(えいちてぃーてぃーぴー))、会社の名前(青葉硝子㈱、株式会社の前後の名前)、chaff.yaml の names に書いた名前は見ません。「方」と「ほう」は「が」「で」の前(早いほうが)だけで比べ、人の「方」の多い所(担当の方に)は比べません。文の頭の丸括弧の印(問答の(答))、別の書き方を言う文の丸括弧の中((くもり)、(曇)とも書く。)、漢数字(三十の三)、代名詞に続けたかな(私みたような)、切られた送りがな(誂らえる)も比べません。かなの「たつ」は、時がたつにも立つにも読めるので「立つ」と比べません。複合動詞の頭(出来上る)、文の頭の接続詞(――もっとも)、意味を変えるカタカナ(品物のモノ)は、それだけの語(できる、最も、もの)と別に比べます。接続詞の「さらに、」と副詞の「更に」は同じ語として比べます。法務のジャンルでは、判決の裁判官ごとの意見(裁判官甲の反対意見は次のとおりである。)を、その意見の中だけで比べます。名詞に続けて書いたかなの名詞(全員ぶん)と慣用句の動詞(気をつける)、見立ての「みる」(〜とみられる、増加がみられる)と評価を言う「いえる」(〜とはいえない)は、同じ読みの語(文、名札を付ける、資料を見る)と別に比べます。英字は、頭の字の大文字小文字(Email と email)と、大文字だけの語(強調や略語)、大文字の名前に語尾が付いた語(関数名の SENDs)、同じ文の略語の字を示した語(CLIPER と並ぶ CLImatology)、大文字で書いた一節の中の語(免責の段落の eGAIN)、大文字で始まる語でないかけらをハイフンでつないだ名前(medical と並ぶ Medi-Cal)を書き方の違いにしません(HBase のような名前の大文字は比べます)。少ないほうが三分の一を超えるときも言いません。文学のジャンルでは既定で止めています(その時代の書き方のため)。
60
- en: The case of a word's first letter (Email, email; Long-Term, long-term) is not a spelling, nor is a word in capitals only (emphasis or an acronym), nor a name in capitals with an ending (SENDs, OPENed), nor the letters of an acronym picked out beside it (CLImatology next to CLIPER), nor a word inside a passage written in capitals (eGAIN in a disclaimer), nor a name coined from capitalised pieces that are not words (Medi-Cal beside medical). A name spelled with capitals (HBase) is still compared. In Japanese, words whose kanji and kana forms mean different things (成る and なる) are not compared, 方 and ほう are compared only before が or で (早いほうが), since elsewhere 方 is mostly the person (担当の方に), nor a label opening a sentence (the (答) of a Q&A), a bracketed spelling in a sentence that names other spellings ((くもり)、(曇)とも書く), kana たつ beside 立つ, since たつ is also time passing (経つ), a numeral (the 三 of 三十), kana written onto a pronoun (私みたような) or okurigana cut off a word (誂らえる); the head of a compound verb (出来上る), an adverb opening a sentence as a conjunction (――もっとも) and a katakana spelling that names a sense (モノ for goods) are compared apart from the word on its own (できる, 最も, もの), while the conjunction さらに、 and the adverb 更に are one word and are compared; in the legal genres each justice's separate opinion (裁判官甲の反対意見は次のとおりである。) is compared only within itself; the judging みる (〜とみられる) and いえる (〜とはいえない) are compared apart from looking and saying (資料を見る, 一概には言えない), and in the legal genres neither are 時 and とき, 物 and もの or 在る and ある, which legal drafting writes apart. A noun and a verb (払込み and 払い込む) are different words, even where the analyser reads the noun as the verb. Hyphenated words that are another word (re-sign, resign), part of an address (github.com), anything in quotation marks (single ones too, as an opinion quotes a statute over several sentences), the title of an outside page quoted by a link at a line's head, a Japanese reading in brackets right after a word (HTTP(えいちてぃーてぃーぴー)), a Japanese company name written with its form (青葉硝子㈱) and the team's names are not compared. Nothing is reported when the minority is more than a third. The literature preset turns it off, since old spelling belongs to its time. Nor is a kanji spelling that reads as two words (行っ, read as 行く or 行う; 様 before を, read さま) compared with the kana of the reading the tokenizer picked.
59
+ ja: 読みが同じでも漢字の違う語(書く・描く)、補助動詞・形式名詞と本来の使い方の書き分け(見て下さい・資料を下さい)、書き分けが意味の違いになる語(成る・なる、言う・いう。法務のジャンルでは、法令の書き方で書き分ける 時・とき、物・もの、在る・ある も)、名詞と動詞(払込み・払い込む、申出・申し出る。辞書が名詞を動詞と読んでも)、二つの語に読める漢字の書き方(行っ は 行く とも 行う とも読み、「様を」の様は さま)、語末の「ー」だけの違い(katakana-long-vowel が見ます)、鉤括弧や引用符の中(判決が法令を文をまたいで引く一重の引用符も)、行の頭のリンクで引いた外のページの題名、語の直後のふりがなの括弧の中(HTTP(えいちてぃーてぃーぴー))、会社の名前(青葉硝子㈱、株式会社の前後の名前)、施設や組織の名前(こども動物園、〜センター)、番号を付けて引いた法令の題名(愛がん動物用飼料の安全性の確保に関する法律(平成20年法律第83号))、引用のすぐ後ろの括弧の書き下し(「天子有道」(天子に道有らば))、文献一覧と文の形で書いた文献の引用、略語の元の語(Communication Access Realtime Translation (CART))、#を付けたハッシュタグ、chaff.yaml の names に書いた名前は見ません。「でもって」(以て)、「と」の後の「いたす」(議題といたします)、複合動詞の後ろの動詞(貼り付ける の 付ける)は、それだけの動詞(持つ、思いを致す、つける)と別に比べます。一語の副詞や語(ただいま、昨日来)、熟語の頭の一字の漢字(曇雨天の曇)、切られたカタカナの名前(ラオカイ のカイ)も比べません。「方」と「ほう」は「が」「で」の前(早いほうが)だけで比べ、人の「方」の多い所(担当の方に)は比べません。文の頭の丸括弧の印(問答の(答))、別の書き方を言う文の丸括弧の中((くもり)、(曇)とも書く。)、漢数字(三十の三)、代名詞に続けたかな(私みたような)、切られた送りがな(誂らえる)も比べません。かなの「たつ」は、時がたつにも立つにも読めるので「立つ」と比べません。複合動詞の頭(出来上る)、文の頭の接続詞(――もっとも)、意味を変えるカタカナ(品物のモノ)は、それだけの語(できる、最も、もの)と別に比べます。接続詞の「さらに、」と副詞の「更に」は同じ語として比べます。法務のジャンルでは、判決の裁判官ごとの意見(裁判官甲の反対意見は次のとおりである。)を、その意見の中だけで比べます。名詞に続けて書いたかなの名詞(全員ぶん)と慣用句の動詞(気をつける)、見立ての「みる」(〜とみられる、増加がみられる)と評価を言う「いえる」(〜とはいえない)は、同じ読みの語(文、名札を付ける、資料を見る)と別に比べます。英字は、頭の字の大文字小文字(Email と email)と、大文字だけの語(強調や略語)、大文字の名前に語尾が付いた語(関数名の SENDs)、名簿の大文字の名字(MICHAEL T. McCAUL)、同じ文の略語の字を示した語(CLIPER と並ぶ CLImatology)、大文字で書いた一節の中の語(免責の段落の eGAIN)、大文字で始まる語でないかけらをハイフンでつないだ名前(medical と並ぶ Medi-Cal)、大文字で始まる語を並べた名前の中のハイフン(inter-agency と並ぶ the Interagency Group)を書き方の違いにしません(HBase のような名前の大文字は比べます)。少ないほうが三分の一を超えるときも言いません。文学のジャンルでは既定で止めています(その時代の書き方のため)。
60
+ en: The case of a word's first letter (Email, email; Long-Term, long-term) is not a spelling, nor is a word in capitals only (emphasis or an acronym), nor a name in capitals with an ending (SENDs, OPENed), nor the letters of an acronym picked out beside it (CLImatology next to CLIPER), nor a word inside a passage written in capitals (eGAIN in a disclaimer), nor a name coined from capitalised pieces that are not words (Medi-Cal beside medical). A name spelled with capitals (HBase) is still compared. In Japanese, words whose kanji and kana forms mean different things (成る and なる) are not compared, 方 and ほう are compared only before が or で (早いほうが), since elsewhere 方 is mostly the person (担当の方に), nor a label opening a sentence (the (答) of a Q&A), a bracketed spelling in a sentence that names other spellings ((くもり)、(曇)とも書く), kana たつ beside 立つ, since たつ is also time passing (経つ), a numeral (the 三 of 三十), kana written onto a pronoun (私みたような) or okurigana cut off a word (誂らえる); the head of a compound verb (出来上る), an adverb opening a sentence as a conjunction (――もっとも) and a katakana spelling that names a sense (モノ for goods) are compared apart from the word on its own (できる, 最も, もの), while the conjunction さらに、 and the adverb 更に are one word and are compared; in the legal genres each justice's separate opinion (裁判官甲の反対意見は次のとおりである。) is compared only within itself; the judging みる (〜とみられる) and いえる (〜とはいえない) are compared apart from looking and saying (資料を見る, 一概には言えない), and in the legal genres neither are 時 and とき, 物 and もの or 在る and ある, which legal drafting writes apart. A noun and a verb (払込み and 払い込む) are different words, even where the analyser reads the noun as the verb. Hyphenated words that are another word (re-sign, resign), part of an address (github.com), anything in quotation marks (single ones too, as an opinion quotes a statute over several sentences), the title of an outside page quoted by a link at a line's head, an entry of a reference list and a citation written as a sentence (See Kay and King (2020), Radical Uncertainty …), the words an acronym stands for (Communication Access Realtime Translation (CART), VADER (Valence Aware Dictionary and sEntiment Reasoner)), a hashtag (#vimconf), a surname a roster sets in capitals (MICHAEL T. McCAUL), the hyphens of a capitalised name where the word is otherwise written with or without them (the Interagency Group beside inter-agency), a Japanese reading in brackets right after a word (HTTP(えいちてぃーてぃーぴー)), a Japanese company name written with its form (青葉硝子㈱) and the team's names are not compared. Nothing is reported when the minority is more than a third. The literature preset turns it off, since old spelling belongs to its time. Nor is a kanji spelling that reads as two words (行っ, read as 行く or 行う; 様 before を, read さま) compared with the kana of the reading the tokenizer picked.
61
61
  level_meaning:
62
62
  ja: 少ないほうが語の {limit}% 以下のとき指摘
63
63
  en: reported when the minority spelling is {limit}% of the word's uses or less
@@ -49,8 +49,8 @@ example:
49
49
  Of the twelve people on our team, nine had no backup of their phone photos when we asked last month.
50
50
 
51
51
  not_flagged:
52
- ja: 一つ二つの「everyone」、「everyone」だけを繰り返す文書(チームの全員)、weasel-word が言う「most people agree」「everyone knows」は言いません。英語の文書だけを見ます。短い文書は測りません。
53
- en: One or two uses, a document that only repeats "everyone" (the whole team), and "most people agree" or "everyone knows", which weasel-word reports, are not reported. Short documents are not measured.
52
+ ja: 一つ二つの「everyone」、「everyone」だけを繰り返す文書(チームの全員)、weasel-word が言う「most people agree」「everyone knows」は言いません。誰のことかが決まっている「everyone」「anyone who」「nobody」は数えません(同じ文か前の文がチームや家族を名指す、everyone here、nobody caught it のように過去の一度の出来事を言う)。英語の文書だけを見ます。短い文書は測りません。
53
+ en: One or two uses, a document that only repeats "everyone" (the whole team), and "most people agree" or "everyone knows", which weasel-word reports, are not reported. "Everyone", "anyone who" and "nobody" are not counted when the text says who they are (a team or a family named in the same or the previous sentence, "everyone here", or a past event such as "nobody caught it"). Short documents are not measured.
54
54
  level_meaning:
55
55
  ja: 1000 語あたり {limit} 個まで
56
56
  en: up to {limit} sweeping claims per 1000 words
@@ -5,7 +5,19 @@ how_to_find: oxford-comma
5
5
  languages: [en]
6
6
  # The list, its items and its conjunction are read on tokens; without them there is nothing to judge.
7
7
  requires: [pos]
8
- extra_word_lists: [participle-word, example-marker, pair-opener, sequence-opener, enclosing-unit]
8
+ extra_word_lists:
9
+ [
10
+ participle-word,
11
+ example-marker,
12
+ pair-opener,
13
+ sequence-opener,
14
+ enclosing-unit,
15
+ connective-opener,
16
+ clause-conjunction,
17
+ indefinite-article,
18
+ elision-mark,
19
+ open-list-end,
20
+ ]
9
21
  severity: info
10
22
 
11
23
  name:
@@ -40,8 +52,8 @@ example:
40
52
  We sell apples, pears, and plums. We ship to homes, offices, and schools. We accept cash, cards, and vouchers.
41
53
 
42
54
  not_flagged:
43
- ja: カンマを打つかどうかは決めません。半々に分かれた文書では、どちらが少ないとも言えないので指しません。郵便番号で終わる住所のあとの and / or(Leeds LS1 4AB, or email)は、住所の読点のあとなので並びとして数えません。最後の読点のあとに前後を空けたダッシュがある and / or(Washington, DC – The Cybersecurity and Infrastructure Security Agency)も、読点はダッシュの前の日付行のものなので数えません。読点のあとの否定(more correct, not cleaner or more elegant)と、順番の語で始まる導入(First, outside a block, …)も並びではありません。主語と述語のあいだに読点で挟んだ例の句(X, such as Y, are excluded and are not…)も並びの項目に数えません。and / or の直前で読点に挟まれ、中に and / or を持つ例の句(gases, such as ozone and carbon dioxide, and the amount)のあとの読点は、句を閉じる読点なので数えません。番号を付けた法典の区分のあとの名前(Title 44, Public Printing and Documents)と、前の項目を限定する句(any other agency or office, in accordance with law or as directed)の中の and / or も数えません。
44
- en: Whether to use the comma is not decided. A document split evenly has no minority and is not reported. An and / or right after a postal address closed by its postcode ("Leeds LS1 4AB, or email us") follows the address's commas and is not counted as a list, and neither is one after a spaced dash that follows the last comma (a dateline such as "Washington, DC – The Cybersecurity and Infrastructure Security Agency"). Nor is a contrast after a comma ("more correct, not cleaner or more elegant") or an introduction opened by a sequence word ("First, outside a block, …"), and an example phrase set off by commas between a subject and its predicate ("X, such as Y, are excluded and are not…") is not counted as an item. A comma that closes an example phrase holding its own and / or just before the and ("gases, such as ozone and carbon dioxide, and the amount") closes the aside and is not counted. Nor is an and / or inside the name after a numbered division of a code ("Title 44, Public Printing and Documents") or inside a phrase that qualifies the item before it ("any other agency or office, in accordance with law or as directed").
55
+ ja: カンマを打つかどうかは決めません。半々に分かれた文書では、どちらが少ないとも言えないので指しません。郵便番号で終わる住所のあとの and / or(Leeds LS1 4AB, or email)は、住所の読点のあとなので並びとして数えません。最後の読点のあとに前後を空けたダッシュがある and / or(Washington, DC – The Cybersecurity and Infrastructure Security Agency)も、読点はダッシュの前の日付行のものなので数えません。読点のあとの否定(more correct, not cleaner or more elegant)と、順番の語で始まる導入(First, outside a block, …)も並びではありません。主語と述語のあいだに読点で挟んだ例の句(X, such as Y, are excluded and are not…)も並びの項目に数えません。and / or の直前で読点に挟まれ、中に and / or を持つ例の句(gases, such as ozone and carbon dioxide, and the amount)のあとの読点は、句を閉じる読点なので数えません。番号を付けた法典の区分のあとの名前(Title 44, Public Printing and Documents)と、前の項目を限定する句(any other agency or office, in accordance with law or as directed)の中の and / or も数えません。but で始まる節(If you need help, but it’s not a priority, add it and bring it up)、文頭のつなぎの語(However,)、不定冠詞と形容詞だけの語(A simple, minimalist palette / Neat, a flexible and lightweight grid)、目的語を後ろに残した前置詞(impose conditions upon, certain transfers / on or before May 1)は並びの項目ではありません。並びがその先も続くなら(and so forth まで続く並びも)、途中の項目の中の and / or は最後の継ぎ目ではありません(counseling and financial literacy, commercial conversions, and support)。読点なしで同じ接続詞を重ねた並び(questions and issues and use cases)と、省略の印(... や * * *)を含む引用の中の並びも数えません。
56
+ en: Whether to use the comma is not decided. A document split evenly has no minority and is not reported. An and / or right after a postal address closed by its postcode ("Leeds LS1 4AB, or email us") follows the address's commas and is not counted as a list, and neither is one after a spaced dash that follows the last comma (a dateline such as "Washington, DC – The Cybersecurity and Infrastructure Security Agency"). Nor is a contrast after a comma ("more correct, not cleaner or more elegant") or an introduction opened by a sequence word ("First, outside a block, …"), and an example phrase set off by commas between a subject and its predicate ("X, such as Y, are excluded and are not…") is not counted as an item. A comma that closes an example phrase holding its own and / or just before the and ("gases, such as ozone and carbon dioxide, and the amount") closes the aside and is not counted. Nor is an and / or inside the name after a numbered division of a code ("Title 44, Public Printing and Documents") or inside a phrase that qualifies the item before it ("any other agency or office, in accordance with law or as directed"). A clause opened by but ("If you need help, but it’s not a priority, add it and bring it up"), a word tying the sentence to the last one ("However,"), an indefinite article with only adjectives ("A simple, minimalist palette" / "Neat, a flexible and lightweight grid") and a preposition left waiting for its object ("impose conditions upon, certain transfers" / "on or before May 1") are not items. When the list goes on past an and / or, including to "and so forth", that and / or is inside an item, not the last joint ("counseling and financial literacy, commercial conversions, and support"). A run that repeats the conjunction without commas ("questions and issues and use cases") and a list inside a quotation that marks an omission (... or * * *) are not counted either.
45
57
  level_meaning:
46
58
  ja: 少ないほうの打ち方が {limit} 箇所以下のとき指摘
47
59
  en: reported when the minority style appears {limit} times or fewer
@@ -3,6 +3,8 @@ layer: L3
3
3
  status: stable
4
4
  how_to_find: proper-noun-density
5
5
  requires: [pos]
6
+ # The months, weekdays and era names a reader already knows are not counted (lexicon everyday-name).
7
+ extra_word_lists: [everyday-name]
6
8
  # chaff.yaml の names に並べた名前は、何語に割れても 1 つと数える。名前そのものは数える(読み手が知らないことは変わらない)。
7
9
  severity: info
8
10
 
@@ -22,11 +24,12 @@ how_to_fix:
22
24
  ja: 2 度目からは「その製品」「そのチーム」のように受けてください。初出で何者かを一言添えると、知らない人も読めます。
23
25
  en: After first use, refer back to it. One phrase saying what it is lets a stranger keep reading.
24
26
 
25
- # 英語は 1000 語あたり。英語の人の書いた文書(コーパスと Project Gutenberg の小説・随筆)で測ると、名前の多さの分布の
26
- # 95 パーセンタイルあたりに normal を置く。測り方とその値は PR に残した(数字はここに書かない)。
27
+ # 英語は 1000 語あたり、日本語は 1000 字あたり、名前の数で。判定済みのコーパス(isamu/chaff-corpus)で測ると、人の書いた文書の
28
+ # 上の方は名前が中身の文書(当局の書簡、旅程の記事、会議録)で、どれも誤検出と判定された。normal はそれらの上に、strict は
29
+ # 分布の 95 パーセンタイルあたりに置く。測り方とその値は PR に残した(数字はここに書かない)。
27
30
  levels:
28
- ja: { strict: 20, normal: 40, relaxed: 80 }
29
- en: { strict: 150, normal: 200, relaxed: 260 }
31
+ ja: { strict: 20, normal: 55, relaxed: 80 }
32
+ en: { strict: 130, normal: 190, relaxed: 260 }
30
33
 
31
34
  use_for: [blog, business, technical, legal, docs, academic, literature, speech]
32
35
  off_for:
@@ -35,7 +38,7 @@ off_for:
35
38
  academic: "Science writes in the passive, hedges its claims on purpose (may, suggest) and cites numbers as its evidence."
36
39
  literature: "Length, rhythm, repetition and register are the author's choices in literature, and dialogue mixes styles. Only what one work can hold itself to runs: consistent spacing and commas, and numbering without gaps."
37
40
  speech: "A speech opens with greetings and closes with thanks: that is its form, not padding."
38
- business/press-release: "A release names the agency, the people quoted, the mission and the place: that is its news, not a crowd of names to thin out. Every English release in the corpus (GSA, NASA, NOAA) is over the limit."
41
+ business/press-release: "A release names the agency, the people quoted, the mission and the place: that is its news, not a crowd of names to thin out."
39
42
 
40
43
  group: readability
41
44
  summary:
@@ -56,14 +59,18 @@ example:
56
59
  Alice Moreno and Bob Tanaka from Contoso met Carol Diaz from Fabrikam in Seattle, then flew with Dave Okafor from Northwind to Boston to see Erin Walsh at Tailspin and Frank Liu at Litware.
57
60
  In Chicago, Grace Kim of Proseware and Henry Park of Wingtip joined Ivan Petrov of Adatum, and Julia Rossi of Contoso brought Kevin Shah of Fabrikam.
58
61
  From Denver, Laura Chen of Northwind and Mark Evans of Tailspin called Nina Alvarez of Litware, Oscar Grant of Proseware and Paula Novak of Wingtip.
62
+ On Friday, Quinn Baker of Adatum flew from Denver to Austin with Rosa Mendes of Northwind, Sam Ortiz of Contoso and Tara Singh of Fabrikam.
63
+ That evening, Uma Reddy of Litware and Victor Hale of Wingtip met Wendy Cho of Proseware and Xavier Ruiz of Tailspin in Austin.
59
64
  after: |
60
65
  Two of our sales team met three customers on the West Coast, then flew to Boston to meet two more.
61
66
  In Chicago, three partners joined them, and our account lead brought a fourth.
62
67
  From Denver, two of the team called the remaining customers.
68
+ On Friday, four of them flew on to the last customer.
69
+ That evening, four more customers joined them.
63
70
 
64
71
  not_flagged:
65
- ja: chaff.yaml の names に書いた名前は、何語に分かれても 1 つと数えます。短い文書(日本語 500 字、英語 200 語より短いもの)は測りません。
66
- en: A name listed under names in chaff.yaml counts as one, however many words it has. Short documents (under 200 words) are not measured.
72
+ ja: 名前は語の数でなく名前の数で数えます。続けて書いた名前の語(Federal Reserve System、赤堀 政明)、すぐ後ろの括弧の略称((OCC))、引用符で囲んだ題名は 1 つです。chaff.yaml の names に書いた名前も、何語に分かれても 1 つです。文の形をしていない行(レターヘッド、出席者の名簿、署名、題名の並び)と、月・曜日・元号は数えません。短い文書(日本語 500 字、英語 200 語より短いもの)は測りません。
73
+ en: A name counts once, not once per word. Name words written together (Federal Reserve System), a short form in brackets right after a name ((OCC)), a quoted title, and a name listed under names in chaff.yaml each count as one. Lines that are not sentences (a letterhead, a list of attendees, a signature, a list of titles) and the months, weekdays and era names are not counted. Short documents (under 200 words) are not measured.
67
74
  level_meaning:
68
75
  ja: 1000 字あたり固有名詞 {limit} 個まで
69
76
  en: up to {limit} proper nouns per 1000 words
@@ -22,7 +22,7 @@ how_to_fix:
22
22
 
23
23
  levels: { strict: 50, normal: 70, relaxed: 90 }
24
24
 
25
- use_for: [technical/readme, blog, legal, docs, academic, literature, speech]
25
+ use_for: [technical/readme, blog, business, legal, docs, academic, literature, speech]
26
26
  off_for:
27
27
  legal: "Legal drafting repeats its terms and its sentence heads on purpose, puts the actor in the passive (shall be deemed), and joins long noun compounds (個人情報取扱事業者). This rule would only flag the form."
28
28
  docs: "A help page repeats its heading in its first line (To upload a file, ...) and states no claims to back up."
@@ -122,8 +122,8 @@ example:
122
122
  - No review
123
123
 
124
124
  not_flagged:
125
- ja: 箇条書きが 3 つより少ない文書は見ません。ビジネス文書と仕様書(technical/spec)のジャンルでは見ません。
126
- en: Documents with fewer than three lists are not checked. Business and specification (technical/spec) genres do not run this rule.
125
+ ja: 箇条書きが 3 つより少ない文書は見ません。5 つより少なければ、1 つで割合が大きく動くので、全部が 3 項目のときだけ指摘します。すぐ下の行が「など」で始まる箇条書きは、書いた 3 つのほかにもあると言っているので、3 項目とは数えません。仕様書(technical/spec)のジャンルでは見ません。文の中に並べた 3 つの語(「速く、安く、確実に」)は数えません。人の文書のほうが多く書くからです。
126
+ en: "Documents with fewer than three lists are not checked. With fewer than five, one list moves the share a long way, so only a document whose every list has three items is reported. A list followed by a line opening with etc. or and so on says there are more than the three written, and is not counted as three. Specification (technical/spec) genres do not run this rule. Three words listed inside a sentence (fast, cheap and reliable) are not counted, since human documents write them more often."
127
127
  level_meaning:
128
128
  ja: 3 項目の箇条書きの割合 {limit}% まで
129
129
  en: up to {limit}% of lists with exactly three items
@@ -137,8 +137,8 @@ example:
137
137
  New versions are on the same page.
138
138
 
139
139
  not_flagged:
140
- ja: 中身のある節が 5 より少ない文書は見ません(min_sections で変えられます)。ビジネス文書と仕様書(technical/spec)のジャンルでは見ません。
141
- en: Documents with fewer than 5 sections are not checked (min_sections changes it). Business and specification (technical/spec) genres do not run this rule.
140
+ ja: 中身のある節が 5 より少ない文書は見ません(min_sections で変えられます)。節を一つずつ数えて揃っていても、読み手が並べて比べる節でも揃っていなければ指摘しません。比べるのは、小見出しを含めた長さでの節どうしと、本文の無いまとめ見出し(よかったところ・気になったところ)の下に続く小見出しどうしです。見出しの節の半分以上が聞き手の問い(語彙表 interviewer-mark の印、――)で始まるインタビューは見ません。節ごとに問い一つと答えがあり、長さが揃うのは形式のためです。ビジネス文書と仕様書(technical/spec)のジャンルでは見ません。
141
+ en: Documents with fewer than 5 sections are not checked (min_sections changes it). Sections that are even when counted one by one are reported only if they are also even where a reader compares them. A reader compares the top-level sections with their subsections, and a run of subsections under headings with no text of their own (Pros, Cons). An interview, where at least half of the headed sections open with the interviewer's question (a mark of the interviewer-mark lexicon, such as Q:), is not checked. Each section there is one question and its answer, so even lengths are its form. Business and specification (technical/spec) genres do not run this rule.
142
142
  level_meaning:
143
143
  ja: 節の長さのばらつきが {limit}% 未満なら指摘
144
144
  en: reported when section length varies by less than {limit}%
@@ -3,6 +3,7 @@ layer: L3
3
3
  status: stable
4
4
  how_to_find: topic-predicate-distance
5
5
  requires: [pos]
6
+ extra_word_lists: [topic-clause-close, statute-article-opener]
6
7
  languages: [ja]
7
8
  severity: info
8
9
 
@@ -44,8 +45,8 @@ example:
44
45
  来週は、新しい担当者の紹介、先月から続く予算の見直し、春の本社移転の準備、秋の採用計画の確認、年末の懇親会の段取りを話し合います。そのため定例会議は二時間に延長します。
45
46
 
46
47
  not_flagged:
47
- ja: 主題(名詞+は)の無い文、鉤括弧で引いたものの中、上限までの距離は見ません。主題の述語が先の節で閉じる文(「この計画は簡単ではありませんが、…」「〜であって、…」、後ろの節に別の主語がある「〜ではなく、」「〜であるため、」、読点を挟まない「〜は〜で、」「〜であるならば、」「〜にあるところ、」「〜ており、」、受け身で伝える引用「〜だと言われているが」)は、その節の終わりまでを数えます。時や場面を言う「は」(今夜は、当日は、〜ときは)の後ろに別の主題があれば、その主題から数えます。英語の文書には使いません。
48
- en: Sentences with no topic (noun + は), quotations in 「」, and distances up to the limit are not counted. When the topic gets its own predicate in an earlier clause (〜ではありませんが, 〜であって; 〜ではなく, 〜であるため, 〜は〜で with no comma between, 〜であるならば, 〜にあるところ or 〜ており followed by a clause with its own subject; a passive report 〜だと言われているが), the count stops at that clause's end. When a は that sets the time or the case (今夜は, 当日は, 〜ときは) is followed by another topic, the count starts from that topic. Not used on English documents.
48
+ ja: 主題(名詞+は)の無い文、鉤括弧で引いたものの中、上限までの距離は見ません。主題の述語が先の節で閉じる文(「この計画は簡単ではありませんが、…」「〜であって、…」、後ろの節に別の主語がある「〜ではなく、」「〜であるため、」、読点を挟まない「〜は〜で、」「〜であるならば、」「〜にあるところ、」「〜ており、」、受け身で伝える引用「〜だと言われているが」、主題と「〜ますが、」「〜ましたが、」の間に別の主語が無く、その後ろが別の主語(〜が)の節を経て新しい主題に移る文、主題からそこまでに別の主語が無い「〜ことから、」「〜つつ、」「〜としても、」「〜こととし、」(語は語彙表 topic-clause-close)、述語の後ろに丸数字の番号(③)が来て一行に詰まった箇条の次の項目が始まるところ)は、その節の終わりまでを数えます。後ろの節の主語には「〜のほとんどは」も数えます。時や場面を言う「は」(今夜は、当日は、〜ときは)の後ろに別の主題があれば、その主題から数えます。法令でも契約でもない文書が条文をそのまま載せた文(「第7条 …」、形は語彙表 statute-article-opener)は、書き手が直せる文ではないので数えません。英語の文書には使いません。
49
+ en: Sentences with no topic (noun + は), quotations in 「」, and distances up to the limit are not counted. When the topic gets its own predicate in an earlier clause (〜ではありませんが, 〜であって; 〜ではなく, 〜であるため, 〜は〜で with no comma between, 〜であるならば, 〜にあるところ or 〜ており followed by a clause with its own subject; a passive report 〜だと言われているが; 〜ますが or 〜ましたが with no other subject between the topic and it, followed by a clause with a subject of its own (〜が) and then a new topic; 〜ことから, 〜つつ, 〜としても or 〜こととし with no other subject between the topic and it, from the topic-clause-close word list; a circled number (③) after a predicate, where a list run into one line starts its next item), the count stops at that clause's end. A later clause's subject may be a part, as in 〜のほとんどは. When a は that sets the time or the case (今夜は, 当日は, 〜ときは) is followed by another topic, the count starts from that topic. An article of a statute that a document of another kind quotes as it stands (第7条 …, the forms in the statute-article-opener word list) is not the writer's sentence and is not counted. Not used on English documents.
49
50
  level_meaning:
50
51
  ja: 主題から述語まで {limit} 字まで
51
52
  en: up to {limit} characters between the topic and the predicate
@@ -33,6 +33,8 @@ extra_word_lists:
33
33
  abbreviation-mention,
34
34
  case-party-joiner,
35
35
  citation-author-joiner,
36
+ text-message-verb,
37
+ product-name,
36
38
  ]
37
39
  uses: [pos]
38
40
  severity: info
@@ -58,6 +60,10 @@ levels: { strict: 1, normal: 3, relaxed: 6 }
58
60
  # 技術文書の読み手は、分野の略語を知っている。既定の数では group の文書の過半に出たので、測って上げた(spec §21.1)。
59
61
  by_genre:
60
62
  technical: { strict: 3, normal: 5, relaxed: 8 }
63
+ # 業務文書と講演と FAQ は、名前や通じる略語を数えなくなってから judged corpus で測り直して下げた。上げたままだと、説明のない略語の正しい指摘を落とす。
64
+ business: { strict: 1, normal: 2, relaxed: 5 }
65
+ speech: { strict: 1, normal: 2, relaxed: 5 }
66
+ docs/faq: { strict: 1, normal: 1, relaxed: 3 }
61
67
 
62
68
  use_for: [business, technical, legal, docs, academic, literature, speech]
63
69
  off_for:
@@ -81,8 +87,8 @@ example:
81
87
  after: Our key goal indicator (KGI) this term is to reach product-market fit (PMF).
82
88
 
83
89
  not_flagged:
84
- ja: 誰でも知っている略語(URL、PDF など)と、前後の括弧で説明した略語、会社の名前の中の英字(㈱ADEKA、CO.,LTD.)は指しません。ひな形の名前の置き場所(OOOO、XX 月)と、外のページへのリンクを並べた一覧の題名の中の略語も指しません(題名の略語は数には入れます)。大文字の違うだけの書き方で説明した略語(TCoP と TCOP)、略語を話題にする文で語に書き出した略語(略語の DOB … date of birth)、一覧で語のすぐ下にその語を名指すリンクを入れ子にした語(- GPL の下の GNU General Public License)も指しません。判例の引用の中の当事者と裁判所の名前(Ashwander v. TVA, 297 U.S. 288、MCI Telecomms. Corp. v. AT&T、(SDNY 1952))、引用の中の行政機関の事件番号(NOV/CFA 01-01)も指しません(引用の略語は数には入れます)。判決の頭の MR. JUSTICE も指しません。括弧の中で略語に「or」で別の呼び名を添えたもの(Department of Health and Human Services (HHS or the Department))、ハイフンで繋いだ字まで名前と揃うもの(Agency for Health (ARPA-H))は説明したと読み、メールアドレスの中の英字(OASH-RFI@hhs.gov)は略語と読みません。文書の中に書いた ABNF の文法の規則の名前と値(CRLF、%x0D)、等級の並び(A と AA)、番号で引く官報や判例集(80 FR 66128、2022 WL 4447293)、日付の付いた識別子の前の種類(WD WD-ABC1-20200101)、PO Box の PO も指しません。文献を引いて始まる注(1. See L. Summers (2015), "…," IMF Economic Review)の中の略語は、引いた文献の題名や誌名の書き方なので指しません(数には入れます)。
85
- en: Common acronyms (URL, PDF), acronyms spelled out in brackets next to them, and the letters of a company name (㈱ADEKA, CO.,LTD.) are not reported. Neither are a template's placeholders (OOOO, XX 月) or an acronym in the title of a page in a list of links (it still counts towards the limit). Nor are an acronym explained under another capitalisation (TCoP, then TCOP), one a sentence about the abbreviation writes out (the abbreviation DOB … date of birth), or a term in a list whose nested link names it (- GPL above GNU General Public License). Nor are the parties and courts of a case citation (Ashwander v. TVA, 297 U.S. 288; MCI Telecomms. Corp. v. AT&T; (SDNY 1952)), an agency's docket number in a citation (NOV/CFA 01-01); a citation's acronyms still count towards the limit. Nor is the MR. JUSTICE that opens a line of an opinion. An acronym given another name after "or" in its parenthesis (Department of Health and Human Services (HHS or the Department)) or spelled out with its hyphened letter (Agency for Health (ARPA-H)) counts as expanded, and the letters of an email address (OASH-RFI@hhs.gov) are not an acronym. Nor are the rule names and values of an ABNF grammar in the text (CRLF, %x0D), the rungs of a grade ladder (A and AA), a register or reporter cited by number (80 FR 66128, 2022 WL 4447293), the kind written before a dated identifier (WD WD-ABC1-20200101), or the PO of a PO Box. A note that opens with a citation (1. See L. Summers (2015), "…," IMF Economic Review) is written in the cited work's words, and its acronyms are not reported (they still count towards the limit).
90
+ ja: 誰でも知っている略語(URL、PDF など)と、前後の括弧で説明した略語、会社の名前の中の英字(㈱ADEKA、CO.,LTD.)は指しません。ひな形の名前の置き場所(OOOO、XX 月)と、外のページへのリンクを並べた一覧の題名の中の略語も指しません(題名の略語は数には入れます)。大文字の違うだけの書き方で説明した略語(TCoP と TCOP)、略語を話題にする文で語に書き出した略語(略語の DOB … date of birth)、一覧で語のすぐ下にその語を名指すリンクを入れ子にした語(- GPL の下の GNU General Public License)も指しません。判例の引用の中の当事者と裁判所の名前(Ashwander v. TVA, 297 U.S. 288、MCI Telecomms. Corp. v. AT&T、(SDNY 1952))、引用の中の行政機関の事件番号(NOV/CFA 01-01)も指しません(引用の略語は数には入れます)。判決の頭の MR. JUSTICE も指しません。括弧の中で略語に「or」で別の呼び名を添えたもの(Department of Health and Human Services (HHS or the Department))、ハイフンで繋いだ字まで名前と揃うもの(Agency for Health (ARPA-H))は説明したと読み、メールアドレスの中の英字(OASH-RFI@hhs.gov)は略語と読みません。文書の中に書いた ABNF の文法の規則の名前と値(CRLF、%x0D)、等級の並び(A と AA)、番号で引く官報や判例集(80 FR 66128、2022 WL 4447293)、日付の付いた識別子の前の種類(WD WD-ABC1-20200101)、PO Box の PO も指しません。文献を引いて始まる注(1. See L. Summers (2015), "…," IMF Economic Review)の中の略語は、引いた文献の題名や誌名の書き方なので指しません(数には入れます)。角括弧の見出しで始まる文献の項目([FETCH] WHATWG, …)の中の略語も同じです。2 つ以上の番号で引く続き物の名前(BCP 78 と BCP 14、DR 4339 と DR 4340)、同じ文の前のほうで名前を書き出した略語(U.S. Small Business Administration … SBA)、肩書きの後ろの判事の姓(Lord HOLT、Mr. Justice BULLER)、商標の印の付いた名前(Acrobat DC®)、条で引く法令集(44 USC. 3502、15 USCA § 709)と、編と区分で引く法令集(21 CFR subpart J)も指しません。ショートメッセージで送るキーワード(texting GNPCGS to 333111)、名前のまま書いた製品の版(Adobe Acrobat Reader DC)、頭だけ大文字の語に繋いだ名前の中の大文字(NITE SAFE-Lite)も指しません。同じ文の前のほうで、同じ名詞の前に小文字で書き出した略語(incident response plan … IR plans)と、括弧の中で小文字の語を添えた略語の名前の頭の頭文字が揃うもの(… Partnerships to Stimulate Cybersecurity Education (RAMPS program))は説明したと読みます。貼り付けたチャットの発言(<jinxer-wm> FIRING …)の中の略語は、発言した人やボットの言葉なので指しません(数には入れます)。
91
+ en: Common acronyms (URL, PDF), acronyms spelled out in brackets next to them, and the letters of a company name (㈱ADEKA, CO.,LTD.) are not reported. Neither are a template's placeholders (OOOO, XX 月) or an acronym in the title of a page in a list of links (it still counts towards the limit). Nor are an acronym explained under another capitalisation (TCoP, then TCOP), one a sentence about the abbreviation writes out (the abbreviation DOB … date of birth), or a term in a list whose nested link names it (- GPL above GNU General Public License). Nor are the parties and courts of a case citation (Ashwander v. TVA, 297 U.S. 288; MCI Telecomms. Corp. v. AT&T; (SDNY 1952)), an agency's docket number in a citation (NOV/CFA 01-01); a citation's acronyms still count towards the limit. Nor is the MR. JUSTICE that opens a line of an opinion. An acronym given another name after "or" in its parenthesis (Department of Health and Human Services (HHS or the Department)) or spelled out with its hyphened letter (Agency for Health (ARPA-H)) counts as expanded, and the letters of an email address (OASH-RFI@hhs.gov) are not an acronym. Nor are the rule names and values of an ABNF grammar in the text (CRLF, %x0D), the rungs of a grade ladder (A and AA), a register or reporter cited by number (80 FR 66128, 2022 WL 4447293), the kind written before a dated identifier (WD WD-ABC1-20200101), or the PO of a PO Box. A note that opens with a citation (1. See L. Summers (2015), "…," IMF Economic Review) is written in the cited work's words, and its acronyms are not reported (they still count towards the limit); so is an entry of a reference list keyed by a bracketed label ([FETCH] WHATWG, …). Nor are capitals the document cites by two or more numbers (BCP 78 and BCP 14, DR 4339 and DR 4340), an acronym whose name the same sentence writes out before it (U.S. Small Business Administration … SBA), a judge's surname after his title (Lord HOLT, Mr. Justice BULLER), a name marked as a trademark (Acrobat DC®), a code cited by section (44 USC. 3502, 15 USCA § 709), or a code cited by title and division (21 CFR subpart J). Nor are a keyword to send by text message (texting GNPCGS to 333111), a product's edition written with the product's name (Adobe Acrobat Reader DC), or capitals joined to a capitalised word in a name (NITE SAFE-Lite). An acronym the same sentence writes out in lower case before the same noun (incident response plan … IR plans), and one bracketed with a word in lower case after a name whose head gives its letters (… Partnerships to Stimulate Cybersecurity Education (RAMPS program)), count as expanded. An acronym in a pasted chat line (<jinxer-wm> FIRING …) is the speaker's or the bot's words, and is not reported (it still counts towards the limit).
86
92
  level_meaning:
87
93
  ja: 説明のない略語が {limit} 種類あれば指摘。文書が自分で略語を {limit} 個展開していれば、1 つの抜けから指摘
88
94
  en: reported once {limit} different acronyms go unexplained, or from the first one when the document itself spells out {limit} others
@@ -47,8 +47,8 @@ example:
47
47
  The report is attached to this email.
48
48
 
49
49
  not_flagged:
50
- ja: 大文字を含む語、四字より短い語、コード・URL・メールアドレスの中の語、強調や角括弧で頭の字を分けた語の残り(**G**lobally の lobally、[e]xpressions の xpressions)、文書で二度以上使う語、一字違いの辞書の語が無い語、chaff.yaml の names に並べた語、語彙表 known-misspelling が別に言う語は指しません。同じ文書がコード(`tidyq check` やコードの区画)にも書いた語も、その文書の名前なので指しません。検索の語の後に * を付けた形(vaccin*)も、語ではないので指しません。
51
- en: Words with a capital letter, words shorter than four letters, words in code, URLs and email addresses, the rest of a word whose first letter is set apart by emphasis or brackets (lobally in **G**lobally, xpressions in [e]xpressions), words used twice or more in the document, words with no dictionary word one letter away, words listed under names in chaff.yaml, and the misspellings known-misspelling reports are not reported. Nor is a word the document also writes in code (`tidyq check`, a code block), since it is a name the document uses. Nor is a search stem ending in a wildcard (vaccin*).
50
+ ja: 大文字を含む語、四字より短い語、コード・URL・メールアドレスの中の語、強調や角括弧で頭の字を分けた語の残り(**G**lobally の lobally、[e]xpressions の xpressions)、文書で二度以上使う語、一字違いの辞書の語が無い語、chaff.yaml の names に並べた語、語彙表 known-misspelling が別に言う語は指しません。同じ文書がコード(`tidyq check` やコードの区画)にも書いた語も、その文書の名前なので指しません。検索の語の後に * を付けた形(vaccin*)と、それと同じ行に並べた検索の語も、語ではないので指しません。文書がほかの語尾で使う語(rightsize と rightsized)、引用符や括弧の中に一語だけ書いた語("mailto"、(jchaplin))、文書が URL にも書いた語、他の言語の語の隣の語(bête noire)、角括弧や括弧の字を続けた語(handl[e]、neuro(a)typicality)、= の前の変数の名(nboot=2,000)、四字以上の辞書の語二つを続けた語(crowdwork)、薬の国際一般名の語幹で終わる語(paroxetine の -oxetine)も指しません。
51
+ en: Words with a capital letter, words shorter than four letters, words in code, URLs and email addresses, the rest of a word whose first letter is set apart by emphasis or brackets (lobally in **G**lobally, xpressions in [e]xpressions), words used twice or more in the document, words with no dictionary word one letter away, words listed under names in chaff.yaml, and the misspellings known-misspelling reports are not reported. Nor is a word the document also writes in code (`tidyq check`, a code block), since it is a name the document uses. Nor is a search stem ending in a wildcard (vaccin*), or any search term on the same line. Nor is a word the document uses with another ending (rightsize and rightsized), a word alone in quotes or brackets ("mailto", (jchaplin)), a word the document also writes in a URL, a word beside a word of another language (bête noire), a word joined to a bracketed letter (handl[e], neuro(a)typicality), a variable name before = (nboot=2,000), two dictionary words of four letters or more written as one (crowdwork), or a word ending in the stem of a drug's international name (-oxetine in paroxetine).
52
52
  rewrite:
53
53
  depth: light
54
54
  en:
@@ -0,0 +1,88 @@
1
+ id: unprompted-denial
2
+ layer: L2
3
+ status: stable
4
+ how_to_find: unprompted-denial
5
+ word_list: unprompted-denial
6
+ # 対比の枠(contrast-framing が数える文)は、打ち消しの隣に言い直しがあるので数えない。
7
+ extra_word_lists: [contrast-frame, contrast-lead, contrast-turn]
8
+ uses: [pos]
9
+ severity: info
10
+
11
+ name:
12
+ ja: 誰も言っていない前提の打ち消しが多い
13
+ en: Too many denials of a premise nobody stated
14
+
15
+ why:
16
+ ja: 「〜の話ではありません」「〜の材料になりません」で終わる文は、読み手が持っていない思い込みを打ち消します。言いたいこと(何であるか)は書かれないまま残ります。1 つ 2 つなら論の運びですが、重なると生成文によくある書き方に見えます。
17
+ en: '"This isn''t about tooling." "That''s not the point." Such a sentence knocks down a belief the reader never held, and what the thing is goes unsaid. One or two move an argument along; piled up, they read like generated text.'
18
+
19
+ message:
20
+ ja: 「{matched}」など、誰も言っていない前提を打ち消して終わる文が {share}% あります({limit}% まで)
21
+ en: '"{matched}" and other denials of a premise nobody stated: {share}% of sentences (limit {limit}%)'
22
+
23
+ how_to_fix:
24
+ ja: 打ち消しをやめて、それが何であるかを直接書いてください(「パラメータは、モデルの中にある重みの数です」)。
25
+ en: Drop the denial and say what the thing is ("Parameters are the number of weights inside the model.").
26
+
27
+ # 文書の文のうち、前提を打ち消して終わる文の割合(%)。そういう文が三つ以上ある文書だけを測る。
28
+ levels: { strict: 2, normal: 3, relaxed: 5 }
29
+
30
+ use_for: [technical/readme, blog, business, legal, docs, academic, literature, speech]
31
+ off_for:
32
+ legal: "Legal drafting repeats its terms and its sentence heads on purpose, puts the actor in the passive (shall be deemed), and joins long noun compounds (個人情報取扱事業者). This rule would only flag the form."
33
+ docs: "A help page repeats its heading in its first line (To upload a file, ...) and states no claims to back up."
34
+ literature: "Length, rhythm, repetition and register are the author's choices in literature, and dialogue mixes styles. Only what one work can hold itself to runs: consistent spacing and commas, and numbering without gaps."
35
+ speech: "A speech opens with greetings and closes with thanks: that is its form, not padding."
36
+
37
+ group: ai-tells
38
+ summary:
39
+ ja: 「〜の話ではありません」のように、誰も言っていない前提を打ち消して終わる文
40
+ en: Sentences that deny a premise nobody stated ("This isn't about tooling.")
41
+ example:
42
+ ja:
43
+ pad: true
44
+ before: |
45
+ パラメータは、学習の設定の話ではありません。数字が大きいことは、賢さの保証になりません。ここで言いたいのは、道具選びの話ではありません。
46
+ after: |
47
+ パラメータは、モデルの中にある重みの数です。数字が大きいモデルほど、計算に時間がかかります。
48
+ en:
49
+ pad: true
50
+ before: |
51
+ This isn't about tooling. That's not the point of the review. It's not a question of budget either.
52
+ after: |
53
+ The review found two steps that nobody owned. We gave each one an owner.
54
+
55
+ not_flagged:
56
+ ja: 一つ二つの打ち消し、理由を添えた打ち消し(「〜のため、対象ではありません」)、前の文の問いや「〜と思うかもしれません」に答える打ち消し、「だけではない」「すべきではない」「簡単ではない」、言い直しが隣にある対比の枠(contrast-framing が数えます)は指しません。短い文書は測りません。
57
+ en: One or two denials, a denial with its reason ("because ..."), a denial answering the previous sentence's question or "You might think ...", a negated fact ("It's not ready."), and a denial answered by its restatement (contrast-framing counts those) are not reported. Short documents are not measured.
58
+ level_meaning:
59
+ ja: 前提を打ち消して終わる文が {limit}% まで
60
+ en: up to {limit}% of sentences deny a premise nobody stated
61
+ rewrite:
62
+ depth: light
63
+ ja:
64
+ direction: 打ち消しを消し、それが何であるかを普通の文で書いてください。打ち消す相手が誰かの実際の誤解なら、その誤解を書いたうえで一度だけ打ち消してください。
65
+ pairs:
66
+ - before: パラメータは、学習時の設定の話ではありません。
67
+ after: パラメータは、モデルの中にある重みの数です。
68
+ - before: 全員が正解する問題は、モデルを分ける材料になりません。
69
+ after: モデルを分けるのは、正解した人数が割れる問題です。
70
+ keep:
71
+ - 言いたいこと(それが何であるか)
72
+ - 誰かが実際に言ったことへの反論
73
+ avoid:
74
+ - 打ち消しを「〜というより」に替えて、同じ打ち消しを残す
75
+ - 書き手が言っていない主張を足す
76
+ en:
77
+ direction: Delete the denial and say what the thing is in a plain sentence. If the denied belief is one someone actually holds, name it and answer it once.
78
+ pairs:
79
+ - before: This isn't about tooling.
80
+ after: This is about who reviews each change.
81
+ - before: That's not the point.
82
+ after: The point is that the test runs on every commit.
83
+ keep:
84
+ - what the thing is
85
+ - an answer to something someone actually said
86
+ avoid:
87
+ - swapping the denial for "less X than Y", which keeps it
88
+ - adding a claim the writer did not make
@@ -24,6 +24,12 @@ how_to_fix:
24
24
  en: Name the comparison. "The fastest of the three options we tried."
25
25
 
26
26
  levels: { strict: 1, normal: 2, relaxed: 4 }
27
+ # An English tech blog states its thesis once: "The best way to X is Y" is the one bare claim in the post. Measured on the
28
+ # judged chaff-corpus, a limit of one brings back judged-correct findings only in English blog/tech; in Japanese blog/tech
29
+ # and in every other genre it brings back false ones.
30
+ by_genre:
31
+ blog/tech:
32
+ en: { strict: 1, normal: 1, relaxed: 2 }
27
33
 
28
34
  use_for: [business, blog, legal, docs, academic, literature, speech]
29
35
  off_for:
@@ -46,8 +52,8 @@ example:
46
52
  after: Our new product processes orders a fifth faster than the previous model.
47
53
 
48
54
  not_flagged:
49
- ja: 「当社比」「〜の中で」「〜のほうが」のように、比べる相手や範囲が同じ文にあれば指しません。「SES との最大の違い」のように、最上級のすぐ前に相手があるときも同じです。「国内最大」「業界最速」のように名詞がじかに付いた最上級と、「日本で最も」のように名前と「で」が前にある最上級は、範囲を言っているので指しません。「バグを検出できる唯一のルール」のように、動詞で終わる節が最上級のすぐ前にあって範囲を決めているときも同じです。「」や引用符で引いた言葉の中の最上級は、書き手の主張ではないので指しません。「最大化する」のように接尾辞が付いて別の語になったものも指しません。「芭蕉の最も有名な句」のように名前と「の」がすぐ前にある最上級、「最高裁判所」「最も近い駅」のような決まった言い方、「最大5億ドル」のように数のある文の最上級も指しません。
50
- en: A superlative with its comparison or scope in the same sentence ("in our range", "than last year", "the fastest in the industry") is not reported, nor is one limited by a clause ("the best we have measured"), nor one inside quotation marks, which are someone else's words, nor one inside a set phrase ("even the best", "in the best case").
55
+ ja: 「当社比」「〜の中で」「〜のほうが」のように、比べる相手や範囲が同じ文にあれば指しません。「SES との最大の違い」のように、最上級のすぐ前に相手があるときも同じです。「国内最大」「業界最速」のように名詞がじかに付いた最上級と、「日本で最も」のように名前と「で」が前にある最上級は、範囲を言っているので指しません。「バグを検出できる唯一のルール」のように、動詞で終わる節が最上級のすぐ前にあって範囲を決めているときも同じです。「」や引用符で引いた言葉の中の最上級は、書き手の主張ではないので指しません。「最大化する」のように接尾辞が付いて別の語になったものも指しません。「芭蕉の最も有名な句」のように名前と「の」がすぐ前にある最上級、「最高裁判所」「最も近い駅」のような決まった言い方、「最大5億ドル」のように数のある文の最上級も指しません。「世界で唯一の」のように場や分野の名詞と「で」が前にある最上級、「俺にとって最高の日」のように誰にとってなのかが同じ節にある最上級、「最高の規律が求められる」「最高の栄誉が与えられるべき」のように求めるもの・あるべき姿として述べた最上級、「最も重要なことは」のように話の順を示す言い方、問いの文(?で終わる文)の最上級も指しません。
56
+ en: A superlative with its comparison or scope in the same sentence ("in our range", "than last year", "the fastest in the industry") is not reported, nor is one limited by a clause ("the best we have measured"), nor one inside quotation marks, which are someone else's words, nor one inside a set phrase ("even the best", "in the best case", "make the most of", "the most recent", "the most common"), nor one in a question. A superlative that is sought or chosen rather than claimed ("to achieve the best results", "before deciding the best way", "start with the most important tasks") is not reported, nor one whose predicate points at a member of a set ("the best plan is the one you keep"), nor one whose noun names a part of a whole ("the most important part", "the most important role"), nor one whose set follows its noun ("the best thing about this event", "the most common form of debunking", "the most important tool for creating the culture").
51
57
  level_meaning:
52
58
  ja: 比べる相手のない最上級が {limit} 箇所あれば指摘
53
59
  en: reported once there are {limit} such claims
@@ -61,7 +61,8 @@ documents of the genre; it does not say who wrote the text.
61
61
  ## Checks that read meaning
62
62
 
63
63
  A few checks need a reader: does the proposal state its risks, does the conclusion only restate the body, does a
64
- number claiming an effect have a source. chaff never runs a model in a plain check. `npx chaffjs test <file|dir>`
64
+ number claiming an effect have a source, does the opening start from a generic problem instead of who did what
65
+ (`generic-opening`). chaff never runs a model in a plain check. `npx chaffjs test <file|dir>`
65
66
  narrows the candidates by machine and sends only those passages to an AI (Anthropic or OpenAI, set by
66
67
  `ai_backend` in `chaff.yaml`; it needs an API key). Run it with `--dry-run` first: it shows what would be sent and
67
68
  calls nothing. Ask the person before a real run; the passages leave the machine.
@@ -176,9 +177,11 @@ Use this section when asked to make a text sound less generated: 「AIっぽさ
176
177
  書き直して」, "make this sound human", "this reads like AI wrote it".
177
178
 
178
179
  chaff marks the shapes common in generated text (group "Signs of generated text" in `npx chaffjs rules`: `ai-tell`,
179
- `contrast-framing`, `stock-transition`, `announcing-opener`, `colon-lead-in` (Japanese only), `over-general-claim` (English only),
180
- `q-fragment-answer` (English
181
- only), `assistant-residue`, and the signals
180
+ `contrast-framing`, `stock-transition`, `announcing-opener`, `colon-lead-in`, `over-general-claim` (English only),
181
+ `q-fragment-answer` (English only), `assistant-residue`, `email-stock-courtesy` (English emails: stacked "I hope this email finds
182
+ you well"-type courtesies), `closing-exhortation` (a closing that cheers the reader on: 「ぜひ〜してみてください」,
183
+ "You've got this"), `cold-open` (an opening that piles a bare wish, a quoted echo of the previous sentence and a teaser),
184
+ `unprompted-denial` (sentences that deny a premise nobody stated: 「〜の話ではありません」, "This isn't about tooling."), and the signals
182
185
  `ai-generated-composite` reads, among others). Most of them do not run in `technical/spec` or in the legal, docs, literature and
183
186
  speech genres; `assistant-residue` (words left from a pasted chat reply) runs in almost every genre. `npx chaffjs rules --json`
184
187
  says per rule and genre. None of them says the text was generated. chaff never rewrites; the rewriting is yours.
@@ -203,6 +206,33 @@ says. Apply each rule's direction at its spots. Where a fix needs a specific the
203
206
  ask. Save the result under the name the plan gives, run its check commands, and report the mode and the checks'
204
207
  output. The mode steps below say the rest.
205
208
 
209
+ **When the request is to remove all of it** (「AI臭さを全部消して」「AIっぽさを完全になくして」, "remove every AI tell"),
210
+ run the plan with `--all-ai-signs` and loop until it says stop:
211
+
212
+ 1. `npx chaffjs fix-plan <file> --all-ai-signs --json` (with the genre's `--genre`). It runs every AI-likeness rule,
213
+ also those the genre turns off or leaves out, and adds `aiScore` (the `ai-score` level and its signs), `aiRules`
214
+ (the AI-likeness rules with findings) and `stop` (when to stop). `npx chaffjs facts <file> --json` is the inventory
215
+ of facts to keep.
216
+ 2. Rewrite in the mode the plan recommends (Full for a blog post or an essay, or when `ai-generated-composite` fires).
217
+ Fix every spot of every rule in `rules`, by its direction: the AI-likeness ones and the others, so the rewrite
218
+ leaves nothing worse.
219
+ 3. Check the tells only a reader can see. `npx chaffjs test <rewritten> --checks ai-tells --dry-run` lists the
220
+ questions and the passages each would be asked about: invented specifics, an abstract opening, a denial of what
221
+ nobody said, a moral at the end, a benefits list that mirrors the problems, a claim restated, inflated significance,
222
+ generic content, a request recast as the reader's benefit, the same thing renamed. Run it without `--dry-run` only
223
+ with an API key and the person's yes (the passages leave the machine). Otherwise read the passages yourself against
224
+ each question. A specific that looks invented (in the original or in your draft) is a question for the writer:
225
+ keep it marked, 「[105cm]くらい」 / "[on a five-hour flight]", and ask them to confirm or cut it; never replace it
226
+ with another invented one. Reread your own draft for wording that changes a claim; `compare` sees facts, not claims.
227
+ 4. Run the plan's checks: `npx chaffjs fix-plan <rewritten> --all-ai-signs --before <file> --json` and
228
+ `npx chaffjs compare <file> <rewritten>` (`--distinct --allow-dropped heading --allow-added heading` after a Full
229
+ rewrite).
230
+ 5. Repeat from 2 until every line of `stop` holds: `aiRules` is empty; `aiScore.level` is `low`, or the document is too
231
+ short to score; `since.risen` is empty (no rule has more findings than in the original); `compare` passes; none of
232
+ the ai-tells questions fits. Three passes at most. List what is left after the third with the reason (a placeholder
233
+ only the writer can fill, a word that is right in context).
234
+ 6. Report a table from chaff's output, before and after: `aiRules`, the score, `since.risen`, `compare`.
235
+
206
236
  Pick one of three modes and say which.
207
237
 
208
238
  | Mode | Changes | Pick it when |
@@ -256,6 +286,8 @@ repeats the body. The writer usually wants the structure changed, not only the s
256
286
  - merge thin sections and split overloaded ones, so a section is a real unit, not one heading per paragraph;
257
287
  - cut sections that only restate, the closing まとめ / "Conclusion" included;
258
288
  - drop a heading that wraps a single paragraph;
289
+ - in a proposal or report, name sections after their content rather than the textbook outline (Summary, Current
290
+ Situation, Proposed Solution, Expected Benefits, Costs, Risks and Mitigation): `ai-structure` counts that outline;
259
291
  - turn a list-of-points section into a narrative with one through-line;
260
292
  - no symmetric three-point sections unless the content really has three parts;
261
293
  - move the writer's concrete experience to where it carries the argument;
@@ -297,7 +329,7 @@ repeats the body. The writer usually wants the structure changed, not only the s
297
329
  once.
298
330
  6. **Stop** when all of these hold, or after two full passes, whichever comes first:
299
331
  - `ai-generated-composite` does not fire;
300
- - the density rules (`bold-density`, `bold-emphasis`, `contrast-framing`, `stock-transition`, `colon-lead-in`) are under their limits;
332
+ - the density rules (`bold-density`, `bold-emphasis`, `stock-transition`, `colon-lead-in`) and the share of contrast frames (`contrast-framing`) are under their limits;
301
333
  - `chaff outline <old> <new>` shows the new structure score under the plan's limit, with no ✗ left on the measures
302
334
  the plan listed as targets;
303
335
  - `compare` is clean, or every exclusion has a stated reason.
@@ -322,7 +354,7 @@ In every mode:
322
354
  - Never add facts, people, numbers or causes the original does not have.
323
355
  - Keep a domain term a word rule trips when it is right in context.
324
356
  - Prefer a direct statement over a negated contrast. Say who does what.
325
- - Never loop just to silence a warning; two passes at most, and list what is left with the reason.
357
+ - Never loop just to silence a warning; two passes at most (three with `--all-ai-signs`), and list what is left with the reason.
326
358
  - Per genre: in a tech article, replace metaphors ("静かに壊れる", "silently fails") with what happens and keep steps
327
359
  and commands as lists; in a business document, put the conclusion and who does what first and keep tables and
328
360
  figures; in an essay, fold punchlines back in and replace big words ("真理", "new possibilities") with the scene.
@@ -0,0 +1,57 @@
1
+ // The words an acronym is spelled from, beside it in brackets: Communication Access Realtime Translation (CART), VADER (Valence
2
+ // Aware Dictionary and sEntiment Reasoner). The expansion is the name the acronym stands for and keeps the name's spelling, and
3
+ // its picked-out capitals (sEntiment) are the acronym's letters, not another spelling of the word. Pure.
4
+
5
+ import type { Span } from "./plugin.ts";
6
+
7
+ const BRACKET = /\(([^()]*)\)/gu;
8
+ const LATIN_WORD = /\p{Script=Latin}[\p{Script=Latin}\d]*(?:-[\p{Script=Latin}\d]+)*/gu;
9
+ const ACRONYM = /^\p{Lu}{2,10}$/u;
10
+ /** The word before an expansion in brackets: an acronym in any case (VADER, axle), letters only. */
11
+ const ACRONYM_ANY_CASE = /^\p{L}{2,10}$/u;
12
+ const CAPITAL = /\p{Lu}/gu;
13
+ /** Small words an expansion may hold besides the words that give letters (Valence Aware Dictionary and sEntiment Reasoner). */
14
+ const MAX_EXTRA_WORDS = 3;
15
+
16
+ type Word = { readonly text: string; readonly start: number; readonly end: number };
17
+
18
+ const wordsIn = (text: string, offset: number): Word[] =>
19
+ [...text.matchAll(LATIN_WORD)].map((match) => ({ text: match[0], start: offset + match.index, end: offset + match.index + match[0].length }));
20
+
21
+ const capitalsOf = (words: readonly Word[]): string => words.map((word) => (word.text.match(CAPITAL) ?? []).join("")).join("");
22
+
23
+ const sortedLetters = (letters: string): string => [...letters.toUpperCase()].toSorted((left, right) => left.localeCompare(right)).join("");
24
+
25
+ const spells = (words: readonly Word[], acronym: string): boolean => sortedLetters(capitalsOf(words)) === sortedLetters(acronym);
26
+
27
+ const spanOf = (words: readonly Word[]): Span[] => {
28
+ const [first, last] = [words[0], words.at(-1)];
29
+ return first === undefined || last === undefined ? [] : [{ start: first.start, end: last.end }];
30
+ };
31
+
32
+ /** The words right before an acronym in brackets whose capitals spell it: the shortest such run ending at the bracket. */
33
+ const expansionBefore = (text: string, open: number, acronym: string): Span[] => {
34
+ const before = wordsIn(text.slice(0, open), 0);
35
+ const tail = text.slice(before.at(-1)?.end ?? 0, open);
36
+ if (before.length === 0 || tail.trim() !== "") return [];
37
+ const longest = Math.min(before.length, acronym.length + MAX_EXTRA_WORDS);
38
+ const length = Array.from({ length: longest }, (_, extra) => extra + 1).find((size) => spells(before.slice(-size), acronym));
39
+ return length === undefined ? [] : spanOf(before.slice(-length));
40
+ };
41
+
42
+ /** The words in brackets right after an acronym whose capitals spell it (VADER (Valence Aware … Reasoner), axle (… eXperience ELicitation)). */
43
+ const expansionInside = (text: string, open: number, content: string): Span[] => {
44
+ const acronym = text.slice(0, open).trimEnd().split(/\s/u).at(-1) ?? "";
45
+ const inside = wordsIn(content, open + 1);
46
+ if (!ACRONYM_ANY_CASE.test(acronym) || inside.length < 2 || !spells(inside, acronym)) return [];
47
+ return spanOf(inside);
48
+ };
49
+
50
+ /** Where the expansions of the acronyms in text lie, both ways round: the expansion before the acronym in brackets, or in brackets after it. */
51
+ export const acronymExpansionSpans = (text: string): Span[] =>
52
+ [...text.matchAll(BRACKET)].flatMap((match) => {
53
+ const content = match[1] ?? "";
54
+ const trimmed = content.trim();
55
+ if (ACRONYM.test(trimmed)) return expansionBefore(text, match.index, trimmed);
56
+ return expansionInside(text, match.index, content);
57
+ });