chaffjs 0.48.0 → 0.50.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 (446) hide show
  1. package/README.ja.md +1 -0
  2. package/README.md +1 -0
  3. package/dist/announced-count.d.ts.map +1 -1
  4. package/dist/announced-count.js +18 -1
  5. package/dist/announced-count.js.map +1 -1
  6. package/dist/announced-list.d.ts.map +1 -1
  7. package/dist/announced-list.js +6 -1
  8. package/dist/announced-list.js.map +1 -1
  9. package/dist/cli.d.ts.map +1 -1
  10. package/dist/cli.js +4 -2
  11. package/dist/cli.js.map +1 -1
  12. package/dist/composite-signals.d.ts +3 -1
  13. package/dist/composite-signals.d.ts.map +1 -1
  14. package/dist/composite-signals.js +7 -0
  15. package/dist/composite-signals.js.map +1 -1
  16. package/dist/detectors/acronym-name.d.ts +2 -2
  17. package/dist/detectors/acronym-name.d.ts.map +1 -1
  18. package/dist/detectors/acronym-name.js +3 -3
  19. package/dist/detectors/acronym-name.js.map +1 -1
  20. package/dist/detectors/agentless-passive.d.ts.map +1 -1
  21. package/dist/detectors/agentless-passive.js +39 -4
  22. package/dist/detectors/agentless-passive.js.map +1 -1
  23. package/dist/detectors/agreement-slip.d.ts +2 -0
  24. package/dist/detectors/agreement-slip.d.ts.map +1 -1
  25. package/dist/detectors/agreement-slip.js +10 -3
  26. package/dist/detectors/agreement-slip.js.map +1 -1
  27. package/dist/detectors/amount-scale.js +2 -2
  28. package/dist/detectors/amount-scale.js.map +1 -1
  29. package/dist/detectors/char-shape.d.ts.map +1 -1
  30. package/dist/detectors/char-shape.js +11 -4
  31. package/dist/detectors/char-shape.js.map +1 -1
  32. package/dist/detectors/chat-citation.d.ts +2 -6
  33. package/dist/detectors/chat-citation.d.ts.map +1 -1
  34. package/dist/detectors/chat-citation.js +4 -2
  35. package/dist/detectors/chat-citation.js.map +1 -1
  36. package/dist/detectors/chat-mark-extent.d.ts +11 -0
  37. package/dist/detectors/chat-mark-extent.d.ts.map +1 -0
  38. package/dist/detectors/chat-mark-extent.js +53 -0
  39. package/dist/detectors/chat-mark-extent.js.map +1 -0
  40. package/dist/detectors/concrete-evidence-density.js +2 -2
  41. package/dist/detectors/concrete-evidence.d.ts +7 -0
  42. package/dist/detectors/concrete-evidence.d.ts.map +1 -1
  43. package/dist/detectors/concrete-evidence.js +20 -0
  44. package/dist/detectors/concrete-evidence.js.map +1 -1
  45. package/dist/detectors/conjugated-entry.d.ts +2 -2
  46. package/dist/detectors/conjugated-entry.d.ts.map +1 -1
  47. package/dist/detectors/conjugated-entry.js +3 -5
  48. package/dist/detectors/conjugated-entry.js.map +1 -1
  49. package/dist/detectors/contrast-frame.d.ts.map +1 -1
  50. package/dist/detectors/contrast-frame.js +34 -1
  51. package/dist/detectors/contrast-frame.js.map +1 -1
  52. package/dist/detectors/currency-notation.js +2 -2
  53. package/dist/detectors/currency-notation.js.map +1 -1
  54. package/dist/detectors/defined-term-form.d.ts.map +1 -1
  55. package/dist/detectors/defined-term-form.js +15 -3
  56. package/dist/detectors/defined-term-form.js.map +1 -1
  57. package/dist/detectors/definition-use.d.ts.map +1 -1
  58. package/dist/detectors/definition-use.js +5 -1
  59. package/dist/detectors/definition-use.js.map +1 -1
  60. package/dist/detectors/ellipsis.js +2 -2
  61. package/dist/detectors/ellipsis.js.map +1 -1
  62. package/dist/detectors/email-letter.d.ts +2 -0
  63. package/dist/detectors/email-letter.d.ts.map +1 -1
  64. package/dist/detectors/email-letter.js +1 -1
  65. package/dist/detectors/email-letter.js.map +1 -1
  66. package/dist/detectors/en-shape.d.ts +1 -0
  67. package/dist/detectors/en-shape.d.ts.map +1 -1
  68. package/dist/detectors/en-shape.js +41 -9
  69. package/dist/detectors/en-shape.js.map +1 -1
  70. package/dist/detectors/gram-furniture.d.ts +1 -0
  71. package/dist/detectors/gram-furniture.d.ts.map +1 -1
  72. package/dist/detectors/gram-furniture.js +6 -0
  73. package/dist/detectors/gram-furniture.js.map +1 -1
  74. package/dist/detectors/gram-repetition.d.ts.map +1 -1
  75. package/dist/detectors/gram-repetition.js +8 -2
  76. package/dist/detectors/gram-repetition.js.map +1 -1
  77. package/dist/detectors/heading-case.d.ts +1 -0
  78. package/dist/detectors/heading-case.d.ts.map +1 -1
  79. package/dist/detectors/heading-case.js +10 -3
  80. package/dist/detectors/heading-case.js.map +1 -1
  81. package/dist/detectors/kanji-name-edge.d.ts +10 -0
  82. package/dist/detectors/kanji-name-edge.d.ts.map +1 -1
  83. package/dist/detectors/kanji-name-edge.js +23 -0
  84. package/dist/detectors/kanji-name-edge.js.map +1 -1
  85. package/dist/detectors/kutoten-consistency.d.ts.map +1 -1
  86. package/dist/detectors/kutoten-consistency.js +27 -6
  87. package/dist/detectors/kutoten-consistency.js.map +1 -1
  88. package/dist/detectors/lexicon-match.d.ts +2 -0
  89. package/dist/detectors/lexicon-match.d.ts.map +1 -1
  90. package/dist/detectors/lexicon-match.js +14 -3
  91. package/dist/detectors/lexicon-match.js.map +1 -1
  92. package/dist/detectors/lexicon.d.ts.map +1 -1
  93. package/dist/detectors/lexicon.js +8 -1
  94. package/dist/detectors/lexicon.js.map +1 -1
  95. package/dist/detectors/list-item-clause.d.ts +4 -0
  96. package/dist/detectors/list-item-clause.d.ts.map +1 -0
  97. package/dist/detectors/list-item-clause.js +8 -0
  98. package/dist/detectors/list-item-clause.js.map +1 -0
  99. package/dist/detectors/list-parallel.d.ts.map +1 -1
  100. package/dist/detectors/list-parallel.js +6 -2
  101. package/dist/detectors/list-parallel.js.map +1 -1
  102. package/dist/detectors/list-sentence.d.ts +2 -0
  103. package/dist/detectors/list-sentence.d.ts.map +1 -1
  104. package/dist/detectors/list-sentence.js.map +1 -1
  105. package/dist/detectors/mark-shape.d.ts.map +1 -1
  106. package/dist/detectors/mark-shape.js +28 -8
  107. package/dist/detectors/mark-shape.js.map +1 -1
  108. package/dist/detectors/missing-final-period.d.ts.map +1 -1
  109. package/dist/detectors/missing-final-period.js +10 -1
  110. package/dist/detectors/missing-final-period.js.map +1 -1
  111. package/dist/detectors/name-variant-two-things.d.ts +1 -1
  112. package/dist/detectors/name-variant-two-things.d.ts.map +1 -1
  113. package/dist/detectors/name-variant-two-things.js +16 -4
  114. package/dist/detectors/name-variant-two-things.js.map +1 -1
  115. package/dist/detectors/nominalization.d.ts.map +1 -1
  116. package/dist/detectors/nominalization.js +11 -4
  117. package/dist/detectors/nominalization.js.map +1 -1
  118. package/dist/detectors/ordinal-suffix.js +2 -2
  119. package/dist/detectors/ordinal-suffix.js.map +1 -1
  120. package/dist/detectors/orthographic-variant.d.ts.map +1 -1
  121. package/dist/detectors/orthographic-variant.js +30 -6
  122. package/dist/detectors/orthographic-variant.js.map +1 -1
  123. package/dist/detectors/orthography.d.ts.map +1 -1
  124. package/dist/detectors/orthography.js +13 -7
  125. package/dist/detectors/orthography.js.map +1 -1
  126. package/dist/detectors/oxford-comma.d.ts.map +1 -1
  127. package/dist/detectors/oxford-comma.js +15 -1
  128. package/dist/detectors/oxford-comma.js.map +1 -1
  129. package/dist/detectors/paragraph-run.js +2 -2
  130. package/dist/detectors/paragraph-run.js.map +1 -1
  131. package/dist/detectors/phone-number-variant.d.ts.map +1 -1
  132. package/dist/detectors/phone-number-variant.js +2 -1
  133. package/dist/detectors/phone-number-variant.js.map +1 -1
  134. package/dist/detectors/phrase-context.d.ts +6 -0
  135. package/dist/detectors/phrase-context.d.ts.map +1 -0
  136. package/dist/detectors/phrase-context.js +12 -0
  137. package/dist/detectors/phrase-context.js.map +1 -0
  138. package/dist/detectors/phrase-match-all.d.ts +3 -0
  139. package/dist/detectors/phrase-match-all.d.ts.map +1 -0
  140. package/dist/detectors/phrase-match-all.js +47 -0
  141. package/dist/detectors/phrase-match-all.js.map +1 -0
  142. package/dist/detectors/phrase-match.d.ts +2 -1
  143. package/dist/detectors/phrase-match.d.ts.map +1 -1
  144. package/dist/detectors/phrase-match.js +25 -6
  145. package/dist/detectors/phrase-match.js.map +1 -1
  146. package/dist/detectors/placeholder-text.d.ts.map +1 -1
  147. package/dist/detectors/placeholder-text.js +14 -2
  148. package/dist/detectors/placeholder-text.js.map +1 -1
  149. package/dist/detectors/proper-noun-density.d.ts.map +1 -1
  150. package/dist/detectors/proper-noun-density.js +10 -6
  151. package/dist/detectors/proper-noun-density.js.map +1 -1
  152. package/dist/detectors/quote-around.d.ts +3 -0
  153. package/dist/detectors/quote-around.d.ts.map +1 -1
  154. package/dist/detectors/quote-around.js +2 -0
  155. package/dist/detectors/quote-around.js.map +1 -1
  156. package/dist/detectors/range-notation.js +2 -2
  157. package/dist/detectors/range-notation.js.map +1 -1
  158. package/dist/detectors/reference-entry.d.ts.map +1 -1
  159. package/dist/detectors/reference-entry.js +35 -5
  160. package/dist/detectors/reference-entry.js.map +1 -1
  161. package/dist/detectors/register-set-apart.d.ts +1 -1
  162. package/dist/detectors/register-set-apart.js +4 -4
  163. package/dist/detectors/register-set-apart.js.map +1 -1
  164. package/dist/detectors/register-voice.d.ts +5 -0
  165. package/dist/detectors/register-voice.d.ts.map +1 -1
  166. package/dist/detectors/register-voice.js +17 -0
  167. package/dist/detectors/register-voice.js.map +1 -1
  168. package/dist/detectors/registry/phrase-match-all.d.ts +3 -0
  169. package/dist/detectors/registry/phrase-match-all.d.ts.map +1 -0
  170. package/dist/detectors/registry/phrase-match-all.js +3 -0
  171. package/dist/detectors/registry/phrase-match-all.js.map +1 -0
  172. package/dist/detectors/requirement-lists.d.ts.map +1 -1
  173. package/dist/detectors/requirement-lists.js +2 -0
  174. package/dist/detectors/requirement-lists.js.map +1 -1
  175. package/dist/detectors/sentence-counts.d.ts.map +1 -1
  176. package/dist/detectors/sentence-counts.js +7 -4
  177. package/dist/detectors/sentence-counts.js.map +1 -1
  178. package/dist/detectors/sentence-ending.d.ts +2 -2
  179. package/dist/detectors/sentence-ending.d.ts.map +1 -1
  180. package/dist/detectors/sentence-ending.js +3 -1
  181. package/dist/detectors/sentence-ending.js.map +1 -1
  182. package/dist/detectors/sentence-length.d.ts.map +1 -1
  183. package/dist/detectors/sentence-length.js +12 -4
  184. package/dist/detectors/sentence-length.js.map +1 -1
  185. package/dist/detectors/sentence-parts.d.ts +6 -3
  186. package/dist/detectors/sentence-parts.d.ts.map +1 -1
  187. package/dist/detectors/sentence-parts.js +15 -7
  188. package/dist/detectors/sentence-parts.js.map +1 -1
  189. package/dist/detectors/signals.d.ts.map +1 -1
  190. package/dist/detectors/signals.js +6 -1
  191. package/dist/detectors/signals.js.map +1 -1
  192. package/dist/detectors/speaker-turns.d.ts +4 -0
  193. package/dist/detectors/speaker-turns.d.ts.map +1 -0
  194. package/dist/detectors/speaker-turns.js +28 -0
  195. package/dist/detectors/speaker-turns.js.map +1 -0
  196. package/dist/detectors/team.d.ts.map +1 -1
  197. package/dist/detectors/team.js +42 -9
  198. package/dist/detectors/team.js.map +1 -1
  199. package/dist/detectors/unit-spacing.js +2 -2
  200. package/dist/detectors/unit-spacing.js.map +1 -1
  201. package/dist/detectors/vague-deadline.d.ts.map +1 -1
  202. package/dist/detectors/vague-deadline.js +2 -1
  203. package/dist/detectors/vague-deadline.js.map +1 -1
  204. package/dist/levels.d.ts +14 -0
  205. package/dist/levels.d.ts.map +1 -1
  206. package/dist/levels.js +8 -3
  207. package/dist/levels.js.map +1 -1
  208. package/dist/name-variant-shapes.d.ts +10 -0
  209. package/dist/name-variant-shapes.d.ts.map +1 -1
  210. package/dist/name-variant-shapes.js +24 -0
  211. package/dist/name-variant-shapes.js.map +1 -1
  212. package/dist/phone-numbers.d.ts +5 -2
  213. package/dist/phone-numbers.d.ts.map +1 -1
  214. package/dist/phone-numbers.js +17 -3
  215. package/dist/phone-numbers.js.map +1 -1
  216. package/dist/plugin.d.ts +2 -0
  217. package/dist/plugin.d.ts.map +1 -1
  218. package/dist/render/explain.d.ts +2 -0
  219. package/dist/render/explain.d.ts.map +1 -1
  220. package/dist/render/explain.js +38 -14
  221. package/dist/render/explain.js.map +1 -1
  222. package/dist/render/options.d.ts.map +1 -1
  223. package/dist/render/options.js +11 -6
  224. package/dist/render/options.js.map +1 -1
  225. package/dist/render/text.d.ts.map +1 -1
  226. package/dist/render/text.js +14 -4
  227. package/dist/render/text.js.map +1 -1
  228. package/dist/run.d.ts +3 -0
  229. package/dist/run.d.ts.map +1 -1
  230. package/dist/run.js +20 -13
  231. package/dist/run.js.map +1 -1
  232. package/dist/set-phrase-particles.js +2 -2
  233. package/dist/set-phrase-particles.js.map +1 -1
  234. package/dist/structure/deadline-after-event.d.ts +1 -1
  235. package/dist/structure/deadline-after-event.d.ts.map +1 -1
  236. package/dist/structure/deadline-after-event.js +36 -9
  237. package/dist/structure/deadline-after-event.js.map +1 -1
  238. package/dist/structure/definition-use.d.ts +10 -1
  239. package/dist/structure/definition-use.d.ts.map +1 -1
  240. package/dist/structure/definition-use.js +4 -4
  241. package/dist/structure/definition-use.js.map +1 -1
  242. package/dist/structure/leg-times.d.ts.map +1 -1
  243. package/dist/structure/leg-times.js +10 -2
  244. package/dist/structure/leg-times.js.map +1 -1
  245. package/dist/structure/requirement-lists.d.ts +3 -0
  246. package/dist/structure/requirement-lists.d.ts.map +1 -1
  247. package/dist/structure/requirement-lists.js +8 -2
  248. package/dist/structure/requirement-lists.js.map +1 -1
  249. package/dist/structure/time-marks.d.ts +10 -0
  250. package/dist/structure/time-marks.d.ts.map +1 -1
  251. package/dist/structure/time-marks.js +21 -0
  252. package/dist/structure/time-marks.js.map +1 -1
  253. package/dist/topic-clause.d.ts.map +1 -1
  254. package/dist/topic-clause.js +12 -5
  255. package/dist/topic-clause.js.map +1 -1
  256. package/package.json +3 -3
  257. package/rules/abstract-length.yaml +1 -1
  258. package/rules/adverb-overuse.yaml +1 -1
  259. package/rules/agentless-passive.yaml +3 -3
  260. package/rules/agreement-slip.yaml +5 -4
  261. package/rules/ai-generated-composite.yaml +3 -3
  262. package/rules/ai-structure.yaml +1 -1
  263. package/rules/all-caps-shouting.yaml +1 -1
  264. package/rules/announced-count-mismatch.yaml +2 -2
  265. package/rules/announcing-opener.yaml +1 -1
  266. package/rules/arrival-before-departure.yaml +1 -1
  267. package/rules/article-sound.yaml +1 -1
  268. package/rules/baito-keigo.yaml +1 -1
  269. package/rules/bold-density.yaml +1 -1
  270. package/rules/bold-emphasis.yaml +1 -1
  271. package/rules/bold-label-list.yaml +1 -1
  272. package/rules/bracket-width-consistency.yaml +1 -1
  273. package/rules/chat-citation-residue.yaml +1 -1
  274. package/rules/citation-style-mix.yaml +1 -1
  275. package/rules/clause-chain.yaml +1 -1
  276. package/rules/cliche.yaml +4 -4
  277. package/rules/closing-cliche.yaml +1 -1
  278. package/rules/closing-exhortation.yaml +1 -1
  279. package/rules/cold-open.yaml +1 -1
  280. package/rules/colloquial-opener.yaml +1 -1
  281. package/rules/concrete-evidence-density.yaml +3 -3
  282. package/rules/contraction-consistency.yaml +1 -1
  283. package/rules/cross-doc-term-variant.yaml +2 -2
  284. package/rules/cushion-phrase-density.yaml +1 -1
  285. package/rules/deadline-after-event.yaml +2 -2
  286. package/rules/demonstrative-opener-run.yaml +1 -1
  287. package/rules/double-keigo.yaml +1 -1
  288. package/rules/double-negative.yaml +11 -2
  289. package/rules/doubled-nado.yaml +1 -1
  290. package/rules/email-stock-courtesy.yaml +1 -1
  291. package/rules/email-subject-length.yaml +1 -1
  292. package/rules/emoji-heading.yaml +1 -1
  293. package/rules/empty-intensifier.yaml +1 -1
  294. package/rules/excessive-hedging.yaml +1 -1
  295. package/rules/exclamation-width-consistency.yaml +1 -1
  296. package/rules/expletive-construction.yaml +5 -5
  297. package/rules/figurative-density.yaml +3 -3
  298. package/rules/hiragana-fukushi.yaml +1 -1
  299. package/rules/homophone-slip.yaml +3 -3
  300. package/rules/honesty-marker.yaml +1 -1
  301. package/rules/humble-for-others.yaml +1 -1
  302. package/rules/hyphen-as-dash.yaml +1 -1
  303. package/rules/idiom-misuse.yaml +1 -1
  304. package/rules/internal-jargon.yaml +1 -1
  305. package/rules/kana-function-word.yaml +1 -1
  306. package/rules/katakana-long-vowel.yaml +1 -1
  307. package/rules/kutoten-consistency.yaml +7 -3
  308. package/rules/latin-abbreviation-form.yaml +1 -1
  309. package/rules/latin-spacing.yaml +1 -1
  310. package/rules/max-kanji-continuous.yaml +5 -3
  311. package/rules/max-paragraph-length.yaml +1 -1
  312. package/rules/max-sentence-length.yaml +1 -1
  313. package/rules/max-ten.yaml +1 -1
  314. package/rules/misconversion.yaml +2 -2
  315. package/rules/name-variant.yaml +2 -2
  316. package/rules/ngram-repetition.yaml +3 -3
  317. package/rules/no-doubled-joshi.yaml +2 -2
  318. package/rules/no-em-dash.yaml +3 -3
  319. package/rules/no-mixed-desumasu.yaml +4 -3
  320. package/rules/no-nakaguro-parallel.yaml +1 -1
  321. package/rules/nominalization.yaml +1 -1
  322. package/rules/nonstandard-word.yaml +2 -2
  323. package/rules/numbered-generic-heading.yaml +1 -1
  324. package/rules/numbering-gap.yaml +2 -2
  325. package/rules/one-sentence-paragraph-run.yaml +1 -1
  326. package/rules/orthographic-variant.yaml +2 -2
  327. package/rules/over-general-claim.yaml +1 -1
  328. package/rules/oxford-comma-consistency.yaml +4 -3
  329. package/rules/padded-intro.yaml +1 -1
  330. package/rules/phone-number-variant.yaml +1 -1
  331. package/rules/preamble-length.yaml +1 -1
  332. package/rules/preferred-term.yaml +1 -1
  333. package/rules/proper-noun-density.yaml +1 -1
  334. package/rules/q-fragment-answer.yaml +1 -1
  335. package/rules/quote-style-consistency.yaml +1 -1
  336. package/rules/quote-without-source.yaml +1 -1
  337. package/rules/redundant-expression.yaml +1 -1
  338. package/rules/repeated-conjunction.yaml +1 -1
  339. package/rules/repeated-sentence-ending.yaml +1 -1
  340. package/rules/repeated-sentence-head.yaml +5 -5
  341. package/rules/required-listed-as-preferred.yaml +2 -2
  342. package/rules/required-sections.yaml +1 -1
  343. package/rules/sasete-itadaku.yaml +1 -1
  344. package/rules/sentence-initial-conjunction-run.yaml +1 -1
  345. package/rules/sentence-initial-so.yaml +1 -1
  346. package/rules/sentence-spacing-consistency.yaml +1 -1
  347. package/rules/shell-prompt-mix.yaml +1 -1
  348. package/rules/stock-transition.yaml +1 -1
  349. package/rules/stray-space.yaml +1 -1
  350. package/rules/taigen-dome-in-prose.yaml +1 -1
  351. package/rules/teki-overuse.yaml +1 -1
  352. package/rules/title-case-consistency.yaml +1 -1
  353. package/rules/title-length.yaml +1 -1
  354. package/rules/topic-predicate-distance.yaml +3 -3
  355. package/rules/translationese-density.yaml +1 -1
  356. package/rules/uncomparable-graded.yaml +1 -1
  357. package/rules/undefined-acronym.yaml +3 -3
  358. package/rules/unfilled-placeholder.yaml +4 -4
  359. package/rules/unqualified-superlative.yaml +1 -1
  360. package/rules/use-before-definition.yaml +2 -2
  361. package/rules/vague-word-density.yaml +3 -3
  362. package/rules/weasel-word.yaml +1 -1
  363. package/rules/which-that-consistency.yaml +1 -1
  364. package/rules/wordy-phrase.yaml +1 -1
  365. package/skills/chaff/SKILL.md +3 -1
  366. package/src/announced-count.ts +22 -1
  367. package/src/announced-list.ts +7 -1
  368. package/src/cli.ts +4 -2
  369. package/src/composite-signals.ts +10 -1
  370. package/src/detectors/acronym-name.ts +6 -3
  371. package/src/detectors/agentless-passive.ts +49 -5
  372. package/src/detectors/agreement-slip.ts +11 -3
  373. package/src/detectors/amount-scale.ts +2 -2
  374. package/src/detectors/char-shape.ts +18 -3
  375. package/src/detectors/chat-citation.ts +4 -5
  376. package/src/detectors/chat-mark-extent.ts +63 -0
  377. package/src/detectors/concrete-evidence-density.ts +2 -2
  378. package/src/detectors/concrete-evidence.ts +27 -0
  379. package/src/detectors/conjugated-entry.ts +3 -5
  380. package/src/detectors/contrast-frame.ts +37 -2
  381. package/src/detectors/currency-notation.ts +2 -2
  382. package/src/detectors/defined-term-form.ts +15 -4
  383. package/src/detectors/definition-use.ts +5 -8
  384. package/src/detectors/ellipsis.ts +2 -2
  385. package/src/detectors/email-letter.ts +1 -1
  386. package/src/detectors/en-shape.ts +50 -9
  387. package/src/detectors/gram-furniture.ts +8 -0
  388. package/src/detectors/gram-repetition.ts +8 -1
  389. package/src/detectors/heading-case.ts +11 -3
  390. package/src/detectors/kanji-name-edge.ts +27 -0
  391. package/src/detectors/kutoten-consistency.ts +37 -6
  392. package/src/detectors/lexicon-match.ts +17 -3
  393. package/src/detectors/lexicon.ts +10 -4
  394. package/src/detectors/list-item-clause.ts +9 -0
  395. package/src/detectors/list-parallel.ts +5 -2
  396. package/src/detectors/list-sentence.ts +2 -0
  397. package/src/detectors/mark-shape.ts +36 -8
  398. package/src/detectors/missing-final-period.ts +11 -1
  399. package/src/detectors/name-variant-two-things.ts +28 -3
  400. package/src/detectors/nominalization.ts +14 -4
  401. package/src/detectors/ordinal-suffix.ts +2 -2
  402. package/src/detectors/orthographic-variant.ts +44 -8
  403. package/src/detectors/orthography.ts +19 -9
  404. package/src/detectors/oxford-comma.ts +15 -1
  405. package/src/detectors/paragraph-run.ts +2 -2
  406. package/src/detectors/phone-number-variant.ts +2 -1
  407. package/src/detectors/phrase-context.ts +19 -0
  408. package/src/detectors/phrase-match-all.ts +57 -0
  409. package/src/detectors/phrase-match.ts +31 -6
  410. package/src/detectors/placeholder-text.ts +19 -3
  411. package/src/detectors/proper-noun-density.ts +14 -6
  412. package/src/detectors/quote-around.ts +6 -0
  413. package/src/detectors/range-notation.ts +2 -2
  414. package/src/detectors/reference-entry.ts +36 -6
  415. package/src/detectors/register-set-apart.ts +4 -4
  416. package/src/detectors/register-voice.ts +19 -0
  417. package/src/detectors/registry/phrase-match-all.ts +4 -0
  418. package/src/detectors/requirement-lists.ts +2 -0
  419. package/src/detectors/sentence-counts.ts +9 -5
  420. package/src/detectors/sentence-ending.ts +8 -4
  421. package/src/detectors/sentence-length.ts +18 -6
  422. package/src/detectors/sentence-parts.ts +21 -9
  423. package/src/detectors/signals.ts +10 -1
  424. package/src/detectors/speaker-turns.ts +37 -0
  425. package/src/detectors/team.ts +50 -12
  426. package/src/detectors/unit-spacing.ts +2 -2
  427. package/src/detectors/vague-deadline.ts +2 -1
  428. package/src/levels.ts +9 -3
  429. package/src/name-variant-shapes.ts +29 -0
  430. package/src/phone-numbers.ts +19 -3
  431. package/src/plugin.ts +2 -0
  432. package/src/render/explain.ts +46 -16
  433. package/src/render/options.ts +12 -6
  434. package/src/render/text.ts +20 -7
  435. package/src/run.ts +32 -8
  436. package/src/set-phrase-particles.ts +2 -2
  437. package/src/structure/deadline-after-event.ts +49 -10
  438. package/src/structure/definition-use.ts +15 -5
  439. package/src/structure/leg-times.ts +16 -1
  440. package/src/structure/requirement-lists.ts +14 -2
  441. package/src/structure/time-marks.ts +25 -0
  442. package/src/topic-clause.ts +17 -5
  443. package/dist/honorific-group.d.ts +0 -8
  444. package/dist/honorific-group.d.ts.map +0 -1
  445. package/dist/honorific-group.js +0 -15
  446. package/dist/honorific-group.js.map +0 -1
@@ -38,6 +38,16 @@ export declare const wordOffsets: (text: string, pattern: string) => number[];
38
38
  export declare const markRightAfter: (text: string, end: number, marks: readonly Mark[]) => Mark | undefined;
39
39
  /** 時刻の前の、間に letters 字までしか挟まない印。「departs Boston 7:30」の departs、「翌 0:15」の翌。 */
40
40
  export declare const markBefore: (head: string, marks: readonly Mark[], letters: number) => Mark | undefined;
41
+ /**
42
+ * 時刻のすぐ後ろに書く印を、地名に付けて時刻の前に書いたもの(「東京発 07:45」の発)。間は空白だけ。
43
+ * 印の前が字でなければ(「10:30発 09:50」の発は前の時刻のもの)、この時刻の印ではない。
44
+ */
45
+ export declare const markAttachedBefore: (head: string, marks: readonly Mark[]) => Mark | undefined;
46
+ /**
47
+ * 時刻の次の語として書いた、英字の印(「09:45 Arrive at Leeds」の Arrive)。英字の印は一語として照らせるので、間に空白を挟んでよい。
48
+ * ほかの字の印は時刻のすぐ後ろだけ(「10:00 発表会」の発は印ではない)。
49
+ */
50
+ export declare const wordMarkAfter: (text: string, end: number, marks: readonly Mark[]) => Mark | undefined;
41
51
  export declare const markSoonAfter: (text: string, end: number, marks: readonly Mark[], skipped: readonly Mark[]) => Mark | undefined;
42
52
  /** 時刻の前置きから、時刻の直前に書いた翌日・前日の印(「翌 」)を除いたもの。印が無ければそのまま。 */
43
53
  export declare const withoutDayShiftBefore: (head: string, words: TimeWords) => string;
@@ -1 +1 @@
1
- {"version":3,"file":"time-marks.d.ts","sourceRoot":"","sources":["../../src/structure/time-marks.ts"],"names":[],"mappings":"AAEA;;;GAGG;AAEH,0FAA0F;AAC1F,MAAM,MAAM,IAAI,GAAG;IAAE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;IAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC;AAEzI,qCAAqC;AACrC,MAAM,MAAM,QAAQ,GAAG;IAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAElG,2DAA2D;AAC3D,MAAM,MAAM,QAAQ,GAAG;IAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEhG,6EAA6E;AAC7E,MAAM,MAAM,SAAS,GAAG;IACtB,QAAQ,CAAC,IAAI,EAAE,SAAS,IAAI,EAAE,CAAC;IAC/B,QAAQ,CAAC,OAAO,EAAE,SAAS,IAAI,EAAE,CAAC;IAClC,QAAQ,CAAC,SAAS,EAAE,SAAS,IAAI,EAAE,CAAC;IACpC,QAAQ,CAAC,KAAK,EAAE,SAAS,IAAI,EAAE,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,eAAe,QAAS,CAAC;AAItC,uCAAuC;AACvC,eAAO,MAAM,SAAS,GAAI,KAAK,MAAM,KAAG,MAGvC,CAAC;AAOF,oDAAoD;AACpD,eAAO,MAAM,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AAO,MAAM,YAAY,GAAI,OAAO,SAAS,IAAI,EAAE,KAAG,OAA4E,CAAC"}
@@ -29,6 +29,27 @@ export const markBefore = (head, marks, letters) => {
29
29
  const nearest = found.filter((entry) => entry.gap >= 0 && entry.gap <= letters).toSorted((left, right) => left.gap - right.gap)[0];
30
30
  return nearest?.mark;
31
31
  };
32
+ /**
33
+ * 時刻のすぐ後ろに書く印を、地名に付けて時刻の前に書いたもの(「東京発 07:45」の発)。間は空白だけ。
34
+ * 印の前が字でなければ(「10:30発 09:50」の発は前の時刻のもの)、この時刻の印ではない。
35
+ */
36
+ export const markAttachedBefore = (head, marks) => {
37
+ const trimmed = head.trimEnd();
38
+ return longestFirst(sidesOf(marks, "after")).find((mark) => trimmed.endsWith(mark.pattern) && /\p{L}/u.test(trimmed.charAt(trimmed.length - mark.pattern.length - 1)));
39
+ };
40
+ /** 時刻と次の語の間: 空白か、表の升の区切り。 */
41
+ const WORD_GAP = /^(?:[ \t]*\|[ \t]*|[ \t]+)/u;
42
+ const LATIN_LETTER = /^[A-Za-z]/u;
43
+ /**
44
+ * 時刻の次の語として書いた、英字の印(「09:45 Arrive at Leeds」の Arrive)。英字の印は一語として照らせるので、間に空白を挟んでよい。
45
+ * ほかの字の印は時刻のすぐ後ろだけ(「10:00 発表会」の発は印ではない)。
46
+ */
47
+ export const wordMarkAfter = (text, end, marks) => {
48
+ const gap = WORD_GAP.exec(text.slice(end))?.[0].length;
49
+ if (gap === undefined)
50
+ return undefined;
51
+ return longestFirst(sidesOf(marks, "after")).find((mark) => LATIN_LETTER.test(mark.pattern) && isWordAt(text, end + gap, mark.pattern));
52
+ };
32
53
  /** 時刻の後ろで、空白と開き括弧と発着の印を飛ばした所に書いた印。「0:15(翌日)」「9:50着 +1」。 */
33
54
  const SKIPPED_AFTER = /^[\s(([[]*/u;
34
55
  export const markSoonAfter = (text, end, marks, skipped) => {
@@ -1 +1 @@
1
- {"version":3,"file":"time-marks.js","sourceRoot":"","sources":["../../src/structure/time-mar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CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,CAAC,KAAK,KAAK,CAAC;SACvF,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;AACnE,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,KAAsB,EAAW,EAAE,CAAC,KAAK,CAAC,MAAM,IAAI,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,KAAK,OAAO,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"topic-clause.d.ts","sourceRoot":"","sources":["../src/topic-clause.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AA8HzC,qIAAqI;AACrI,MAAM,MAAM,gBAAgB,GAAG;IAC7B,0GAA0G;IAC1G,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,yGAAyG;IACzG,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACtC,CAAC;AA4GF;;;GAGG;AACH,eAAO,MAAM,cAAc,GAAI,QAAQ,SAAS,KAAK,EAAE,EAAE,OAAO,MAAM,EAAE,MAAM,MAAM,EAAE,QAAO,gBAA2B,KAAG,MAAM,GAAG,SAYnI,CAAC"}
1
+ {"version":3,"file":"topic-clause.d.ts","sourceRoot":"","sources":["../src/topic-clause.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AA8HzC,qIAAqI;AACrI,MAAM,MAAM,gBAAgB,GAAG;IAC7B,0GAA0G;IAC1G,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,yGAAyG;IACzG,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACtC,CAAC;AAwHF;;;GAGG;AACH,eAAO,MAAM,cAAc,GAAI,QAAQ,SAAS,KAAK,EAAE,EAAE,OAAO,MAAM,EAAE,MAAM,MAAM,EAAE,QAAO,gBAA2B,KAAG,MAAM,GAAG,SAYnI,CAAC"}
@@ -111,12 +111,15 @@ const wordsStart = (tokens, at, text, spelled = "") => {
111
111
  /** Whether another subject (が or は on a noun, or on a clause made a noun: 行うことは) stands between from and to. */
112
112
  const subjectBetween = (tokens, from, to) => tokens.some((token, at) => at > from && at < to && (isParticle(token, "は") || isParticle(token, "が")) && (NOMINAL.has(tokens[at - 1]?.pos ?? "") || headsSubject(tokens, at)));
113
113
  const isPoliteMasu = (token) => token?.pos === "AUX" && token.lemma === "ます";
114
- /** 〜ておりますが / 〜しましたが: a polite predicate and the contrastive が. */
114
+ /** The auxiliaries a polite predicate may end on after ます: past (ました), negative (ません), negative past (ませんでした). */
115
+ const POLITE_TAILS = [[], ["た"], ["ん"], ["ん", "でし", "た"]];
116
+ const endsPolite = (tokens, at, tail) => isPoliteMasu(tokens[at - tail.length - 1]) &&
117
+ tail.every((surface, index) => tokens[at - tail.length + index]?.pos === "AUX" && tokens[at - tail.length + index]?.surface === surface);
118
+ /** 〜ておりますが / 〜しましたが / 〜できませんでしたが: a polite predicate and the contrastive が. */
115
119
  const isPoliteGa = (tokens, at) => {
116
120
  if (tokens[at]?.surface !== "が" || tokens[at]?.pos !== "SCONJ")
117
121
  return false;
118
- const before = tokens[at - 1];
119
- return isPoliteMasu(before) || (before?.pos === "AUX" && before.surface === "た" && isPoliteMasu(tokens[at - 2]));
122
+ return POLITE_TAILS.some((tail) => endsPolite(tokens, at, tail));
120
123
  };
121
124
  const ownGaSubjectBetween = (tokens, from, to) => tokens.some((token, at) => at > from && at < to && isParticle(token, "が") && headsSubject(tokens, at));
122
125
  /** A word of a name (赤澤, 大臣), not a noun that sets the time or the case (今後, 当日). */
@@ -130,16 +133,20 @@ const newNameTopicRunsToEnd = (tokens, comma, last) => {
130
133
  const wa = tokens[topic];
131
134
  return topic > comma + 1 && wa !== undefined && isParticle(wa, "は") && lastOwnSubject(tokens, last) <= topic;
132
135
  };
136
+ /** A topic on the nominaliser こと after a predicate (公表することは): an act made a noun. */
137
+ const isActTopic = (tokens, topic) => tokens[topic - 1]?.surface === "こと" && tokens[topic - 1]?.pos === "NOUN" && PREDICATE.has(tokens[topic - 2]?.pos ?? "");
133
138
  /**
134
139
  * 当社は…を営んでおりますが、…の重要性が乏しいため、…の記載は行っておりません: after 〜ますが、 the words up to the next comma
135
140
  * say something of a subject of their own (が) and a new topic takes what comes after, so the predicate before が was the
136
141
  * topic's, when no other subject stands between the topic and it (需要の停滞がありましたが is not). A clause with no subject of
137
- * its own there is read to the end, unless a name stands as a new topic straight after the comma (〜ましたが、B大臣は…).
142
+ * its own there is read to the end, unless a name stands as a new topic straight after the comma (〜ましたが、B大臣は…), or the
143
+ * topic is an act made a noun (つまびらかにすることは差し控えますが、…): what is said of an act ends there, and the rest is the
144
+ * speaker's.
138
145
  */
139
146
  const closesWithPoliteGa = (tokens, topic, at, last) => {
140
147
  if (!isPoliteGa(tokens, at) || !isComma(tokens[at + 1]) || subjectBetween(tokens, topic, at))
141
148
  return false;
142
- if (newNameTopicRunsToEnd(tokens, at + 1, last))
149
+ if (isActTopic(tokens, topic) || newNameTopicRunsToEnd(tokens, at + 1, last))
143
150
  return true;
144
151
  const comma = tokens.findIndex((token, index) => index > at + 1 && index < last && isComma(token));
145
152
  const clauseEnd = comma === -1 ? last : comma;
@@ -1 +1 @@
1
- {"version":3,"file":"topic-clause.js","sourceRoot":"","sources":["../src/topic-clause.ts"],"names":[],"mappings":"AAIA,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG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C,CAAC;IAC/E,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC;AACtC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chaffjs",
3
- "version": "0.48.0",
3
+ "version": "0.50.0",
4
4
  "description": "Prose validation harness. Finds what is hard to read, and never rewrites it for you.",
5
5
  "keywords": [
6
6
  "chaff",
@@ -89,8 +89,8 @@
89
89
  },
90
90
  "dependencies": {
91
91
  "@anthropic-ai/sdk": "^0.125.0",
92
- "@chaffjs/lang-en": "0.45.0",
93
- "@chaffjs/lang-ja": "0.47.0",
92
+ "@chaffjs/lang-en": "0.47.0",
93
+ "@chaffjs/lang-ja": "0.49.0",
94
94
  "character-entities": "^2.0.2",
95
95
  "mdast-util-from-markdown": "^2.0.3",
96
96
  "mdast-util-frontmatter": "^2.0.1",
@@ -105,7 +105,7 @@ not_flagged:
105
105
  en: 'Whether an abstract is present is checked only in a document with two or more headings that name a paper''s sections (Introduction, Methods, Results, Discussion); when they are only an opening and a closing (Introduction, Conclusion), the document is read as an essay or a review, which carries no abstract. The label itself ("Abstract:") is not counted. Only the academic paper genre runs this rule.'
106
106
  level_meaning:
107
107
  ja: 要旨 {limit} 字まで
108
- en: up to {limit} words in the abstract
108
+ en: up to {limit} {limit|word|words} in the abstract
109
109
  rewrite:
110
110
  depth: structure
111
111
  ja:
@@ -50,4 +50,4 @@ not_flagged:
50
50
  en: Documents under 200 words are not measured. A capitalised -ly word in mid-sentence (July, Kelly) is a name or a word of a title, and is not counted; so is one that opens a line written in title case (Frequently Asked Questions). Nor is an adverb that says how sure or frank the writer is (probably, apparently, honestly), since there is no verb to fold it into (the words are in the stance-adverb lexicon).
51
51
  level_meaning:
52
52
  ja: 1000 語あたり -ly 副詞 {limit} 個まで
53
- en: up to {limit} -ly adverbs per 1000 words
53
+ en: up to {limit} {limit|-ly adverb|-ly adverbs} per 1000 words
@@ -49,11 +49,11 @@ example:
49
49
  after: The board approved the budget for next year.
50
50
 
51
51
  not_flagged:
52
- ja: 「〜によって」のように、した人が同じ文に書いてある受け身は指しません。法務のジャンルは、受け身が書き方そのものなので見ません。
53
- en: A passive that names the actor in the same sentence ("by the board") is not reported. Legal genres, where the passive is the form, do not run this rule.
52
+ ja: 「〜によって」「部長から」のように、した人が同じ文に書いてある受け身は指しません。「来月から」「4月1日から」の「から」は時の起点で、した人ではないので、ほかに書いていなければ指します。法務のジャンルは、受け身が書き方そのものなので見ません。
53
+ en: A passive that names the actor in the same sentence ("by the board") is not reported. In Japanese, から after a time (来月から, from next month) marks when, not who, and does not count as the actor. Legal genres, where the passive is the form, do not run this rule.
54
54
  level_meaning:
55
55
  ja: 一文に受け身が {limit} 個あれば指摘
56
- en: reported when a sentence has {limit} passives with no actor
56
+ en: reported when a sentence has {limit} {limit|passive|passives} with no actor
57
57
  rewrite:
58
58
  depth: light
59
59
  ja:
@@ -14,6 +14,7 @@ extra_word_lists:
14
14
  finite-auxiliary,
15
15
  misnumbered-phrase,
16
16
  determiner-after-article,
17
+ homophone-slip,
17
18
  ]
18
19
  severity: warning
19
20
 
@@ -41,8 +42,8 @@ messages:
41
42
  en: '"{word}" puts two determiners in a row'
42
43
 
43
44
  how_to_fix:
44
- ja: 限定詞か名詞のどちらかに揃えてください(a significant change / significant changes)。所有の語なら、主語の語に直してください(Your can → You can、their is → there is)。限定詞が二つ続いていれば、どちらかを消してください(the some roads → some roads か that some roads)。
45
- en: Make the determiner and the noun agree ("a significant change" or "significant changes"). For a possessive, write the subject you meant ("Your can" becomes "You can", "their is" becomes "there is"). For two determiners in a row, drop one ("the some roads" becomes "some roads", or "that some roads" if that was meant).
45
+ ja: 限定詞か名詞のどちらかに揃えてください(a significant change / significant changes)。所有の語なら、主語の語に直してください(Your can → You can、their will → they will)。限定詞が二つ続いていれば、どちらかを消してください(the some roads → some roads か that some roads)。
46
+ en: Make the determiner and the noun agree ("a significant change" or "significant changes"). For a possessive, write the subject you meant ("Your can" becomes "You can", "their will" becomes "they will"). For two determiners in a row, drop one ("the some roads" becomes "some roads", or "that some roads" if that was meant).
46
47
 
47
48
  levels: { strict: error, normal: warning, relaxed: info }
48
49
 
@@ -61,5 +62,5 @@ example:
61
62
  after: This new version will ship in May.
62
63
 
63
64
  not_flagged:
64
- ja: 単数と複数で形が同じ名詞(series、data)、this や these の直後の語、名詞を修飾する名詞(a sales team)、前置詞の後ろの所有の語と名詞の will や can(at its will)は指しません。
65
- en: Nouns spelled alike in both numbers ("series", "data"), a word right after "this" or "these", nouns that modify another noun ("a sales team"), and a possessive after a preposition with "will" or "can" as its noun ("at its will") are not reported.
65
+ ja: 単数と複数で形が同じ名詞(series、data)、this や these の直後の語、名詞を修飾する名詞(a sales team)、前置詞の後ろの所有の語と名詞の will や can(at its will)は指しません。homophone-slip が一覧に持つ組(their are)は、正しい語まで言うその規則が指し、ここでは指しません。
66
+ en: Nouns spelled alike in both numbers ("series", "data"), a word right after "this" or "these", nouns that modify another noun ("a sales team"), and a possessive after a preposition with "will" or "can" as its noun ("at its will") are not reported. A pair homophone-slip lists ("their are") is reported by that rule, with the word meant, and not here.
@@ -35,8 +35,8 @@ why:
35
35
  en: Each of these appears in ordinary writing on its own. Only three or more in one document (two in a blog post) mean anything. **Even then it does not say the text was generated.** It marks a place to reread.
36
36
 
37
37
  message:
38
- ja: 「{word}」が同じ文書にそろっています({count} 種、{limit} 種から)
39
- en: '"{word}" {count|occurs|occur together} in this document ({count} {count|signal|signals}, {limit} needed)'
38
+ ja: 生成文の特徴が {count} 種、同じ文書にそろっています({limit} 種から)。{signals}
39
+ en: "{count} {count|signal|signals} of generated text {count|occurs|occur together} in this document ({limit} needed): {signals}"
40
40
 
41
41
  how_to_fix:
42
42
  ja: 自分が書きたかったことが残っているか、通して読み直してください。個々の指摘を 1 つずつ直すより、段落ごと書き直すほうが早いことがあります。
@@ -150,4 +150,4 @@ not_flagged:
150
150
  en: One signal alone says nothing. A shape two rules measure (section length variation, read by both ai-structure and section-length-uniformity) counts as one signal. Even several together do not say the text was generated; they mark a place to reread.
151
151
  level_meaning:
152
152
  ja: 特徴が {limit} 種そろえば指摘
153
- en: reported once {limit} signals occur together
153
+ en: reported once {limit} {limit|signal occurs|signals occur} together
@@ -134,7 +134,7 @@ not_flagged:
134
134
  en: A document without headings is not checked. A measure the document is too small for (a short text, few sections or lists) is not counted. Template headings count only when four or more sections of the textbook outline stand as headings; a real proposal has one or two. The headings under an FAQ heading are the readers' questions, so they are not counted as headings in a stock form ("What is …"). Legal, documentation, academic and speech genres do not run this rule (`chaff outline` and `chaff fix-plan` measure the structure in any genre; only this rule counts the template headings).
135
135
  level_meaning:
136
136
  ja: 人の記事の 9 割を超えた項目が {limit} 個そろえば指摘
137
- en: reported once {limit} measures lie past 90% of human articles
137
+ en: reported once {limit} {limit|measure lies|measures lie} past 90% of human articles
138
138
  rewrite:
139
139
  depth: structure
140
140
  ja:
@@ -45,7 +45,7 @@ not_flagged:
45
45
  en: Only runs of three or more words. Runs of acronyms (words never written in lower case elsewhere) and code are not reported, and MUST or SHALL in a specification count as conventional capitals. A caption in capitals that opens a paragraph and ends in a colon or stands alone ("AGENCY:", "WORKING GROUP MEMBERS"), and prose naming such a caption, are not reported either. Nor is a paragraph whose lines are all in capitals and end no sentence, such as a letterhead, an addressee block ("BOARD OF GOVERNORS") or a heading a transcript sets on a line of its own ("OPENING STATEMENT OF HON. JANE DOE,"), nor a roster entry that gives a name in capitals and the place or office in ordinary case ("JANE Q. DOE, Ohio", "JANE Q. DOE, Ohio, Chairman"), nor a placeholder in square brackets wholly in capitals, which a publisher or editor puts where the text leaves something out ("[GRAPHIC(S) NOT AVAILABLE IN TIFF FORMAT]", "[NAME WITHHELD]"), nor a quotation wholly in capitals (states “THIS DOCUMENT CONTAINS CONFIDENTIAL INFORMATION.”), a label the reader is to write or will see as it stands rather than the writer raising their voice, nor a label a sentence names as the screen shows it ("in SUBMIT TO APPROVER status", "the SAVE AND CLOSE button"). The legal and literature presets turn it off, since contracts set disclaimers in capitals by rule and older texts set titles that way.
46
46
  level_meaning:
47
47
  ja: "{limit} 箇所あれば指摘"
48
- en: reported once there are {limit}
48
+ en: reported once there {limit|is|are} {limit}
49
49
  rewrite:
50
50
  depth: light
51
51
  en:
@@ -60,5 +60,5 @@ example:
60
60
  - Your bank account
61
61
 
62
62
  not_flagged:
63
- ja: 目安の数(約3点、3つ以上)、順番(3つ目)、選ぶ数や当てはまる数(以下から1つ選ぶ、次のいずれか一つに該当する)、条や節の番号(7.1、第3条)、見出しや表の前の数、箇条書きがすぐ後ろに無い数は比べません。予告の文に数が二つあるときも比べません。コロンだけで予告する文は、コロンにいちばん近い数を予告の数とみなし、その数の後ろにまだ数があれば比べません(「1 つのページを 2 ページに分けました:」)。どの行も「ラベル:A / B」の形の箇条書きは、斜線(/)で区切って並べた項目の数が合っていれば指摘しません。一行に並べた名前は、区切りが決まらないとき(名前の中に「と」「・」がある、括弧が閉じていない、途中で文が終わる)と、並びが閉じていないとき(「ほか」「など」で終わる、「5名ほか」)は比べません。
64
- en: An estimate (about three, three or more), a rank (the first three), how many to pick or to meet (choose two, any one of the following), the number of a clause or section (7.1, Article 7), a number before a heading or a table, and a number with no list right after it are not compared. Nor is a sentence with two numbers in it. When only a colon announces the list, the number nearest the colon is the count, so a number followed by another one is not compared ("We merged three tasks into 2 pages:"). A list whose every item is a label, a colon and members split at slashes is not reported when the members add up to the count. Names listed on one line are not compared when the split is unclear ("and" or "&" inside a name, an unclosed bracket, a sentence ending midway) or the list is left open ("etc.", "and others").
63
+ ja: 目安の数(約3点、3つ以上)、順番(3つ目)、選ぶ数や当てはまる数(以下から1つ選ぶ、次のいずれか一つに該当する)、条や節の番号(7.1、第3条)、見出しや表の前の数、箇条書きがすぐ後ろに無い数は比べません。予告の文に数が二つあるときも比べません。コロンだけで予告する文は、コロンにいちばん近い数を予告の数とみなし、その数の後ろにまだ数があれば比べません(「1 つのページを 2 ページに分けました:」)。数が前の節にあり、読点のあとの節の「以下の」「次の」が箇条書きを指す文も比べません(「二人に聞いて分かった、困っていたことは以下のとおりです:」の二人は聞いた人の数です)。どの行も「ラベル:A / B」の形の箇条書きは、斜線(/)で区切って並べた項目の数が合っていれば指摘しません。一行に並べた名前は、区切りが決まらないとき(名前の中に「と」「・」がある、括弧が閉じていない、途中で文が終わる)と、並びが閉じていないとき(「ほか」「など」で終わる、「5名ほか」)は比べません。
64
+ en: An estimate (about three, three or more), a rank (the first three), how many to pick or to meet (choose two, any one of the following), the number of a clause or section (7.1, Article 7), a number before a heading or a table, and a number with no list right after it are not compared. Nor is a sentence with two numbers in it. When only a colon announces the list, the number nearest the colon is the count, so a number followed by another one is not compared ("We merged three tasks into 2 pages:"). Nor is a number in an earlier clause when a word pointing ahead comes after the comma ("We asked two new hires, and they named the following:" counts the people asked, not the items). A list whose every item is a label, a colon and members split at slashes is not reported when the members add up to the count. Names listed on one line are not compared when the split is unclear ("and" or "&" inside a name, an unclosed bracket, a sentence ending midway) or the list is left open ("etc.", "and others").
@@ -53,7 +53,7 @@ not_flagged:
53
53
  en: An announcing phrase inside a sentence, and fewer than the level needs, are not reported.
54
54
  level_meaning:
55
55
  ja: 予告で始まる文が {limit} 個あれば指摘
56
- en: reported once {limit} sentences open with an announcement
56
+ en: reported once {limit} {limit|sentence opens|sentences open} with an announcement
57
57
  rewrite:
58
58
  depth: light
59
59
  ja:
@@ -10,7 +10,7 @@ name:
10
10
  en: An arrival before its departure
11
11
 
12
12
  why:
13
- ja: 「福岡 11:30発、羽田 11:05着」のように、同じ便や列車の着の時刻が発より前だと、どちらかの時刻を書き間違えています。読み手は乗る便を確かめ直すことになり、間違ったまま予定を組む人も出ます。同じ行の発と着(時刻のすぐ後ろの「発」「着」、表の出発と到着の列)を比べます。着に翌日の印(翌、+1)があれば一日足し、発と着の両方に日付があれば日付から比べます。
13
+ ja: 「福岡 11:30発、羽田 11:05着」のように、同じ便や列車の着の時刻が発より前だと、どちらかの時刻を書き間違えています。読み手は乗る便を確かめ直すことになり、間違ったまま予定を組む人も出ます。同じ行の発と着(時刻のすぐ後ろの「発」「着」、地名に付けて時刻の前に書いた「東京発 07:45」、表の出発と到着の列)を比べます。着に翌日の印(翌、+1)があれば一日足し、発と着の両方に日付があれば日付から比べます。
14
14
  en: 'When a leg such as "departs Washington 1:30 PM, arrives Boston 1:05 PM" arrives before it departs, one of the times is wrong. The reader has to look the connection up again, and someone may plan around the wrong time. A departure and an arrival in one line are compared: times marked "departs" and "arrives" (or "dep" and "arr"), and the departure and arrival columns of a table. An arrival marked as the next day (+1, "next day") gets a day added, and when both times have a date, the dates are compared first.'
15
15
 
16
16
  message:
@@ -46,7 +46,7 @@ not_flagged:
46
46
  en: Not before digits ("a 8-hour day"), nor before words the lexicon says are said both ways (SQL, historic). Capitals are read as the lexicon says; unlisted ones are read letter by letter only when short or without a vowel (MBA, NTSB), since longer ones (SALT) may be said as a word. Initials joined by a slash (N/I, N/A) may be read as the words they shorten and are left alone, and an "a" glued to the digit or letter before it ("§ 78a et seq.") is not an article. A document that writes "an" before a sounded h ("an hospital", "an hereditament") at least twice and more often than "a" keeps the older usage as its style, and those are not reported. The fiction and speech presets turn it off.
47
47
  level_meaning:
48
48
  ja: "{limit} 箇所あれば指摘"
49
- en: reported once there are {limit}
49
+ en: reported once there {limit|is|are} {limit}
50
50
  rewrite:
51
51
  depth: light
52
52
  en:
@@ -44,7 +44,7 @@ not_flagged:
44
44
  en: Only the forms on chaff's list are checked. になります for a change and から for a person are correct and not reported. Literature and speech do not run this rule.
45
45
  level_meaning:
46
46
  ja: 当てはまる形が {limit} 箇所あれば指摘
47
- en: reported once there are {limit}
47
+ en: reported once there {limit|is|are} {limit}
48
48
  rewrite:
49
49
  depth: light
50
50
  ja:
@@ -59,7 +59,7 @@ not_flagged:
59
59
  en: Sections under 200 characters are not measured, since one bold span would swing the rate. A short field label opening a line (**Date:**, **Motion:**) names the value after it and is not emphasis, so it is not counted; a bold label opening a list item is.
60
60
  level_meaning:
61
61
  ja: 1000 字あたり太字 {limit} 箇所まで
62
- en: up to {limit} bold spans per 1000 characters
62
+ en: up to {limit} {limit|bold span|bold spans} per 1000 characters
63
63
  rewrite:
64
64
  depth: light
65
65
  ja:
@@ -83,7 +83,7 @@ not_flagged:
83
83
  en: A document with two bold spans or fewer, and a short document, are not measured. Bold that opens its line and its paragraph or list item is a label, a lead sentence, a field or a run-in heading ("- **Speed**:", "- **Same pay.**", "**From:**", "**Pros:**") and is not counted; bold-label-list counts the list labels. A capitalised bold inside a sentence ("click **Add Printer**") names a button, a setting or a title and is not counted either, nor is bold inside a table cell or a heading. READMEs, meeting notes, documentation, legal, academic, literary and speech genres do not run this rule, since they bold feature names and fields as their layout.
84
84
  level_meaning:
85
85
  ja: 太字の強調が 1000 字あたり {limit} 箇所まで
86
- en: up to {limit} bold spans of emphasis per 1000 words
86
+ en: up to {limit} {limit|bold span|bold spans} of emphasis per 1000 words
87
87
  rewrite:
88
88
  depth: light
89
89
  ja:
@@ -98,7 +98,7 @@ not_flagged:
98
98
  en: An item whose label is only code (a list of options or fields) is not counted, nor is one whose bold ends in neither a colon nor a full stop (a bold opening word of a sentence), or that has no text after it. A list whose items each run a paragraph after the bold (the middle item 40 words or more, 100 characters in Japanese) is a handbook's tips, the advice in bold and the item explaining it, and is not counted. A paragraph counts only when its bold is a statement, or a whole English instruction closed by its own stop (**Pick the quietest room you can.**), not a term, an imperative run-in head closed by a colon (**Talk to the people:**), a gerund or a question. Specification (technical/spec), legal, documentation, academic and literary genres do not run this rule.
99
99
  level_meaning:
100
100
  ja: 太字の札で始まる項目が {limit} 個あれば指摘(太字の一文で始まる項目は min_leads、言い切りの太字で始まる段落は min_clause_paragraphs の数から)
101
- en: reported once {limit} list items open with a bold label (items opening with a bold lead sentence from min_leads, paragraphs opening with a bold statement from min_clause_paragraphs)
101
+ en: reported once {limit} {limit|list item opens|list items open} with a bold label (items opening with a bold lead sentence from min_leads, paragraphs opening with a bold statement from min_clause_paragraphs)
102
102
  rewrite:
103
103
  depth: structure
104
104
  ja:
@@ -48,7 +48,7 @@ not_flagged:
48
48
  en: Only brackets touching Japanese text, parentheses and square brackets compared apart; Markdown links are not counted, and note markers ([1], [^1]) are compared only with each other, and so are the labels opening a line ((1), [Web]) and an item's address in the prose (4(2)で), and a note's number cited in the prose (注(24)で) with the other cited note numbers. Brackets in English text (f(x)), brackets in a formula (賃金 × (1 - 時間 ÷ 月平均)), code, 「」 quotations, the title of an outside page quoted by a link at a line's head (- [Title (draft)](https://…)) and the document's own heading quoted in a line of other words (a self-citation) are not counted.
49
49
  level_meaning:
50
50
  ja: 少ないほうの書き方が {limit} 箇所あれば指摘
51
- en: reported once the less common way appears {limit} times
51
+ en: reported once the less common way appears {limit} {limit|time|times}
52
52
  rewrite:
53
53
  depth: light
54
54
  ja:
@@ -47,7 +47,7 @@ not_flagged:
47
47
  en: Code is not read (an article that explains the parameter in backticks). Other utm_source values (newsletter, twitter) are not counted.
48
48
  level_meaning:
49
49
  ja: 名残の印が {limit} 個あれば指摘
50
- en: reported once there are {limit}
50
+ en: reported once there {limit|is|are} {limit}
51
51
  rewrite:
52
52
  depth: light
53
53
  ja:
@@ -84,7 +84,7 @@ not_flagged:
84
84
  en: 'Citations inside the reference list or code, numbers at the start of a line (a numbered list), footnotes whose note gives no year, and a year after a month or a season ("(March 2020)") are not counted. When the minority style is used more than {limit} times, it is taken as a deliberate choice and not reported. Only the academic paper genre runs this rule.'
85
85
  level_meaning:
86
86
  ja: 少ないほうの書き方が {limit} 箇所以下のとき指摘
87
- en: reported when the minority style appears {limit} times or fewer
87
+ en: reported when the minority style appears {limit} {limit|time|times} or fewer
88
88
  rewrite:
89
89
  depth: light
90
90
  ja:
@@ -48,7 +48,7 @@ not_flagged:
48
48
  en: Joins to a helper verb, anything quoted in 「」, and clauses up to the limit are not counted. Nor is a word inside a list of names written with commas (晴れ in 快晴、晴れ、曇り、…), or the same predicate repeated clause after clause after its first time (the second 調べ in 著者を調べ、所属を調べ、). Not used on English documents.
49
49
  level_meaning:
50
50
  ja: 一文の節 {limit} つまで
51
- en: up to {limit} clauses in one sentence
51
+ en: up to {limit} {limit|clause|clauses} in one sentence
52
52
  rewrite:
53
53
  depth: light
54
54
  ja:
package/rules/cliche.yaml CHANGED
@@ -3,7 +3,7 @@ layer: L2
3
3
  status: stable
4
4
  how_to_find: phrase-in-use
5
5
  word_list: cliche
6
- extra_word_lists: [mention-cue]
6
+ extra_word_lists: [mention-cue, reference-list-heading]
7
7
  requires: [pos]
8
8
  languages: [ja, en]
9
9
  severity: info
@@ -48,11 +48,11 @@ example:
48
48
  The new cache cuts load time from 2 seconds to 0.5.
49
49
 
50
50
  not_flagged:
51
- ja: 一覧にある言い回しだけを見ます。見出しの中は見ず、本文の文だけを見ます。ほかの規則が見る言い回し(closing-cliche の「いかがでしたか」、ai-tell の「深く掘り下げる」「game-changer」、empty-intensifier の「needless to say」)は入れていません。「結論から言うと」は人の記事にも同じくらいあるので、「〜まとめ」「〜な件」は普通の文(まとめました、重要な件)と分けられないので見ません。文学と講演の書き起こしは対象にしません。言い回しを言葉として名指しているだけのもの(「徹底解説」という言い方、the phrase "low-hanging fruit")も指しません。
52
- en: Only the phrases on chaff's list are checked, in body sentences; headings are not read. Phrases another rule reads (いかがでしたか in closing-cliche, "game-changer" in ai-tell, "needless to say" in empty-intensifier) are not on it. In Japanese, 結論から言うと is left out because human articles use it as often, and 〜まとめ and 〜な件 because ordinary sentences share them (まとめました, 重要な件). Literature and speech transcripts are not checked. A phrase that is only named as a term ("when saying raising the bar", the phrase "low-hanging fruit", 「徹底解説」という言い方) is not reported.
51
+ ja: 一覧にある言い回しだけを見ます。見出しの中は見ず、本文の文だけを見ます。ほかの規則が見る言い回し(closing-cliche の「いかがでしたか」、ai-tell の「深く掘り下げる」「game-changer」、empty-intensifier の「needless to say」)は入れていません。「結論から言うと」は人の記事にも同じくらいあるので、「〜まとめ」「〜な件」は普通の文(まとめました、重要な件)と分けられないので見ません。文学と講演の書き起こしは対象にしません。言い回しを言葉として名指しているだけのもの(「徹底解説」という言い方、the phrase "low-hanging fruit")も、参考文献の一覧に写したほかの著作の題も指しません。字どおりにも読める英語の言い回しは、比喩として使った文だけを指します。at the end of the day は文や節の頭か読点の前(At the end of the day, …)だけで、動詞と目的語の後ろ(Empty the tray at the end of the day.)は一日の終わりと読みます。on the same page は人が主語か目的語のとき(we all need to be on the same page)だけで、物(Every version is on the same page.)は印刷されたページと読みます。
52
+ en: Only the phrases on chaff's list are checked, in body sentences; headings are not read. Phrases another rule reads (いかがでしたか in closing-cliche, "game-changer" in ai-tell, "needless to say" in empty-intensifier) are not on it. In Japanese, 結論から言うと is left out because human articles use it as often, and 〜まとめ and 〜な件 because ordinary sentences share them (まとめました, 重要な件). Literature and speech transcripts are not checked. A phrase that is only named as a term ("when saying raising the bar", the phrase "low-hanging fruit", 「徹底解説」という言い方) is not reported, nor one in the title of another work copied into a reference list. A phrase whose words also have a plain sense is reported only where the sentence reads it as the figure. "At the end of the day" counts opening a sentence or a clause or before a comma (At the end of the day, …), not after a verb and its object (Empty the tray at the end of the day.), and "on the same page" with a person as its subject or object (we all need to be on the same page), not a thing (Every version is on the same page.).
53
53
  level_meaning:
54
54
  ja: 当てはまる言い回しが {limit} 箇所あれば指摘
55
- en: reported once there are {limit}
55
+ en: reported once there {limit|is|are} {limit}
56
56
  sources: [write-good, proselint]
57
57
  rewrite:
58
58
  depth: light
@@ -66,7 +66,7 @@ not_flagged:
66
66
  en: Only the last four paragraphs of the last section are checked, with or without headings; the document's first paragraph and "to sum up" earlier in the text are ordinary links and are not reported. List items are not checked. A send-off such as "Happy brewing!", "give it a try" or "and go from there" counts only in the last paragraph; earlier it is ordinary text. In emails and proposals the stock last line of a letter ("Thank you for your prompt attention to this matter") and a Japanese pledge that promises effort without saying what (その思いに応えられるよう、しっかり考えてみます) are read too, and so is a proposal's closing offer to talk it over ("We would be happy to discuss any questions"), and a chirpy wish ("Wishing you all ...!", "enjoy the long weekend!") in emails only; a courtesy in an email's closing ("feel free to reach out") is ordinary alone, and is reported only beside another stock closing such as that wish; reports and notices are not checked.
67
67
  level_meaning:
68
68
  ja: 当てはまる結びが {limit} 箇所あれば指摘
69
- en: reported once there are {limit}
69
+ en: reported once there {limit|is|are} {limit}
70
70
  rewrite:
71
71
  depth: light
72
72
  ja:
@@ -71,4 +71,4 @@ not_flagged:
71
71
  en: Cheering outside the closing, a single cheering line, and "I'm happy to help!" (Happy must open the sentence) are not reported.
72
72
  level_meaning:
73
73
  ja: 結びの励ます・請け合う文が {limit} 個あれば指摘
74
- en: reported once {limit} closing sentences cheer the reader on
74
+ en: reported once {limit} {limit|closing sentence cheers|closing sentences cheer} the reader on
@@ -60,7 +60,7 @@ not_flagged:
60
60
  en: An opening with only one of the shapes (a proposal's "We want to ..."), and sentences after the opening, are not reported.
61
61
  level_meaning:
62
62
  ja: 書き出しに形が {limit} つあれば指摘
63
- en: reported once {limit} of the shapes appear in the opening
63
+ en: reported once {limit} of the shapes {limit|appears|appear} in the opening
64
64
  rewrite:
65
65
  depth: structure
66
66
  ja:
@@ -46,7 +46,7 @@ not_flagged:
46
46
  en: なので and でも inside a sentence, and written conjunctions (そのため, しかし), are not reported, nor is a "sentence" with only an auxiliary after the word (だからである。, the end of the previous sentence cut by a line break). A document written in a casual voice throughout, with two or more headings asked as questions or sentences ending in an exclamation mark, is not checked, as the spoken word fits the voice the writer chose. Off for blogs, literature and speech.
47
47
  level_meaning:
48
48
  ja: 話し言葉の接続詞で始まる文が {limit} 個あれば指摘
49
- en: reported from {limit} sentences opening with a spoken conjunction
49
+ en: reported from {limit} {limit|sentence|sentences} opening with a spoken conjunction
50
50
  rewrite:
51
51
  depth: light
52
52
  ja:
@@ -69,8 +69,8 @@ example:
69
69
  Replies to help desk tickets now take 1 day on average, down from 3. Customer satisfaction rose from 72% to 85%. Overtime fell by 10 hours a month.
70
70
 
71
71
  not_flagged:
72
- ja: 3 文より短い節、索引のように項目を並べた節、条件を並べた節(応募資格・業務内容)、文の半分以上が問い・指示(〜してください)・見込みや方針(〜が期待される、〜すべきである)の節は見ません。ウェブページの変換で残った案内の行(ページの先頭です。)は文に数えません。地の文のドメイン名(IdentityTheft.gov)と固有の名前(KubeCon、GitHub)も具体物に数えます。ただし文書の半分以上の節に出る名前(文書の主題)、大文字だけの略語、文頭の語は数えません。下に節を持つ親の節は、下の節と合わせて見ます。
73
- en: Sections shorter than three sentences, index-like sections of entries, sections that list conditions (Requirements, Responsibilities), and sections where at least half the sentences are questions, instructions, or possibilities and plans (may, should, we will, we recommend) are not checked. Site navigation left by a web page's conversion (Skip to main content) is not counted as a sentence. A domain name in the text (IdentityTheft.gov) and a proper name (KubeCon, GitHub) count as concrete, except a name found in half the sections or more (the document's subject), an all-capitals acronym, and a sentence's first word. A parent section is judged together with its subsections.
72
+ ja: 3 文より短い節、索引のように項目を並べた節、条件を並べた節(応募資格・業務内容)、文の半分以上が問い・指示(〜してください)・見込みや方針(〜が期待される、〜すべきである)の節は見ません。ウェブページの変換で残った案内の行(ページの先頭です。)は文に数えません。地の文のドメイン名(IdentityTheft.gov)と固有の名前(KubeCon、GitHub)も具体物に数えます。ただし文書の半分以上の節に出る名前(文書の主題)、大文字だけの略語、文頭の語は数えません。下に節を持つ親の節は、下の節と合わせて見ます。項目ごとに同じ見出しの欄を繰り返す文書(各項目に「状況」「解決策」)では、欄は項目全体と合わせて見ます。
73
+ en: Sections shorter than three sentences, index-like sections of entries, sections that list conditions (Requirements, Responsibilities), and sections where at least half the sentences are questions, instructions, or possibilities and plans (may, should, we will, we recommend) are not checked. Site navigation left by a web page's conversion (Skip to main content) is not counted as a sentence. A domain name in the text (IdentityTheft.gov) and a proper name (KubeCon, GitHub) count as concrete, except a name found in half the sections or more (the document's subject), an all-capitals acronym, and a sentence's first word. A parent section is judged together with its subsections. Where each entry repeats the same headings (Situation, Solution under every entry), such a section is judged with its whole entry.
74
74
  level_meaning:
75
75
  ja: 具体物のない節が {limit} 個あれば指摘
76
- en: reported once {limit} sections have nothing concrete
76
+ en: reported once {limit} {limit|section has|sections have} nothing concrete
@@ -48,4 +48,4 @@ not_flagged:
48
48
  en: Whether to use contractions is not decided. Only the two forms of the same word are compared ("you're" with "you are"), never different words, so a document that writes "you're" but keeps "do not" in full is consistent. When both forms of a word appear as often, there is no minority and nothing is pointed at. A short phrase in quotation marks ("Do Not Disturb", ‘we’re going to x’) and a quotation inside another quotation are a name or someone else's words and are not counted. A form inside a longer quotation (a quoted slogan, a survey answer, someone's words) is counted but never pointed at, since the writer cannot change a quotation. A word emphasised alone (does **not**) is chosen for stress, and a sentence naming both forms of a word (Use cannot, instead of can’t.) or a long comma-separated list of terms (search keywords) only names the words; none of them is counted. Nor are a disclaimer paragraph the publisher appends (does not constitute or imply its endorsement…) and a sentence about contractions (Avoid negative contractions like can't.). A full form in a warning (Do not run this… in a paragraph opening with Warning, or in a box titled Warning) is chosen for stress, so it is counted but never pointed at.
49
49
  level_meaning:
50
50
  ja: 同じ語の少ないほうの書き方が {limit} 箇所以下のとき指摘
51
- en: reported when the minority form of a word appears {limit} times or fewer
51
+ en: reported when the minority form of a word appears {limit} {limit|time|times} or fewer
@@ -21,8 +21,8 @@ message:
21
21
  en: '"{matched}" here, but "{preferred}" in {count} other {count|file|files} checked with it (as in {other})'
22
22
 
23
23
  how_to_fix:
24
- ja: 「{preferred}」に直してください。どちらに寄せるかをチームで決めているなら、chaff.yaml の prefer に書いておくと、どのファイルでも決めた書き方で見ます。
25
- en: Change it to "{preferred}". If the team has decided which way, list the pair under prefer in chaff.yaml, and every file is checked against it.
24
+ ja: 「{preferred}」に直してください。どちらに寄せるかをチームで決めているなら、chaff.yaml の prefer に「使わない書き方」と「使う書き方」の組を書いておくと、preferred-term がどのファイルでも決めた書き方で見ます。
25
+ en: Change it to "{preferred}". If the team has decided which way, list the pair (the spelling to avoid, then the one to use) under prefer in chaff.yaml, and preferred-term checks every file against it.
26
26
 
27
27
  placeholders:
28
28
  matched:
@@ -55,7 +55,7 @@ not_flagged:
55
55
  en: One softener is courtesy and is not reported. A short document, such as an email, is measured as if it were as long as a short letter, so at the default level the third softener is the first reported; one alone is never reported.
56
56
  level_meaning:
57
57
  ja: 1000 字あたりクッション言葉 {limit} 個まで
58
- en: up to {limit} softeners per 1000 words
58
+ en: up to {limit} {limit|softener|softeners} per 1000 words
59
59
  rewrite:
60
60
  depth: light
61
61
  ja: