chaffjs 0.43.0 → 0.45.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 (348) hide show
  1. package/dist/bound-word-particles.d.ts +9 -0
  2. package/dist/bound-word-particles.d.ts.map +1 -0
  3. package/dist/bound-word-particles.js +16 -0
  4. package/dist/bound-word-particles.js.map +1 -0
  5. package/dist/derived/stays.d.ts +0 -1
  6. package/dist/derived/stays.d.ts.map +1 -1
  7. package/dist/derived/stays.js +3 -1
  8. package/dist/derived/stays.js.map +1 -1
  9. package/dist/detectors/absolute-exception.d.ts.map +1 -1
  10. package/dist/detectors/absolute-exception.js +10 -4
  11. package/dist/detectors/absolute-exception.js.map +1 -1
  12. package/dist/detectors/abstract-length.d.ts +5 -1
  13. package/dist/detectors/abstract-length.d.ts.map +1 -1
  14. package/dist/detectors/abstract-length.js +13 -5
  15. package/dist/detectors/abstract-length.js.map +1 -1
  16. package/dist/detectors/adversative-ga.d.ts +1 -1
  17. package/dist/detectors/adversative-ga.d.ts.map +1 -1
  18. package/dist/detectors/adversative-ga.js +19 -2
  19. package/dist/detectors/adversative-ga.js.map +1 -1
  20. package/dist/detectors/agreement-slip.d.ts +2 -0
  21. package/dist/detectors/agreement-slip.d.ts.map +1 -1
  22. package/dist/detectors/agreement-slip.js +22 -8
  23. package/dist/detectors/agreement-slip.js.map +1 -1
  24. package/dist/detectors/bold-label.d.ts +5 -1
  25. package/dist/detectors/bold-label.d.ts.map +1 -1
  26. package/dist/detectors/bold-label.js +74 -14
  27. package/dist/detectors/bold-label.js.map +1 -1
  28. package/dist/detectors/bold-quoted.d.ts +4 -0
  29. package/dist/detectors/bold-quoted.d.ts.map +1 -0
  30. package/dist/detectors/bold-quoted.js +17 -0
  31. package/dist/detectors/bold-quoted.js.map +1 -0
  32. package/dist/detectors/caps-caption.d.ts +5 -0
  33. package/dist/detectors/caps-caption.d.ts.map +1 -1
  34. package/dist/detectors/caps-caption.js +7 -0
  35. package/dist/detectors/caps-caption.js.map +1 -1
  36. package/dist/detectors/char-shape.d.ts +0 -6
  37. package/dist/detectors/char-shape.d.ts.map +1 -1
  38. package/dist/detectors/char-shape.js +4 -21
  39. package/dist/detectors/char-shape.js.map +1 -1
  40. package/dist/detectors/clause-shape.d.ts +2 -0
  41. package/dist/detectors/clause-shape.d.ts.map +1 -1
  42. package/dist/detectors/clause-shape.js +11 -2
  43. package/dist/detectors/clause-shape.js.map +1 -1
  44. package/dist/detectors/cleft-focus.d.ts +4 -0
  45. package/dist/detectors/cleft-focus.d.ts.map +1 -0
  46. package/dist/detectors/cleft-focus.js +31 -0
  47. package/dist/detectors/cleft-focus.js.map +1 -0
  48. package/dist/detectors/count-per-section.d.ts.map +1 -1
  49. package/dist/detectors/count-per-section.js +7 -4
  50. package/dist/detectors/count-per-section.js.map +1 -1
  51. package/dist/detectors/defined-term-form.d.ts.map +1 -1
  52. package/dist/detectors/defined-term-form.js +2 -1
  53. package/dist/detectors/defined-term-form.js.map +1 -1
  54. package/dist/detectors/definition-use.d.ts.map +1 -1
  55. package/dist/detectors/definition-use.js +13 -3
  56. package/dist/detectors/definition-use.js.map +1 -1
  57. package/dist/detectors/emoticon.d.ts +6 -0
  58. package/dist/detectors/emoticon.d.ts.map +1 -0
  59. package/dist/detectors/emoticon.js +19 -0
  60. package/dist/detectors/emoticon.js.map +1 -0
  61. package/dist/detectors/empty-section.d.ts +1 -1
  62. package/dist/detectors/empty-section.d.ts.map +1 -1
  63. package/dist/detectors/empty-section.js +3 -2
  64. package/dist/detectors/empty-section.js.map +1 -1
  65. package/dist/detectors/en-shape.d.ts +6 -1
  66. package/dist/detectors/en-shape.d.ts.map +1 -1
  67. package/dist/detectors/en-shape.js +9 -1
  68. package/dist/detectors/en-shape.js.map +1 -1
  69. package/dist/detectors/fullwidth-alnum.d.ts +2 -2
  70. package/dist/detectors/fullwidth-alnum.d.ts.map +1 -1
  71. package/dist/detectors/fullwidth-alnum.js +19 -3
  72. package/dist/detectors/fullwidth-alnum.js.map +1 -1
  73. package/dist/detectors/heading-echo.d.ts.map +1 -1
  74. package/dist/detectors/heading-echo.js +20 -7
  75. package/dist/detectors/heading-echo.js.map +1 -1
  76. package/dist/detectors/heading-number.d.ts +7 -0
  77. package/dist/detectors/heading-number.d.ts.map +1 -0
  78. package/dist/detectors/heading-number.js +21 -0
  79. package/dist/detectors/heading-number.js.map +1 -0
  80. package/dist/detectors/katakana-density.d.ts +6 -1
  81. package/dist/detectors/katakana-density.d.ts.map +1 -1
  82. package/dist/detectors/katakana-density.js +14 -1
  83. package/dist/detectors/katakana-density.js.map +1 -1
  84. package/dist/detectors/lexicon.d.ts.map +1 -1
  85. package/dist/detectors/lexicon.js +2 -1
  86. package/dist/detectors/lexicon.js.map +1 -1
  87. package/dist/detectors/lookalike-character.d.ts +2 -1
  88. package/dist/detectors/lookalike-character.d.ts.map +1 -1
  89. package/dist/detectors/lookalike-character.js +14 -1
  90. package/dist/detectors/lookalike-character.js.map +1 -1
  91. package/dist/detectors/mark-shape.d.ts +8 -3
  92. package/dist/detectors/mark-shape.d.ts.map +1 -1
  93. package/dist/detectors/mark-shape.js +55 -16
  94. package/dist/detectors/mark-shape.js.map +1 -1
  95. package/dist/detectors/mentioned-phrase.d.ts +3 -1
  96. package/dist/detectors/mentioned-phrase.d.ts.map +1 -1
  97. package/dist/detectors/mentioned-phrase.js +9 -0
  98. package/dist/detectors/mentioned-phrase.js.map +1 -1
  99. package/dist/detectors/middle-dot.d.ts +7 -0
  100. package/dist/detectors/middle-dot.d.ts.map +1 -1
  101. package/dist/detectors/middle-dot.js +19 -0
  102. package/dist/detectors/middle-dot.js.map +1 -1
  103. package/dist/detectors/named-by-context.d.ts +13 -0
  104. package/dist/detectors/named-by-context.d.ts.map +1 -0
  105. package/dist/detectors/named-by-context.js +10 -0
  106. package/dist/detectors/named-by-context.js.map +1 -0
  107. package/dist/detectors/number-style.d.ts.map +1 -1
  108. package/dist/detectors/number-style.js +13 -1
  109. package/dist/detectors/number-style.js.map +1 -1
  110. package/dist/detectors/obligation-without-deadline.d.ts +10 -2
  111. package/dist/detectors/obligation-without-deadline.d.ts.map +1 -1
  112. package/dist/detectors/obligation-without-deadline.js +47 -2
  113. package/dist/detectors/obligation-without-deadline.js.map +1 -1
  114. package/dist/detectors/open-end-names.d.ts +2 -0
  115. package/dist/detectors/open-end-names.d.ts.map +1 -1
  116. package/dist/detectors/open-end-names.js +8 -1
  117. package/dist/detectors/open-end-names.js.map +1 -1
  118. package/dist/detectors/orthographic-variant.d.ts.map +1 -1
  119. package/dist/detectors/orthographic-variant.js +5 -3
  120. package/dist/detectors/orthographic-variant.js.map +1 -1
  121. package/dist/detectors/paragraph-pointer.d.ts +4 -0
  122. package/dist/detectors/paragraph-pointer.d.ts.map +1 -0
  123. package/dist/detectors/paragraph-pointer.js +22 -0
  124. package/dist/detectors/paragraph-pointer.js.map +1 -0
  125. package/dist/detectors/phrase-match.d.ts +4 -1
  126. package/dist/detectors/phrase-match.d.ts.map +1 -1
  127. package/dist/detectors/phrase-match.js +12 -5
  128. package/dist/detectors/phrase-match.js.map +1 -1
  129. package/dist/detectors/placeholder-context.d.ts +16 -0
  130. package/dist/detectors/placeholder-context.d.ts.map +1 -0
  131. package/dist/detectors/placeholder-context.js +57 -0
  132. package/dist/detectors/placeholder-context.js.map +1 -0
  133. package/dist/detectors/placeholder-text.d.ts +2 -0
  134. package/dist/detectors/placeholder-text.d.ts.map +1 -1
  135. package/dist/detectors/placeholder-text.js +1 -1
  136. package/dist/detectors/placeholder-text.js.map +1 -1
  137. package/dist/detectors/redundant-pair.d.ts +5 -0
  138. package/dist/detectors/redundant-pair.d.ts.map +1 -0
  139. package/dist/detectors/redundant-pair.js +18 -0
  140. package/dist/detectors/redundant-pair.js.map +1 -0
  141. package/dist/detectors/registry/middle-dot.js +1 -1
  142. package/dist/detectors/registry/redundant-pair.d.ts +3 -0
  143. package/dist/detectors/registry/redundant-pair.d.ts.map +1 -0
  144. package/dist/detectors/registry/redundant-pair.js +3 -0
  145. package/dist/detectors/registry/redundant-pair.js.map +1 -0
  146. package/dist/detectors/request-owner.d.ts +1 -0
  147. package/dist/detectors/request-owner.d.ts.map +1 -1
  148. package/dist/detectors/request-owner.js +6 -3
  149. package/dist/detectors/request-owner.js.map +1 -1
  150. package/dist/detectors/sentence-counts.d.ts +2 -0
  151. package/dist/detectors/sentence-counts.d.ts.map +1 -1
  152. package/dist/detectors/sentence-counts.js +13 -4
  153. package/dist/detectors/sentence-counts.js.map +1 -1
  154. package/dist/detectors/signals.d.ts.map +1 -1
  155. package/dist/detectors/signals.js +10 -1
  156. package/dist/detectors/signals.js.map +1 -1
  157. package/dist/detectors/structure-tree.d.ts.map +1 -1
  158. package/dist/detectors/structure-tree.js +1 -0
  159. package/dist/detectors/structure-tree.js.map +1 -1
  160. package/dist/detectors/structure.d.ts.map +1 -1
  161. package/dist/detectors/structure.js +6 -5
  162. package/dist/detectors/structure.js.map +1 -1
  163. package/dist/detectors/superlative-context.d.ts +7 -0
  164. package/dist/detectors/superlative-context.d.ts.map +1 -1
  165. package/dist/detectors/superlative-context.js +9 -0
  166. package/dist/detectors/superlative-context.js.map +1 -1
  167. package/dist/detectors/template-sections.d.ts +1 -0
  168. package/dist/detectors/template-sections.d.ts.map +1 -1
  169. package/dist/detectors/template-sections.js +1 -1
  170. package/dist/detectors/template-sections.js.map +1 -1
  171. package/dist/detectors/token-shape.d.ts.map +1 -1
  172. package/dist/detectors/token-shape.js +7 -5
  173. package/dist/detectors/token-shape.js.map +1 -1
  174. package/dist/detectors/unbalanced-bracket.d.ts.map +1 -1
  175. package/dist/detectors/unbalanced-bracket.js +2 -1
  176. package/dist/detectors/unbalanced-bracket.js.map +1 -1
  177. package/dist/detectors/unfilled-placeholder.d.ts.map +1 -1
  178. package/dist/detectors/unfilled-placeholder.js +18 -1
  179. package/dist/detectors/unfilled-placeholder.js.map +1 -1
  180. package/dist/detectors/verse-block.d.ts +4 -0
  181. package/dist/detectors/verse-block.d.ts.map +1 -0
  182. package/dist/detectors/verse-block.js +40 -0
  183. package/dist/detectors/verse-block.js.map +1 -0
  184. package/dist/document.d.ts.map +1 -1
  185. package/dist/document.js +1 -0
  186. package/dist/document.js.map +1 -1
  187. package/dist/email-parts.d.ts +2 -0
  188. package/dist/email-parts.d.ts.map +1 -1
  189. package/dist/email-parts.js +10 -7
  190. package/dist/email-parts.js.map +1 -1
  191. package/dist/eval.d.ts.map +1 -1
  192. package/dist/eval.js +3 -0
  193. package/dist/eval.js.map +1 -1
  194. package/dist/paragraph-length.d.ts +4 -0
  195. package/dist/paragraph-length.d.ts.map +1 -1
  196. package/dist/paragraph-length.js +6 -0
  197. package/dist/paragraph-length.js.map +1 -1
  198. package/dist/plugin.d.ts +4 -0
  199. package/dist/plugin.d.ts.map +1 -1
  200. package/dist/reasons.d.ts +2 -0
  201. package/dist/reasons.d.ts.map +1 -1
  202. package/dist/reasons.js +2 -0
  203. package/dist/reasons.js.map +1 -1
  204. package/dist/rule-of-three.d.ts +13 -1
  205. package/dist/rule-of-three.d.ts.map +1 -1
  206. package/dist/rule-of-three.js +32 -3
  207. package/dist/rule-of-three.js.map +1 -1
  208. package/dist/run.d.ts.map +1 -1
  209. package/dist/run.js +4 -1
  210. package/dist/run.js.map +1 -1
  211. package/dist/structure/build.d.ts.map +1 -1
  212. package/dist/structure/build.js +2 -1
  213. package/dist/structure/build.js.map +1 -1
  214. package/dist/structure/cited-elsewhere.d.ts +5 -2
  215. package/dist/structure/cited-elsewhere.d.ts.map +1 -1
  216. package/dist/structure/cited-elsewhere.js +16 -6
  217. package/dist/structure/cited-elsewhere.js.map +1 -1
  218. package/dist/structure/definition-use.d.ts +2 -1
  219. package/dist/structure/definition-use.d.ts.map +1 -1
  220. package/dist/structure/definition-use.js +10 -2
  221. package/dist/structure/definition-use.js.map +1 -1
  222. package/dist/structure/issues.js +1 -1
  223. package/dist/structure/issues.js.map +1 -1
  224. package/dist/structure/negated-act.d.ts +1 -0
  225. package/dist/structure/negated-act.d.ts.map +1 -1
  226. package/dist/structure/negated-act.js +1 -1
  227. package/dist/structure/negated-act.js.map +1 -1
  228. package/dist/structure/own-name.d.ts +4 -0
  229. package/dist/structure/own-name.d.ts.map +1 -0
  230. package/dist/structure/own-name.js +20 -0
  231. package/dist/structure/own-name.js.map +1 -0
  232. package/dist/structure/percent-sum-prose.d.ts.map +1 -1
  233. package/dist/structure/percent-sum-prose.js +9 -1
  234. package/dist/structure/percent-sum-prose.js.map +1 -1
  235. package/dist/structure/percent-sum.d.ts +2 -0
  236. package/dist/structure/percent-sum.d.ts.map +1 -1
  237. package/dist/structure/percent-sum.js.map +1 -1
  238. package/dist/structure/reference-text.d.ts.map +1 -1
  239. package/dist/structure/reference-text.js +3 -1
  240. package/dist/structure/reference-text.js.map +1 -1
  241. package/dist/te-form-helper.d.ts +22 -0
  242. package/dist/te-form-helper.d.ts.map +1 -0
  243. package/dist/te-form-helper.js +35 -0
  244. package/dist/te-form-helper.js.map +1 -0
  245. package/dist/word-use.d.ts +7 -0
  246. package/dist/word-use.d.ts.map +1 -1
  247. package/dist/word-use.js +11 -0
  248. package/dist/word-use.js.map +1 -1
  249. package/package.json +3 -3
  250. package/rules/absolute-exception.yaml +3 -3
  251. package/rules/abstract-length.yaml +2 -2
  252. package/rules/adversative-ga-repeat.yaml +2 -2
  253. package/rules/all-caps-shouting.yaml +2 -2
  254. package/rules/attachment-not-attached.yaml +11 -6
  255. package/rules/bold-label-list.yaml +29 -6
  256. package/rules/bracket-width-consistency.yaml +2 -2
  257. package/rules/demonstrative-opener-run.yaml +2 -2
  258. package/rules/duration-mismatch.yaml +2 -2
  259. package/rules/emoji-density.yaml +2 -2
  260. package/rules/empty-section.yaml +2 -2
  261. package/rules/fullwidth-alnum-consistency.yaml +2 -2
  262. package/rules/katakana-density.yaml +3 -3
  263. package/rules/lookalike-character.yaml +8 -5
  264. package/rules/max-kanji-continuous.yaml +4 -0
  265. package/rules/no-doubled-joshi.yaml +2 -2
  266. package/rules/number-style-consistency.yaml +2 -2
  267. package/rules/obligation-without-deadline.yaml +2 -2
  268. package/rules/padded-intro.yaml +1 -1
  269. package/rules/paragraph-length-variance.yaml +27 -3
  270. package/rules/redundant-expression.yaml +1 -1
  271. package/rules/repeated-sentence-ending.yaml +2 -2
  272. package/rules/request-without-deadline.yaml +2 -2
  273. package/rules/requirement-smell.yaml +2 -2
  274. package/rules/rule-of-three.yaml +2 -2
  275. package/rules/sentence-spacing-consistency.yaml +2 -2
  276. package/rules/teki-overuse.yaml +2 -0
  277. package/rules/unfilled-placeholder.yaml +2 -2
  278. package/rules/use-before-definition.yaml +2 -2
  279. package/src/bound-word-particles.ts +23 -0
  280. package/src/derived/stays.ts +4 -1
  281. package/src/detectors/absolute-exception.ts +11 -5
  282. package/src/detectors/abstract-length.ts +16 -6
  283. package/src/detectors/adversative-ga.ts +24 -2
  284. package/src/detectors/agreement-slip.ts +35 -10
  285. package/src/detectors/bold-label.ts +82 -14
  286. package/src/detectors/bold-quoted.ts +21 -0
  287. package/src/detectors/caps-caption.ts +10 -0
  288. package/src/detectors/char-shape.ts +8 -22
  289. package/src/detectors/clause-shape.ts +14 -3
  290. package/src/detectors/cleft-focus.ts +40 -0
  291. package/src/detectors/count-per-section.ts +9 -4
  292. package/src/detectors/defined-term-form.ts +2 -1
  293. package/src/detectors/definition-use.ts +23 -4
  294. package/src/detectors/emoticon.ts +21 -0
  295. package/src/detectors/empty-section.ts +3 -2
  296. package/src/detectors/en-shape.ts +10 -1
  297. package/src/detectors/fullwidth-alnum.ts +24 -3
  298. package/src/detectors/heading-echo.ts +21 -8
  299. package/src/detectors/heading-number.ts +20 -0
  300. package/src/detectors/katakana-density.ts +17 -2
  301. package/src/detectors/lexicon.ts +2 -1
  302. package/src/detectors/lookalike-character.ts +19 -2
  303. package/src/detectors/mark-shape.ts +61 -13
  304. package/src/detectors/mentioned-phrase.ts +13 -1
  305. package/src/detectors/middle-dot.ts +22 -0
  306. package/src/detectors/named-by-context.ts +15 -0
  307. package/src/detectors/number-style.ts +14 -1
  308. package/src/detectors/obligation-without-deadline.ts +69 -5
  309. package/src/detectors/open-end-names.ts +21 -2
  310. package/src/detectors/orthographic-variant.ts +20 -15
  311. package/src/detectors/paragraph-pointer.ts +28 -0
  312. package/src/detectors/phrase-match.ts +13 -5
  313. package/src/detectors/placeholder-context.ts +72 -0
  314. package/src/detectors/placeholder-text.ts +1 -1
  315. package/src/detectors/redundant-pair.ts +25 -0
  316. package/src/detectors/registry/middle-dot.ts +1 -1
  317. package/src/detectors/registry/redundant-pair.ts +4 -0
  318. package/src/detectors/request-owner.ts +6 -3
  319. package/src/detectors/sentence-counts.ts +16 -4
  320. package/src/detectors/signals.ts +11 -1
  321. package/src/detectors/structure-tree.ts +1 -0
  322. package/src/detectors/structure.ts +6 -5
  323. package/src/detectors/superlative-context.ts +12 -0
  324. package/src/detectors/template-sections.ts +1 -1
  325. package/src/detectors/token-shape.ts +10 -7
  326. package/src/detectors/unbalanced-bracket.ts +2 -1
  327. package/src/detectors/unfilled-placeholder.ts +22 -1
  328. package/src/detectors/verse-block.ts +48 -0
  329. package/src/document.ts +1 -0
  330. package/src/email-parts.ts +16 -7
  331. package/src/eval.ts +2 -0
  332. package/src/paragraph-length.ts +10 -0
  333. package/src/plugin.ts +4 -0
  334. package/src/reasons.ts +4 -0
  335. package/src/rule-of-three.ts +47 -4
  336. package/src/run.ts +3 -1
  337. package/src/structure/build.ts +2 -1
  338. package/src/structure/cited-elsewhere.ts +18 -6
  339. package/src/structure/definition-use.ts +10 -1
  340. package/src/structure/issues.ts +1 -1
  341. package/src/structure/negated-act.ts +1 -1
  342. package/src/structure/own-name.ts +28 -0
  343. package/src/structure/percent-sum-prose.ts +12 -1
  344. package/src/structure/percent-sum.ts +2 -0
  345. package/src/structure/reference-text.ts +5 -1
  346. package/src/te-form-helper.ts +52 -0
  347. package/src/word-use.ts +13 -0
  348. package/src/honorific-group.ts +0 -22
@@ -3,6 +3,7 @@ layer: L1
3
3
  status: stable
4
4
  how_to_find: bold-label-list
5
5
  requires: [markdown]
6
+ uses: [pos]
6
7
  severity: info
7
8
 
8
9
  name:
@@ -10,19 +11,37 @@ name:
10
11
  en: Too many list items led by a bold label
11
12
 
12
13
  why:
13
- ja: 「- **速さ**:〜」のように、項目ごとに太字の札とコロンを置いて説明を続ける形です。「- **情報が古くなる。** 〜」のように、太字の一文で始めて説明を続ける形も同じです。札が並ぶと、どの項目も同じ重さの見出しに見え、項目どうしの繋がりは書かれません。生成文によく見られる形です。
14
- en: 'An item that opens with a bold label and a colon ("- **Speed**: ..."), or with a bold lead sentence ("- **Information gets out of date.** ..."), item after item. The labels make every item look like a heading of equal weight, and the links between the items go unwritten. A shape common in generated text.'
14
+ ja: 「- **速さ**:〜」のように、項目ごとに太字の札とコロンを置いて説明を続ける形です。「- **情報が古くなる。** 〜」のように、太字の一文で始めて説明を続ける形も同じです。札が並ぶと、どの項目も同じ重さの見出しに見え、項目どうしの繋がりは書かれません。段落ごとに「**利用は毎週伸びた**:〜」と、言い切りの太字で始めて説明を続ける形も同じです。生成文によく見られる形です。
15
+ en: 'An item that opens with a bold label and a colon ("- **Speed**: ..."), or with a bold lead sentence ("- **Information gets out of date.** ..."), item after item. The labels make every item look like a heading of equal weight, and the links between the items go unwritten. Paragraphs that each open with a bold statement ("**Usage grew each week**: ...") are the same shape. A shape common in generated text.'
15
16
 
16
17
  message:
17
18
  ja: 「{label}」など、太字の札で始まる項目が {count} 個あります({limit} 個から)
18
19
  en: '"{label}" and other bold labels open {count} list items ({limit} needed)'
19
20
 
21
+ messages:
22
+ paragraphs:
23
+ ja: 「{label}」など、言い切りの太字で始まる段落が {count} 個あります({limit} 個から)
24
+ en: '"{label}" and other bold statements open {count} paragraphs ({limit} needed)'
25
+
20
26
  how_to_fix:
21
27
  ja: 札を外して、項目を文にしてください。大事な項目が 1 つ 2 つなら、それを段落で書き、残りは消すか 1 文にまとめます。用語集のように、本当に札と説明の組を並べるものはそのままでかまいません。
22
28
  en: Drop the labels and write the items as sentences. If only one or two items matter, give them a paragraph and cut or merge the rest. A real glossary, where each label is the term being defined, can stay.
23
29
 
24
30
  # 指摘に要る項目の数。長さで割らない:人の記事は長くても 1 つ 2 つで、生成文は短くても並べる。
25
31
  levels: { strict: 3, normal: 5, relaxed: 8 }
32
+ options:
33
+ min_leads:
34
+ kind: count
35
+ default: 3
36
+ about:
37
+ ja: 太字の一文で始まる項目(- **範囲を固定する。** 〜)だけで指摘する数。人の文書は手順や欄の名前に太字の札を 3 つ 4 つ並べることはあっても、太字の一文で始まる項目を並べることはほとんどありません
38
+ en: How many items opening with a bold lead sentence (- **Lock your ranges.** ...) report on their own. Human documents may give three or four steps or fields a bold label, but rarely make a list of bold lead sentences
39
+ min_clause_paragraphs:
40
+ kind: count
41
+ default: 3
42
+ about:
43
+ ja: 言い切りの太字(述語のある文。**利用は毎週伸びた**:〜)で始まる段落だけで指摘する数。人の文書の段落の頭の太字は、語だけのもの(**勤務時間**:)、動詞で始まるもの(英語の命令形 **Talk to the people:**)、問い(**読み手は誰か?**)がほとんどで、これらは数えません。品詞が読めないときは段落を数えません
44
+ en: "How many paragraphs opening with a bold statement (a clause with its own subject and verb, **Usage grew each week**: ...) report on their own. A human run-in head is a term (**Work schedule**:), an imperative (**Talk to the people:**) or a question (**Who is my audience?**), none of which count. Without part-of-speech tags, paragraphs are not counted"
26
45
 
27
46
  use_for: [technical/readme, blog, business, legal, docs, academic, literature, speech]
28
47
  off_for:
@@ -44,6 +63,8 @@ example:
44
63
  before: |
45
64
  # 新しい在庫システム
46
65
 
66
+ **新しいシステムが動き始めました。** 変わった点は次のとおりです。
67
+
47
68
  - **速さ**:一覧が 1 秒で出ます。
48
69
  - **正確さ**:数え間違いが減ります。
49
70
  - **安さ**:月の費用が下がります。
@@ -59,6 +80,8 @@ example:
59
80
  before: |
60
81
  # Our new stock system
61
82
 
83
+ **The new system is live.** Here is what changed.
84
+
62
85
  - **Speed**: the list loads in a second.
63
86
  - **Accuracy**: fewer counting mistakes.
64
87
  - **Cost**: the monthly bill is lower.
@@ -71,11 +94,11 @@ example:
71
94
  The monthly bill is lower, and permissions can be split finely.
72
95
 
73
96
  not_flagged:
74
- ja: 札がコードだけの項目(`--flag` の説明のような、設定や引数の一覧)は数えません。札の後ろにコロンも句点も無い項目(太字が文の頭の語だけのもの)と、その後ろに何も無い項目も数えません。仕様書(technical/spec)・法務・説明書・論文・文学のジャンルでは見ません。
75
- 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. Specification (technical/spec), legal, documentation, academic and literary genres do not run this rule.
97
+ ja: 札がコードだけの項目(`--flag` の説明のような、設定や引数の一覧)は数えません。段落は、太字が言い切りの文のときだけ数え、語だけの太字・動詞で始まる太字(英語の命令形)・問いは数えません。札の後ろにコロンも句点も無い項目(太字が文の頭の語だけのもの)と、その後ろに何も無い項目も数えません。仕様書(technical/spec)・法務・説明書・論文・文学のジャンルでは見ません。
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 paragraph counts only when its bold is a statement, not a term, an imperative or a question. Specification (technical/spec), legal, documentation, academic and literary genres do not run this rule.
76
99
  level_meaning:
77
- ja: 太字の札で始まる項目が {limit} 個あれば指摘
78
- en: reported once {limit} list items open with a bold label
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)
79
102
  rewrite:
80
103
  depth: structure
81
104
  ja:
@@ -44,8 +44,8 @@ example:
44
44
  会議(定例)は月曜です。報告(月次)は金曜です。資料(最新版)を配ります。
45
45
 
46
46
  not_flagged:
47
- ja: 日本語の字に接する括弧だけを数え、丸括弧と角括弧は別々に比べます。Markdown のリンクは数えず、注の番号([1]、[^1])は注の番号どうしで、行の頭の番号や英字の札((1)、[Web])と、それを指す番号(4(2)で)は、それどうしで比べます。英語の中の括弧(f(x)、API(s))、式の括弧(賃金 × (1 - 時間 ÷ 月平均))、コード、鉤括弧で引いたものの中、行の頭のリンクで引いた外のページの題名(- [題名 (版)](https://…))、文書が自分の見出しを文献として引いた所(著者. 題名(略称)の動向. 誌名.)は数えません。
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)で). 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.
47
+ ja: 日本語の字に接する括弧だけを数え、丸括弧と角括弧は別々に比べます。Markdown のリンクは数えず、注の番号([1]、[^1])は注の番号どうしで、行の頭の番号や英字の札((1)、[Web])と、それを指す番号(4(2)で)は、それどうしで、本文が引く注の番号(注(24)で)は注の番号の引用どうしで比べます。英語の中の括弧(f(x)、API(s))、式の括弧(賃金 × (1 - 時間 ÷ 月平均))、コード、鉤括弧で引いたものの中、行の頭のリンクで引いた外のページの題名(- [題名 (版)](https://…))、文書が自分の見出しを文献として引いた所(著者. 題名(略称)の動向. 誌名.)は数えません。
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
51
  en: reported once the less common way appears {limit} times
@@ -46,8 +46,8 @@ example:
46
46
  We introduced a new procedure. This was meant to cut the work. The procedure reduced overtime, and the reduction should continue next month.
47
47
 
48
48
  not_flagged:
49
- ja: 段落が変われば数え直します。「それぞれ」のように一語になったもの、接続詞の「そして」、話を切り替える「それはとにかく」「それはさておき」は数えません。英語では、「This Agreement」「This section」のように文書そのものを指す書き出しと、「It is worth」「It seems」のように後ろを指す It は数えません。
50
- en: The count restarts at each paragraph. Words such as それぞれ, the conjunction そして, and phrases that change the subject (それはとにかく, それはさておき) are not counted. In English, an opening that names the document itself ("This Agreement", "This section") and an "it" that stands for what follows ("It is worth", "It seems") are not counted.
49
+ ja: 段落が変われば数え直します。「それぞれ」のように一語になったもの、接続詞の「そして」、話を切り替える「それはとにかく」「それはさておき」は数えません。英語では、「This Agreement」「This section」のように文書そのものを指す書き出しと、「It is worth」「It seems」「It was not until」のように後ろを指す It は数えません。続く文がまた It で始まるときは、前の文と同じものを指し続けているので、その連なりを一文と数えます。
50
+ en: The count restarts at each paragraph. Words such as それぞれ, the conjunction そして, and phrases that change the subject (それはとにかく, それはさておき) are not counted. In English, an opening that names the document itself ("This Agreement", "This section") and an "it" that stands for what follows ("It is worth", "It seems", "It was not until") are not counted. Sentences that open with "It" one after another keep pointing at what the first did, so the chain counts once.
51
51
  level_meaning:
52
52
  ja: 指示語で始まる文 {limit} 文の連続まで
53
53
  en: up to {limit} such sentences in a row
@@ -62,8 +62,8 @@ example:
62
62
  The trial runs for 3 months from April 1, 2026 (until June 30, 2026).
63
63
 
64
64
  not_flagged:
65
- ja: 三通りの数え方(終わりを含める、含めない、初日を数えずに過ぎた日)のどれとも合わないときだけ指します。「約3か月」「3か月程度」のような目安の期間、「週3日」「月10日」のような期間あたりの日数と「週休2日制」「4週8休」の中の数、日付が三つ以上か期間が二つ以上ある文、年を書いた日付と書かない日付の組は見ません。「最大3泊」のような目安の泊数と、日付の無い泊数も見ません。勤務時間は、実働の書いていない所、長さの無い休憩(休憩あり)、一行に時間の範囲が二つ以上ある所(シフト表は行ごとに実働を書いた行だけ)、「翌」などの印の無い日をまたぐ範囲を見ません。勤務表は、休憩か実働の列の無い表、読めない升(休憩なし、単位の無い休憩の数、片方にだけ午前・午後を書いた時刻)のある行、夜勤などの印の無い文書で日をまたぐ行を見ません。
66
- en: Only an end that matches none of the three ways of counting is pointed out. A rough length ("about 3 months"), a count in each period ("3 days a week"), a sentence with three or more dates or two or more lengths, and a pair of one date with a year and one without are left alone. So are a rough number of nights ("up to 3 nights") and nights written without dates. Working hours are left alone without a stated total, with a break of no length ("breaks provided"), with two or more ranges of time on a line (a shift table only on rows that state their own hours), and across midnight without a next-day mark. In a timesheet, a table without a Break or an Hours column, a row with a cell that cannot be read exactly (no break, a bare number of break, a.m. or p.m. on only one time), and a row across midnight in a document that does not mention night work are left alone.
65
+ ja: 三通りの数え方(終わりを含める、含めない、初日を数えずに過ぎた日)のどれとも合わないときだけ指します。「約3か月」「3か月程度」のような目安の期間、「週3日」「月10日」のような期間あたりの日数と「週休2日制」「4週8休」の中の数、日付が三つ以上か期間が二つ以上ある文、年を書いた日付と書かない日付の組は見ません。「最大3泊」のような目安の泊数と、日付の無い泊数も見ません。「43 days and 43 nights」のように日数を先に同じ数の泊数と並べたものは、昼も夜もずっとの意味なので見ません。勤務時間は、実働の書いていない所、長さの無い休憩(休憩あり)、一行に時間の範囲が二つ以上ある所(シフト表は行ごとに実働を書いた行だけ)、「翌」などの印の無い日をまたぐ範囲を見ません。勤務表は、休憩か実働の列の無い表、読めない升(休憩なし、単位の無い休憩の数、片方にだけ午前・午後を書いた時刻)のある行、夜勤などの印の無い文書で日をまたぐ行を見ません。
66
+ en: Only an end that matches none of the three ways of counting is pointed out. A rough length ("about 3 months"), a count in each period ("3 days a week"), a sentence with three or more dates or two or more lengths, and a pair of one date with a year and one without are left alone. So are a rough number of nights ("up to 3 nights"), nights written without dates, and as many days as nights with the days first ("43 days and 43 nights", meaning round the clock). Working hours are left alone without a stated total, with a break of no length ("breaks provided"), with two or more ranges of time on a line (a shift table only on rows that state their own hours), and across midnight without a next-day mark. In a timesheet, a table without a Break or an Hours column, a row with a cell that cannot be read exactly (no break, a bare number of break, a.m. or p.m. on only one time), and a row across midnight in a document that does not mention night work are left alone.
67
67
  rewrite:
68
68
  depth: light
69
69
  ja:
@@ -47,8 +47,8 @@ example:
47
47
  The new feature is live 🎉 Try it today, and tell us what you think.
48
48
 
49
49
  not_flagged:
50
- ja: 短い文書(日本語 500 字、英語 200 語より短いもの)は測りません。
51
- en: Documents under 200 words are not measured.
50
+ ja: 短い文書(日本語 500 字、英語 200 語より短いもの)は測りません。語と語の間の矢印(設定→プリンター、Settings → Printers)はメニューの道筋や流れを示す区切りなので数えません。行頭の矢印は数えます。
51
+ en: Documents under 200 words are not measured. An arrow between two words (Settings → Printers) marks a menu path or a flow and is not counted; an arrow opening a line is.
52
52
  level_meaning:
53
53
  ja: 1000 字あたり絵文字 {limit} 個まで
54
54
  en: up to {limit} emoji per 1000 words
@@ -70,5 +70,5 @@ example:
70
70
  Fit the parts.
71
71
 
72
72
  not_flagged:
73
- ja: すぐ後ろに深い見出しが来る節(小さな節に分けたもの)は指しません。Markdown の文書でだけ動きます。
74
- en: A heading followed by a deeper heading (a section split into subsections) is not reported. It runs on Markdown only.
73
+ ja: すぐ後ろに深い見出しが来る節(小さな節に分けたもの)は指しません。同じ深さの見出しでも、番号が節の下の番号(3. の後の 3.1、4. の後の (1))なら同じです。Markdown の文書でだけ動きます。
74
+ en: A heading followed by a deeper heading (a section split into subsections) is not reported, nor one followed by a heading of the same depth numbered under it (3. then 3.1, 4. then (1)). It runs on Markdown only.
@@ -46,8 +46,8 @@ example:
46
46
  申込は2024年4月10日までです。説明会は2024年4月3日と2024年4月5日に開きます。
47
47
 
48
48
  not_flagged:
49
- ja: 鉤括弧で引いたもの、項目と注の番号(「1.」「(1)」「※1」)、箇条書きの頭の番号、版の番号の続き(TLS1.2 の 2)、注や URL を含む文、文書の頭の日付の行(更新日:令和7年9月27日)、番号の札(TEL:03…)、アポストロフィでつないだ英字の語のかけら(Van't Hoff の t)は数えません。小文字を含む半角の英語の語(AI for Science の for と Science)は、英字の書き方の票には入れますが、少ないほうとしては指摘しません。英語の語は、略語を全角で書く文書でも半角で書くためです。英字一字・英字の語・数字一字・数字の並びは別々に比べるので、「1桁は全角、2桁以上は半角」はそろっていると見ます。三桁ごとに区切った数(5,500)は一つの数で、5 を一桁の数とは数えません。有価証券報告書の項目の番号(4【経営者による…】)も数えません。表のセルの数字が続いてしまったもの(8,457 と 95.7 の 8,45795.7)の中の並びは、書き方の票には入れますが、少ないほうとしては指摘しません。セルの切れ目が見えず、8 を一桁の数と読めないためです。全角の英字の語が一つの語(BAR)しかない文書では、別の語(DELICATE)を少ないほうとして指摘しません(同じ語を半角で書いた BAR は指摘します)。どちらの書き方が正しいかは決めません。
50
- en: Quotations in brackets, item and note numbers (1., (1), ※1), a number at the head of a list item, the rest of a version number (the 2 of TLS1.2), a date line at the head of the document (更新日:令和7年9月27日), the label of a number (TEL:03…), a piece of a word joined by an apostrophe (the t of Van't Hoff), and notes or sentences with a URL are not counted. A half-width English word with lower case (the for and Science of AI for Science) counts toward the document's way of writing letters but is never reported itself, since English words stay half-width even where acronyms are full-width. Single letters, words, single digits and longer numbers are compared separately, so "one digit full-width, more digits half-width" counts as consistent. A number grouped in thousands (5,500) is one number, so its 5 is not a single digit. Nor is the item number of an annual securities report (4【経営者による…】) counted. Digits inside numbers of table cells run together (8,45795.7 for 8,457 and 95.7) count toward the document's way of writing but are never reported, since the cell boundary cannot be seen and the 8 cannot be read as a single digit. Where the usual way of writing words rests on one word alone (BAR), a different word (DELICATE) is not reported as the minority; the same word written the other way (BAR) still is. Neither way is called right.
49
+ ja: 鉤括弧で引いたもの、項目と注の番号(「1.」「(1)」「※1」)、箇条書きの頭の番号、版の番号の続き(TLS1.2 の 2)、注や URL を含む文、文書の頭の日付の行(更新日:令和7年9月27日)、番号の札(TEL:03…)、アポストロフィでつないだ英字の語のかけら(Van't Hoff の t)は数えません。小文字を含む半角の英語の語(AI for Science の for と Science)は、英字の書き方の票には入れますが、少ないほうとしては指摘しません。英語の語は、略語を全角で書く文書でも半角で書くためです。英字一字・英字の語・数字一字・数字の並びは別々に比べるので、「1桁は全角、2桁以上は半角」はそろっていると見ます。英字一字と数字を違う幅で書いた並び(Q5、H30)は、Q と 5 に分けてそれぞれの組で数えます。ほかの混ざった並び(IoT)は数えません。三桁ごとに区切った数(5,500)は一つの数で、5 を一桁の数とは数えません。有価証券報告書の項目の番号(4【経営者による…】)も数えません。表のセルの数字が続いてしまったもの(8,457 と 95.7 の 8,45795.7)の中の並びは、書き方の票には入れますが、少ないほうとしては指摘しません。セルの切れ目が見えず、8 を一桁の数と読めないためです。全角の英字の語が一つの語(BAR)しかない文書では、別の語(DELICATE)を少ないほうとして指摘しません(同じ語を半角で書いた BAR は指摘します)。どちらの書き方が正しいかは決めません。
50
+ en: Quotations in brackets, item and note numbers (1., (1), ※1), a number at the head of a list item, the rest of a version number (the 2 of TLS1.2), a date line at the head of the document (更新日:令和7年9月27日), the label of a number (TEL:03…), a piece of a word joined by an apostrophe (the t of Van't Hoff), and notes or sentences with a URL are not counted. A half-width English word with lower case (the for and Science of AI for Science) counts toward the document's way of writing letters but is never reported itself, since English words stay half-width even where acronyms are full-width. Single letters, words, single digits and longer numbers are compared separately, so "one digit full-width, more digits half-width" counts as consistent. A single letter and a number written in different widths (Q5, H30) are split, and Q and 5 each count in their own group; other mixed runs (IoT) are not counted. A number grouped in thousands (5,500) is one number, so its 5 is not a single digit. Nor is the item number of an annual securities report (4【経営者による…】) counted. Digits inside numbers of table cells run together (8,45795.7 for 8,457 and 95.7) count toward the document's way of writing but are never reported, since the cell boundary cannot be seen and the 8 cannot be read as a single digit. Where the usual way of writing words rests on one word alone (BAR), a different word (DELICATE) is not reported as the minority; the same word written the other way (BAR) still is. Neither way is called right.
51
51
  level_meaning:
52
52
  ja: 少ないほうが組の {limit}% 以下のとき指摘
53
53
  en: reported when the minority form is {limit}% of its group or less
@@ -2,7 +2,7 @@ id: katakana-density
2
2
  layer: L3
3
3
  status: stable
4
4
  how_to_find: katakana-density
5
- # Katakana runs are read from the characters, so the rule needs no morphology. chaff.yaml の names に並べた名前は数えない。
5
+ # Katakana runs are read from the characters, so the rule needs no morphology. chaff.yaml の names に並べた名前と題名の語は数えない。
6
6
  languages: [ja]
7
7
  severity: info
8
8
 
@@ -72,8 +72,8 @@ example:
72
72
  営業の見込みの一覧は、毎週の報告で上の人に上げます。
73
73
 
74
74
  not_flagged:
75
- ja: 短い文書は測りません。コードの中の語と、chaff.yaml の names に並べた名前は数えません。製品名も外来語と区別できないので数えますが、上限は人の書いた技術記事の多さに合わせてあり、普通の技術文書はたいてい収まります。
76
- en: Short documents are not measured. Words in code and the names listed in chaff.yaml are not counted. Product names are counted, as they cannot be told apart, but the limit sits above most human-written technical articles.
75
+ ja: 短い文書は測りません。コードの中の語と、chaff.yaml の names に並べた名前と、題名(最初の大見出し)にあるカタカナ語は数えません。題名の語は文書の主題で(アカウントの登録方法を書いた手引きのアカウント)、言い換えられないからです。製品名も外来語と区別できないので数えますが、上限は人の書いた技術記事の多さに合わせてあり、普通の技術文書はたいてい収まります。
76
+ en: Short documents are not measured. Words in code, the names listed in chaff.yaml and the katakana words of the title (the first top-level heading) are not counted; the title names what the document is about (アカウント in a guide to registering an account), which cannot be said another way. Product names are counted, as they cannot be told apart, but the limit sits above most human-written technical articles.
77
77
  level_meaning:
78
78
  ja: カタカナ語が 1000 字あたり {limit} 語まで
79
79
  en: "katakana loanwords: up to {limit} per 1000 characters"
@@ -9,8 +9,8 @@ name:
9
9
  en: Look-alike character
10
10
 
11
11
  why:
12
- ja: 部首の字(⼈ U+2F08)や互換漢字は、ふつうの「人」と同じに見えて別の字です。濁点を別の字にした「か+゛」(macOS のファイル名や、そこからコピーした文に多い)も、「が」と同じに見えて別の並びです。どれも検索、並べ替え、辞書引き、表記の照合から漏れ、読み手には直す所が見えません。PDF からのコピーや、入力の変換で入ります。コードの中も見ます。
13
- en: "A Kangxi radical (⼈ U+2F08) looks like the ordinary 人 and is another character; so is a CJK compatibility ideograph. A letter written as a base and a separate combining mark (e + U+0301, common in macOS file names and text copied from them) looks like é and is another sequence. Search, sorting, dictionaries and spelling checks all miss them, and the reader cannot see what to fix. They come from PDF copies and input methods. Code is checked too."
12
+ ja: 部首の字(⼈ U+2F08)や互換漢字は、ふつうの「人」と同じに見えて別の字です。濁点を別の字にした「か+゛」(macOS のファイル名や、そこからコピーした文に多い)も、「が」と同じに見えて別の並びです。カタカナの間の全角ハイフン「-」やマイナス「−」(ニュ-ス)も、長音の「ー」に見えて別の字です。どれも検索、並べ替え、辞書引き、表記の照合から漏れ、読み手には直す所が見えません。PDF からのコピーや、入力の変換で入ります。コードの中も見ます。
13
+ en: "A Kangxi radical (⼈ U+2F08) looks like the ordinary 人 and is another character; so is a CJK compatibility ideograph. A letter written as a base and a separate combining mark (e + U+0301, common in macOS file names and text copied from them) looks like é and is another sequence. A full-width hyphen or a minus between katakana (ニュ-ス) looks like the long-vowel mark ー and is another character. Search, sorting, dictionaries and spelling checks all miss them, and the reader cannot see what to fix. They come from PDF copies and input methods. Code is checked too."
14
14
 
15
15
  message:
16
16
  ja: 「{written}」({code})は「{usual}」と同じに見える別の字です
@@ -29,6 +29,9 @@ messages:
29
29
  spacing-mark:
30
30
  ja: 「{written}」は濁点・半濁点を別の字で書いています({code})。一字の「{usual}」と書きます
31
31
  en: '"{written}" writes the voicing mark as a separate character ({code}), not the single letter "{usual}"'
32
+ dash:
33
+ ja: 「{written}」({code})はダッシュの字です。カタカナの長音は「{usual}」と書きます
34
+ en: '"{written}" ({code}) is a dash, not the katakana long-vowel mark "{usual}"'
32
35
 
33
36
  how_to_fix:
34
37
  ja: その字を消して、ふつうの字を打ち直してください。文書全体を NFC に正規化しても直ります(部首の字は NFKC)。
@@ -40,7 +43,7 @@ use_for: [business, technical, blog, legal, docs, academic, literature, speech]
40
43
 
41
44
  group: slips
42
45
  summary:
43
- ja: 部首の字(⼈)、互換漢字、字と分かれた濁点(か+゛)のような、ふつうの字と同じに見える別の字
46
+ ja: 部首の字(⼈)、互換漢字、分かれた濁点(か+゛)、長音に見えるダッシュ(ニュ-ス)など、同じに見える別の字
44
47
  en: A character that looks like an ordinary one but is a different one
45
48
  example:
46
49
  ja:
@@ -53,8 +56,8 @@ example:
53
56
  Send the form to the café office.
54
57
 
55
58
  not_flagged:
56
- ja: 一字にまとまる形の無い組み合わせ(字に付いた異体字の指定、合成済みの形の無いアクセント)と、Unicode が別の字として持つ互換漢字(﨑 など)は指しません。字そのものを話題にした語(濁点、部首、NFD など)が同じ行かすぐ前・すぐ後ろの行にある字(「ホ゜ケット のような、コピペで出る濁点のチェック」)は、見せるために書いた例なので指しません。
57
- en: Combinations with no single precomposed form (a variation selector after a character, an accent with no precomposed letter) and compatibility ideographs that Unicode keeps as their own characters (﨑) are not reported. Nor is a look-alike on a line that talks about such characters (decomposed, Kangxi, NFD), or on the line just before or after one, as it is an example shown on purpose.
59
+ ja: 一字にまとまる形の無い組み合わせ(字に付いた異体字の指定、合成済みの形の無いアクセント)と、Unicode が別の字として持つ互換漢字(﨑 など)は指しません。カタカナの間でも半角の「-」は、型や範囲をつなぐ字(<アルゴリズム>-<ハッシュ>、ァ-ヶ)なので指しません。字そのものを話題にした語(濁点、部首、長音、NFD など)が同じ行かすぐ前・すぐ後ろの行にある字(「ホ゜ケット のような、コピペで出る濁点のチェック」)は、見せるために書いた例なので指しません。
60
+ en: Combinations with no single precomposed form (a variation selector after a character, an accent with no precomposed letter) and compatibility ideographs that Unicode keeps as their own characters (﨑) are not reported. A half-width - between katakana joins the parts of a template or a range (<アルゴリズム>-<ハッシュ>, ァ-ヶ) and is not reported. Nor is a look-alike on a line that talks about such characters (decomposed, Kangxi, NFD), or on the line just before or after one, as it is an example shown on purpose.
58
61
  sources: [textlint-ja-presets]
59
62
  rewrite:
60
63
  depth: light
@@ -17,6 +17,8 @@ uses: [pos]
17
17
  # 文書が単独で使う法令・制度の名前(政治資金規正法)と、法令が名に取った語(愛玩動物看護師法の「愛玩動物看護師」)は、連なりの中でも割る。
18
18
  # 職名(kanji-known-word)のすぐ前か後ろの人の姓と名も割る。元号の付いた年(令和元年)と、仮名へ続く接続の語の漢字(及び の「及」)は外す。
19
19
  # 連なりの中ほどの list-suffix(高齢運転者等専用駐車区間の「等」)は語の終わりを見せるので、そこでも割る。
20
+ # すぐ後ろに designation-phrase(として認定)が続く連なりは、制度が決めた区分の名前なので数えない。
21
+ # 句点の無い一行が「〜の」と notice-title-ending(お知らせ、ご案内)で終われば、「の」の前の連なりは送り手が付けた題の名前なので数えない。
20
22
  extra_word_lists:
21
23
  [
22
24
  prefecture-unit,
@@ -30,6 +32,8 @@ extra_word_lists:
30
32
  reference-prefix,
31
33
  list-suffix,
32
34
  kanji-known-word,
35
+ designation-phrase,
36
+ notice-title-ending,
33
37
  ]
34
38
  languages: [ja]
35
39
  severity: info
@@ -42,8 +42,8 @@ example:
42
42
  after: 本社営業部にある第二課の方針を確認しました。
43
43
 
44
44
  not_flagged:
45
- ja: 読点で区切った並び、=・:・→ で区切った句、「」や『』の中の題名や引用、行の頭のリンクで引いた外のページの題名、文の中に書いた法律の題名(障害者等の移動等の円滑化の促進に関する法律)、短い呼び名を付けた長い名前(被害者のための相談センター(以下「センター」という。))、文書が一度鉤括弧で引いた名前を括弧なしで書き直したもの(「地域のための共通の指針」と引いた後の、地域のための共通の指針の改定)は数えません。括弧(】や ))は、解析器が次の語とつなげて読んでも連なりを切ります。人の集まりを敬って呼ぶ語の前の「の」も、その呼び方が「の」で次の語に係るとき(国民の皆様の期待、被災者の方々の暮らし)は一つの呼び方の中なので数えません。決まった言い回しの中の「の」(絶滅のおそれのある種の「おそれのある」)も、一語のように読むので数えません。表を一続きの文に平らにしたもの(セルの数字がつながった 8,45795.7 や、見出しのセルが単位の括弧で閉じる 割合(%)被所有割合(%)…)は、セルの切れ目が見えないので数えません。
46
- en: Items separated by commas, phrases separated by =, a colon or an arrow, titles or quotations inside 「」 or 『』, the title of an outside page quoted by a link at a line's head, the title of a law written in the sentence (障害者等の移動等の円滑化の促進に関する法律), a long name given a short one (被害者のための相談センター(以下「センター」という。)), a name the document quotes once and writes again without brackets, and the の before an honorific for a group of people when that form of address goes on with の (国民の皆様の期待, 被災者の方々の暮らし), are not counted. Nor is the の inside a set phrase read as one word (おそれのある, "at risk of", in 絶滅のおそれのある種). Nor is a table flattened into one run of text (numbers of two cells run together, 8,45795.7, or header cells each closed by a unit in brackets, 割合(%)被所有割合(%)…), whose cell boundaries cannot be seen. A bracket (】 or ")") ends the run even when the parser joins it to the next word.
45
+ ja: 読点で区切った並び、=・:・→ で区切った句、「」や『』の中の題名や引用、行の頭のリンクで引いた外のページの題名、文の中に書いた法律の題名(障害者等の移動等の円滑化の促進に関する法律)、短い呼び名を付けた長い名前(被害者のための相談センター(以下「センター」という。))、文書が一度鉤括弧で引いた名前を括弧なしで書き直したもの(「地域のための共通の指針」と引いた後の、地域のための共通の指針の改定)は数えません。括弧(】や ))は、解析器が次の語とつなげて読んでも連なりを切ります。人の集まりを敬って呼ぶ語の前の「の」も、その呼び方が「の」で次の語に係るとき(国民の皆様の期待、被災者の方々の暮らし)は一つの呼び方の中なので数えません。置き場所を前の語との関係で言う語(下、上、横、裏)の前の「の」も、その場所が「の」で次の語に係るとき(ラックの下の段)は一つの場所の名前の中なので数えません。決まった言い回しの中の「の」(絶滅のおそれのある種の「おそれのある」)も、一語のように読むので数えません。表を一続きの文に平らにしたもの(セルの数字がつながった 8,45795.7 や、見出しのセルが単位の括弧で閉じる 割合(%)被所有割合(%)…)は、セルの切れ目が見えないので数えません。
46
+ en: Items separated by commas, phrases separated by =, a colon or an arrow, titles or quotations inside 「」 or 『』, the title of an outside page quoted by a link at a line's head, the title of a law written in the sentence (障害者等の移動等の円滑化の促進に関する法律), a long name given a short one (被害者のための相談センター(以下「センター」という。)), a name the document quotes once and writes again without brackets, and the の before an honorific for a group of people when that form of address goes on with の (国民の皆様の期待, 被災者の方々の暮らし), are not counted. Nor is the の before a word that places something against another (下, 上, 横, 裏) when the place goes on with の (ラックの下の段, the shelf under the rack). Nor is the の inside a set phrase read as one word (おそれのある, "at risk of", in 絶滅のおそれのある種). Nor is a table flattened into one run of text (numbers of two cells run together, 8,45795.7, or header cells each closed by a unit in brackets, 割合(%)被所有割合(%)…), whose cell boundaries cannot be seen. A bracket (】 or ")") ends the run even when the parser joins it to the next word.
47
47
  level_meaning:
48
48
  ja: 同じ助詞の連続 {limit} 回まで
49
49
  en: up to {limit} of the same particle in a row
@@ -67,8 +67,8 @@ example:
67
67
  We fixed three bugs, closed four issues and merged two pull requests. The release also adds five tests.
68
68
 
69
69
  not_flagged:
70
- ja: 鉤括弧や引用符の中の数、注や URL を含む文、日本語の中の英文は数えません。「一つ」「一人」のような一だけの漢数字と、「万人」「千人」のような位の字だけの漢数字、「第三回」「統一」のように漢字の後ろの数、日付の日・月・年、英語で名前の一部になった数(Grade 5 students、Room 12、§4)は数えません。位取りは、通貨の記号か数え方の語・単位が付いた大きな数だけを見て、年に見える 4 桁の数(2019 年)、番号(H.R. 5376)、版や電話番号、コミットのハッシュのような 16 進の符号(2704b2d)は見ません。数の多くが条の外にある文書の中で条として引いた法令(手引きが根拠に引いた手数料令の「二千四百円」)も、法令の書き方なので数えません。全角と半角の違いは fullwidth-alnum-consistency が見ます。法務・文学・話し言葉のジャンルでは見ません。
71
- en: 'Numbers inside quotation marks, sentences with a note mark or a URL, and text in another language are not counted. A number word that opens a sentence (spelt out by every style), "one", a number before a unit of measure (6 months, 3 miles, 2 nights) and a number that names a group or a section (Grade 5 students, Room 12, §4) are not counts. Grouping is checked only for large numbers with a currency sign or a word after them; a four-digit number that looks like a year, a label number (H.R. 5376, Form 1040), versions, phone numbers and hexadecimal codes such as a commit hash (2704b2d) are left out. Articles of a law set out in a document whose numbers are mostly outside them (a manual quoting the order its fees rest on) keep the law''s numerals and are not counted. Legal, literary and speech genres do not run this rule.'
70
+ ja: 鉤括弧や引用符の中の数、注や URL を含む文、日本語の中の英文は数えません。「一つ」「一人」のような一だけの漢数字と、「万人」「千人」のような位の字だけの漢数字、「第三回」「統一」のように漢字の後ろの数、「二枚貝」「三人称」のように一つの語の頭にある数、日付の日・月・年、英語で名前の一部になった数(Grade 5 students、Room 12、§4)は数えません。位取りは、通貨の記号か数え方の語・単位が付いた大きな数だけを見て、年に見える 4 桁の数(2019 年)、番号(H.R. 5376)、版や電話番号、コミットのハッシュのような 16 進の符号(2704b2d)は見ません。数の多くが条の外にある文書の中で条として引いた法令(手引きが根拠に引いた手数料令の「二千四百円」)も、法令の書き方なので数えません。全角と半角の違いは fullwidth-alnum-consistency が見ます。法務・文学・話し言葉のジャンルでは見ません。
71
+ en: 'Numbers inside quotation marks, sentences with a note mark or a URL, and text in another language are not counted. A number word that opens a sentence (spelt out by every style), "one", a number before a unit of measure (6 months, 3 miles, 2 nights) and a number that names a group or a section (Grade 5 students, Room 12, §4) are not counts, nor is a kanji numeral that opens a word of its own (二枚貝, a bivalve; 三人称, the third person). Grouping is checked only for large numbers with a currency sign or a word after them; a four-digit number that looks like a year, a label number (H.R. 5376, Form 1040), versions, phone numbers and hexadecimal codes such as a commit hash (2704b2d) are left out. Articles of a law set out in a document whose numbers are mostly outside them (a manual quoting the order its fees rest on) keep the law''s numerals and are not counted. Legal, literary and speech genres do not run this rule.'
72
72
  level_meaning:
73
73
  ja: 少ないほうの書き方が、その種類の数の {limit}% 以下のとき指摘
74
74
  en: reported when the less common style is {limit}% of its kind or less
@@ -67,8 +67,8 @@ example:
67
67
  3. On termination, the Supplier shall return all Confidential Information to the Customer within ten days.
68
68
 
69
69
  not_flagged:
70
- ja: 期限を書いた文が、期限の無い義務の文より多くない文書では、書き手がそう書くと決めたとみなして指しません。同じ文に期限(7日以内、毎月末日までに、直ちに、事前に)があれば指しません。「速やかに」「遅滞なく」だけの期限は vague-deadline が見ます。権利を定める文(「返還を請求することができる」)と、金額を書いた文(「月額150,000円を支払う」は値段を決める文で、いつ払うかは別の条が決めます)は見ません。義務は文の終わりの述語で読み、条件の中の語(「通知したときは」)は見ません。法令・判決・特許は見ません。契約書・規約のジャンルで見ます。義務と同じ条(条が無ければ同じ箇条書きか段落)が、その行いの日付を名指す期限(支払う義務なら支払期日、納入なら納期)を書いていれば、その日が義務の時なので指しません。
71
- en: 'A document where sentences stating a limit are not more than those holding a duty with none is taken to write its duties that way on purpose, and is not reported. A sentence that states a limit (within seven days, by the fifth business day, immediately) is not reported; one with "promptly" alone is vague-deadline''s. A sentence that grants a right (may) or states an amount (shall pay a monthly fee of $9,000, which sets the price; another clause says when) is not read. "by email" says how, not when, and is not a limit. Statutes, court decisions and patents are not read; the contract genre runs this rule. A duty whose article (else its list or paragraph) names the dated deadline of its act (the Due Date for a duty to pay, the Delivery Date for one to deliver) is timed by it, and is not reported.'
70
+ ja: 期限を書いた文が、期限の無い義務の文より多くない文書では、書き手がそう書くと決めたとみなして指しません。同じ文に期限(7日以内、毎月末日までに、直ちに、事前に)があれば指しません。「速やかに」「遅滞なく」だけの期限は vague-deadline が見ます。権利を定める文(「返還を請求することができる」)と、金額を書いた文(「月額150,000円を支払う」は値段を決める文で、いつ払うかは別の条が決めます)は見ません。義務は文の終わりの述語で読み、条件の中の語(「通知したときは」)は見ません。法令・判決・特許は見ません。契約書・規約のジャンルで見ます。義務と同じ条(条が無ければ同じ箇条書きか段落)が、その行いの日付を名指す期限(支払う義務なら支払期日、納入なら納期)を書いていれば、その日が義務の時なので指しません。同じ条のほかの項が同じ行いに期限を書き、どちらかがもう一方を指していれば(第1項で何を払うかを書き、第3項が「本条1項に定める対価」をいつまでに払うかを書く条。「前項の対価を振込みで支払う」も同じ)、その期限が義務の時なので指しません。「2か月を目途に」も期限です。
71
+ en: 'A document where sentences stating a limit are not more than those holding a duty with none is taken to write its duties that way on purpose, and is not reported. A sentence that states a limit (within seven days, by the fifth business day, immediately) is not reported; one with "promptly" alone is vague-deadline''s. A sentence that grants a right (may) or states an amount (shall pay a monthly fee of $9,000, which sets the price; another clause says when) is not read. "by email" says how, not when, and is not a limit. Statutes, court decisions and patents are not read; the contract genre runs this rule. A duty whose article (else its list or paragraph) names the dated deadline of its act (the Due Date for a duty to pay, the Delivery Date for one to deliver) is timed by it, and is not reported. Nor is a duty whose article states a limit for the same act in another paragraph, when one of the two points at the other (the first paragraph says what is paid; the third pays "the fee in paragraph 1 of this Article" within ten days).'
72
72
  rewrite:
73
73
  depth: light
74
74
  ja:
@@ -50,7 +50,7 @@ example:
50
50
  after: We tried generative AI on our internal help desk, and replies now take half as long.
51
51
 
52
52
  not_flagged:
53
- ja: 文書の冒頭(最初の 4 文)だけを見ます。本文の途中の「近年」は指しません。
53
+ ja: 文書の冒頭(最初の 4 文)だけを見ます。本文の途中の「近年」も、冒頭の文の途中の「近年の〜」(その後、近年の災害を踏まえて)も指しません。
54
54
  en: Only the opening (the first four sentences) is checked; "in recent years" later in the text is not reported.
55
55
  level_meaning:
56
56
  ja: 当てはまる書き出しが {limit} 箇所あれば指摘
@@ -25,7 +25,7 @@ levels: { strict: 40, normal: 30, relaxed: 20 }
25
25
  options:
26
26
  min_paragraphs:
27
27
  kind: count
28
- default: 6
28
+ default: 9
29
29
  about:
30
30
  ja: 測る段落の数の下限。段落が少ないと長さのばらつきは偶然で小さく出て、人の書いた文書でも揃って見えます
31
31
  en: The fewest paragraphs measured. With few paragraphs, the variation is small by chance, and a person's writing looks uniform too
@@ -56,6 +56,12 @@ example:
56
56
 
57
57
  そのあとで、記録を残します。どの設定を変えたかを、仲間が読める場所に書き留めてください。
58
58
 
59
+ さらに、通知を整えます。届く知らせの種類を選んで、要らないものは止めてください。
60
+
61
+ また、表示を見直します。文字の大きさと色の組み合わせを、読みやすい形に変えてください。
62
+
63
+ 念のため、控えを取ります。書き出しの画面から、今の設定を一つのファイルに保存してください。
64
+
59
65
  最後に、動きを確かめます。試しの文書を一つ置いて、指摘が画面に出ることを見てください。
60
66
  after: |
61
67
  最初に、道具を手元に入れます。
@@ -68,6 +74,12 @@ example:
68
74
 
69
75
  そのあとで、記録を残します。どの設定を変えたかを、仲間が読める場所に書き留めてください。変えた理由も一言添えておくと、半年後の自分が助かります。
70
76
 
77
+ さらに、通知を整えます。
78
+
79
+ また、表示を見直します。文字の大きさと色の組み合わせを、読みやすい形に変えてください。
80
+
81
+ 念のため、控えを取ります。
82
+
71
83
  最後に、動きを確かめます。試しの文書を一つ置いて、指摘が画面に出ることを見てください。
72
84
  en:
73
85
  config: { genre: blog/tech }
@@ -82,6 +94,12 @@ example:
82
94
 
83
95
  Then, write it down. Note which settings you changed in a place where your team can read it.
84
96
 
97
+ Next, set up notifications. Choose which alerts you want and turn off the ones you do not need.
98
+
99
+ Also, adjust the display. Change the text size and the colors to a pair that is easy to read.
100
+
101
+ To be safe, save a copy. Export the current settings from the backup page and keep the file.
102
+
85
103
  Finally, check that it works. Add a sample document and look for the findings on the screen.
86
104
  after: |
87
105
  First, install the tool.
@@ -94,11 +112,17 @@ example:
94
112
 
95
113
  Then, write it down. Note which settings you changed in a place where your team can read it. Add a line on why, too; it will help you in six months.
96
114
 
115
+ Next, set up notifications.
116
+
117
+ Also, adjust the display. Change the text size and the colors to a pair that is easy to read.
118
+
119
+ To be safe, save a copy.
120
+
97
121
  Finally, check that it works. Add a sample document and look for the findings on the screen.
98
122
 
99
123
  not_flagged:
100
- ja: 段落が 6 より少ない文書は見ません(min_paragraphs で変えられます)。ビジネス文書と技術文書のジャンルでは見ません。
101
- en: Documents with fewer than 6 paragraphs are not checked (min_paragraphs changes it). Business and technical genres do not run this rule.
124
+ ja: 段落が 9 より少ない文書は見ません(min_paragraphs で変えられます)。ビジネス文書と技術文書のジャンルでは見ません。
125
+ en: Documents with fewer than 9 paragraphs are not checked (min_paragraphs changes it). Business and technical genres do not run this rule.
102
126
  level_meaning:
103
127
  ja: 段落の長さのばらつきが {limit}% 未満なら指摘
104
128
  en: reported when paragraph length varies by less than {limit}%
@@ -1,7 +1,7 @@
1
1
  id: redundant-expression
2
2
  layer: L2
3
3
  status: stable
4
- how_to_find: phrase-match
4
+ how_to_find: redundant-pair
5
5
  word_list: redundant-expression
6
6
  uses: [pos]
7
7
  severity: info
@@ -43,8 +43,8 @@ example:
43
43
  この機能は必要で、設定も簡単です。費用はかかりません。
44
44
 
45
45
  not_flagged:
46
- ja: 段落をまたいだ文は続きと見ません。助動詞で終わらない文(体言止め、言い切りの動詞)は比べず、そこで続きが切れます。動詞が違えば(読みました、書きました)同じ文末とは見ません。述語の前の語まで同じ締めの句を三文以上重ねた繰り返し(いい船でした。…いい船でした。…いい船でした。)は、一つと数えます。一つの文の中に「?」で並べた問い(これはリストか?順序付きか?…などです。)も比べません。違う語を同じ型で定義する文の並び(台風は〜を指します。ハリケーンは〜を指します。)は、型をそろえたものなので指しません。
47
- en: Sentences in different paragraphs are not a run. A sentence that does not end with an auxiliary (a noun, a bare verb) is not compared and breaks the run. Different verbs (読みました, 書きました) are different endings. Three sentences or more in a row that close on the very same phrase, the word before the predicate included (いい船でした。…いい船でした。…いい船でした。), are a refrain and count once. Questions run together inside one sentence (これはリストか?順序付きか?…などです。) are not compared either. Sentences that each define a different term in the same frame (台風は〜を指します。ハリケーンは〜を指します。) share their ending on purpose and are not reported.
46
+ ja: 段落をまたいだ文は続きと見ません。助動詞で終わらない文(体言止め、言い切りの動詞)は比べず、そこで続きが切れます。動詞が違えば(読みました、書きました)同じ文末とは見ません。述語の前の語まで同じ締めの句を三文以上重ねた繰り返し(いい船でした。…いい船でした。…いい船でした。)は、一つと数えます。一つの文の中に「?」で並べた問い(これはリストか?順序付きか?…などです。)も比べません。違う語を同じ型で定義する文の並び(台風は〜を指します。ハリケーンは〜を指します。)は、型をそろえたものなので指しません。見出しの語([通信関連]、化学品事業……)で始まる文は新しい項目の始まりで、前の項目の文とは続きと見ません。
47
+ en: Sentences in different paragraphs are not a run. A sentence that does not end with an auxiliary (a noun, a bare verb) is not compared and breaks the run. Different verbs (読みました, 書きました) are different endings. Three sentences or more in a row that close on the very same phrase, the word before the predicate included (いい船でした。…いい船でした。…いい船でした。), are a refrain and count once. Questions run together inside one sentence (これはリストか?順序付きか?…などです。) are not compared either. Sentences that each define a different term in the same frame (台風は〜を指します。ハリケーンは〜を指します。) share their ending on purpose and are not reported. A sentence that opens with a label ([通信関連], 化学品事業……) starts a new item of a list and does not continue the run before it.
48
48
  level_meaning:
49
49
  ja: 同じ文末の文が {limit} 文続くまで
50
50
  en: up to {limit} sentences in a row with the same ending
@@ -60,8 +60,8 @@ example:
60
60
  I have no other questions.
61
61
 
62
62
  not_flagged:
63
- ja: 確認・返信・提出のように、済んだかどうかが後で分かる動作を頼む文だけを見ます。「ご了承ください」のような心構えの依頼、「ご不明な点があれば、ご連絡ください」のような条件付きの申し出、「ご質問はメールでお送りください」のような質問を受け付ける申し出、「ご相談ください」「お越しください」のような誘い、連絡先の行(「電話:」)と同じ文の依頼は見ません。期限か担当が、その文か次の文にあれば指しません。「ご提出いただく前に」「送信後、」のように、いつするかを依頼の文が言っていれば期限と読みます。見出しが期限を言っていれば(「見積提出期限:…」「【随時受付】」)、その下の依頼はその期限を受け継ぎます。締め切りだけを書く節(見出しが「提出期限」「判断の期限」「DATES:」だけで、締め切りの語と日付がある)があれば、その後ろの依頼と、同じ見出しの下で前に並ぶ節(提案の「結論」)の依頼は、どれもその締め切りを持ちます。「ぜひ参加をご検討ください」は誘いなので見ません。題が「(諮問)」の文書は、審議会に期限を付けずに審議を頼む文書なので見ません。しないように頼む文(「送らないでください」「ご遠慮ください」)は禁止なので見ません。ビジネスの文書でだけ動きます。
64
- en: Only requests for an action whose completion can be checked (review, reply, send) are read. Courtesy requests, conditional offers ("If you have questions, let me know"), open offers ("Please send any questions to me"), invitations ("Please come and register") and a request on a contact line (a "Fax" or "Phone" label and its number) are not. A deadline or owner in the same or the next sentence is enough; so is a timing in the request itself ("after you pay"), or a heading above it that names the deadline. A section of its own for the deadline (headed only "DATES:" or "Deadline", with a deadline word and a date in it) gives that deadline to every request after it, and to the requests in the sections before it at its own level under the same heading (a proposal's "Summary"). In Japanese, 「ぜひ参加をご検討ください」 ("do consider joining") is an invitation, and a document titled 「(諮問)」, which asks a council to deliberate, carries no deadline by its kind. A request not to do something ("Please do not submit comments by email") forbids and is not read. Business documents only.
63
+ ja: 確認・返信・提出のように、済んだかどうかが後で分かる動作を頼む文だけを見ます。「ご了承ください」のような心構えの依頼、「ご不明な点があれば、ご連絡ください」のような条件付きの申し出、「ご質問はメールでお送りください」のような質問を受け付ける申し出、「ご相談ください」「お越しください」のような誘い、連絡先の行(「電話:」)と同じ文の依頼は見ません。期限か担当が、その文か次の文にあれば指しません。「ご提出いただく前に」「送信後、」のように、いつするかを依頼の文が言っていれば期限と読みます。見出しが期限を言っていれば(「見積提出期限:…」「【随時受付】」)、その下の依頼はその期限を受け継ぎます。締め切りだけを書く節(見出しが「提出期限」「判断の期限」「DATES:」だけで、締め切りの語と日付がある)や、決める日を書いた予定の節(見出しが「今後のスケジュール」で、「2026年12月:経営会議にて承認」のように日付と決める段取りの語がある)があれば、その後ろの依頼と、同じ見出しの下で前に並ぶ節(提案の「結論」)の依頼は、どれもその締め切りを持ちます。「ぜひ参加をご検討ください」は誘いなので見ません。題が「(諮問)」の文書は、審議会に期限を付けずに審議を頼む文書なので見ません。しないように頼む文(「送らないでください」「ご遠慮ください」)は禁止なので見ません。ビジネスの文書でだけ動きます。
64
+ en: Only requests for an action whose completion can be checked (review, reply, send) are read. Courtesy requests, conditional offers ("If you have questions, let me know"), open offers ("Please send any questions to me"), invitations ("Please come and register") and a request on a contact line (a "Fax" or "Phone" label and its number) are not. A deadline or owner in the same or the next sentence is enough; so is a timing in the request itself ("after you pay"), or a heading above it that names the deadline. A section of its own for the deadline (headed only "DATES:" or "Deadline", with a deadline word and a date in it), or a schedule that says when the decision is made (headed "Timeline", with a date and a decision word, as in "December 2026, board approval"), gives that deadline to every request after it, and to the requests in the sections before it at its own level under the same heading (a proposal's "Summary"). In Japanese, 「ぜひ参加をご検討ください」 ("do consider joining") is an invitation, and a document titled 「(諮問)」, which asks a council to deliberate, carries no deadline by its kind. A request not to do something ("Please do not submit comments by email") forbids and is not read. Business documents only.
65
65
  rewrite:
66
66
  depth: light
67
67
  ja:
@@ -74,5 +74,5 @@ example:
74
74
  config: { genre: technical/spec }
75
75
 
76
76
  not_flagged:
77
- ja: 要求の文でない文(説明や背景)、法令、ブログやビジネス文書は見ません。語彙表にない言い方は指しません。文書が定めた名前の「等」(以下「委託先等」という、銀行等(…をいう。)、定義の号の頭の語、次の段落で定義する項目だけを書いた語(9 書面等)と、監査等委員会のように後ろへ語が続く「等」は、列挙を閉じているので指しません。すぐ後ろで種類を名指す「等」(印刷等、二次的に利用される場合/印刷等の二次的利用)も、一覧がその種類の例なので指しません。条件(訂正等を行った際に)、与える権利(消去等できるものとします)、禁止や免責(転載等をしてはならない、責任を負わないものとします)の中の「等」も、わざと広く取った一覧なので指しません。「しないこと。」「ではないこと。」で閉じる文(禁止や否定)、権利が誰のものかを定める文(帰属するものとする、留保されるものとします)、「次の行為をしてはならない。」の下に並ぶ項目の中の「等」も同じです。「当該」「前記」で始まる一覧(当該改良、改善等)は前に挙げた一覧を指し直すだけなので、そこでは指しません。要求が何についてかを説明する節の中の「など」(SNSなどを通じて知り合った人と行う取引は、…必要があります)も、果たす義務の中にないので指しません。条件の語のすぐ後ろの括弧の中の「等」(不要な場合(一つの表だけを読むとき等)も付けること)は、いつ当てはまるかの例なので指しません。英語の as soon as possible は、同じ文に日数の期限(no later than two days after)があれば、期限が決まっているので指しません。英語の but not limited to(including, but not limited to)は、契約書では例の一覧で範囲を狭めないための決まった言い方なので、契約書では指しません。
78
- en: Sentences that state no requirement (background, explanation), statutes, and blogs and business documents are not checked. Phrases not on chaff's lists are not reported. In Japanese, an open word in the clause that describes what the requirement is about (SNSなどを通じて…行う取引は、…必要があります) is not reported, since it is not in what the reader is asked to do. An open-ended word inside a name the document defines (a quoted term, one defined in the brackets after it, or one an item of a definition list holds alone and the next paragraph defines) is not reported. "As soon as possible" followed in the same sentence by a limit in numbers ("but in any event no later than two days after") is bounded, and not reported. In a contract, "including, but not limited to" is a term of art that keeps the listed examples from narrowing the class, and is not reported. In Japanese, 等 right before the words that name the kind it gives examples of (印刷等、二次的に利用, "secondary use, such as printing") is not reported either. Nor is a Japanese 等 in a condition (訂正等を行った際に), a right the writer grants (できるものとする) or a prohibition or disclaimer (てはならない, ないものとする), because such a list is kept wide on purpose; the same holds for a sentence closed by a negation (しないこと, ではないこと), one that says who holds a right (帰属するものとする, 留保されるものとします), and the items of a list under a lead that forbids them (次の行為をしてはならない). A Japanese list opened by a pointing word (当該改良、改善等, "the said improvements, etc.") names one given before and is not reported again; or an open list in brackets right after a condition word (場合(…等), "in cases (…, etc.)"), which gives examples of when the requirement applies.
77
+ ja: 要求の文でない文(説明や背景)、法令、ブログやビジネス文書は見ません。語彙表にない言い方は指しません。文書が定めた名前の「等」(以下「委託先等」という、銀行等(…をいう。)、定義の号の頭の語、次の段落で定義する項目だけを書いた語(9 書面等)と、監査等委員会のように後ろへ語が続く「等」は、列挙を閉じているので指しません。文書が定義した語のすぐ後ろの「等」(「秘密情報」と定義した文書の秘密情報等)も、定義したものを広げた名前で、開いた一覧ではないので指しません。すぐ後ろで種類を名指す「等」(印刷等、二次的に利用される場合/印刷等の二次的利用)も、一覧がその種類の例なので指しません。条件(訂正等を行った際に)、与える権利(消去等できるものとします)、禁止や免責(転載等をしてはならない、責任を負わないものとします)の中の「等」も、わざと広く取った一覧なので指しません。「しないこと。」「ではないこと。」で閉じる文(禁止や否定)、権利が誰のものかを定める文(帰属するものとする、留保されるものとします)、「次の行為をしてはならない。」の下に並ぶ項目の中の「等」も同じです。「当該」「前記」で始まる一覧(当該改良、改善等)は前に挙げた一覧を指し直すだけなので、そこでは指しません。要求が何についてかを説明する節の中の「など」(SNSなどを通じて知り合った人と行う取引は、…必要があります)も、果たす義務の中にないので指しません。条件の語のすぐ後ろの括弧の中の「等」(不要な場合(一つの表だけを読むとき等)も付けること)は、いつ当てはまるかの例なので指しません。英語の as soon as possible は、同じ文に日数の期限(no later than two days after)があれば、期限が決まっているので指しません。英語の but not limited to(including, but not limited to)は、契約書では例の一覧で範囲を狭めないための決まった言い方なので、契約書では指しません。
78
+ en: Sentences that state no requirement (background, explanation), statutes, and blogs and business documents are not checked. Phrases not on chaff's lists are not reported. In Japanese, an open word in the clause that describes what the requirement is about (SNSなどを通じて…行う取引は、…必要があります) is not reported, since it is not in what the reader is asked to do. An open-ended word inside a name the document defines (a quoted term, one defined in the brackets after it, or one an item of a definition list holds alone and the next paragraph defines) is not reported, nor is one written right after a term the document defines (秘密情報等 where 「秘密情報」 is defined), which widens a named thing rather than leaving a list open. "As soon as possible" followed in the same sentence by a limit in numbers ("but in any event no later than two days after") is bounded, and not reported. In a contract, "including, but not limited to" is a term of art that keeps the listed examples from narrowing the class, and is not reported. In Japanese, 等 right before the words that name the kind it gives examples of (印刷等、二次的に利用, "secondary use, such as printing") is not reported either. Nor is a Japanese 等 in a condition (訂正等を行った際に), a right the writer grants (できるものとする) or a prohibition or disclaimer (てはならない, ないものとする), because such a list is kept wide on purpose; the same holds for a sentence closed by a negation (しないこと, ではないこと), one that says who holds a right (帰属するものとする, 留保されるものとします), and the items of a list under a lead that forbids them (次の行為をしてはならない). A Japanese list opened by a pointing word (当該改良、改善等, "the said improvements, etc.") names one given before and is not reported again; or an open list in brackets right after a condition word (場合(…等), "in cases (…, etc.)"), which gives examples of when the requirement applies.
@@ -122,8 +122,8 @@ example:
122
122
  - No review
123
123
 
124
124
  not_flagged:
125
- ja: 箇条書きが 1 つしかない文書は見ません。5 つより少なければ、1 つで割合が大きく動くので、全部が 3 項目のときだけ指摘します。本文の最初の文より前の箇条書き(題と日付のすぐ下の要点の箱)は、項目の数をサイトの型が決めているので数えません。すぐ下の行が「など」で始まる箇条書きは、書いた 3 つのほかにもあると言っているので、3 項目とは数えません。仕様書(technical/spec)のジャンルでは見ません。文の中に並べた 3 つの語(「速く、安く、確実に」)は数えません。人の文書のほうが多く書くからです。
126
- en: "Documents with a single list 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 above the first sentence of the body (a box of key points under the title and date) is not counted, since the site's template sets its length. 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."
125
+ ja: 箇条書きが 1 つしかない文書は見ません。5 つより少なければ、1 つで割合が大きく動くので、全部が 3 項目のときだけ指摘します。本文の最初の文より前の箇条書き(題と日付のすぐ下の要点の箱)は、項目の数をサイトの型が決めているので数えません。すぐ下の行が「など」で始まる箇条書きは、書いた 3 つのほかにもあると言っているので、3 項目とは数えません。どの項目も「受付:2鉢」「家賃:8万円」のように札の後ろに数を書いた箇条書きは、数の内訳で項目の数は中身が決めているので、3 項目とは数えません。どの項目も 3 文以上ある箇条書き(太字の助言と、それを説く数文)は、項目ごとに段落を書いた心得の一覧なので、3 項目とは数えません。仕様書(technical/spec)のジャンルでは見ません。文の中に並べた 3 つの語(「速く、安く、確実に」)は数えません。人の文書のほうが多く書くからです。
126
+ en: "Documents with a single list 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 above the first sentence of the body (a box of key points under the title and date) is not counted, since the site's template sets its length. 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. A list whose every item gives a figure after a label (Rent: $1,200) is a breakdown whose length the facts set, and is not counted as three either. Nor is a list whose every item runs to three sentences or more (a bold tip and the sentences that explain it): each item is a paragraph, and the list is a set of developed tips. 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
@@ -43,8 +43,8 @@ example:
43
43
  We met. We talked. We agreed. We left.
44
44
 
45
45
  not_flagged:
46
- ja: ピリオド・疑問符・感嘆符で終わる文と、同じ行で続く次の文のあいだだけを見ます。行末の空白(Markdown の改行)は見ません。
47
- en: Only the space after a sentence ending in a period, question or exclamation mark, before the next sentence on the same line. Spaces at the end of a line (a Markdown line break) are not counted.
46
+ ja: ピリオド・疑問符・感嘆符で終わる文と、同じ行で続く次の文のあいだだけを見ます。行末の空白(Markdown の改行)は見ません。詩の連の中で一行に二つの文が並ぶときの間(I'm nobody! Who are you?)と、著者欄のように項目名(Affiliation:)の前の空白も見ません。
47
+ en: Only the space after a sentence ending in a period, question or exclamation mark, before the next sentence on the same line. Spaces at the end of a line (a Markdown line break) are not counted, nor a pause inside a verse line of a poem ("I'm nobody! Who are you?"), nor the space before a field's label ("Affiliation:") in an author block.
48
48
  level_meaning:
49
49
  ja: 少ないほうの空け方が {limit} 箇所あれば指摘
50
50
  en: reported once the less common spacing appears {limit} times
@@ -27,6 +27,8 @@ how_to_fix:
27
27
  levels: { strict: 1, normal: 2, relaxed: 3 }
28
28
 
29
29
  use_for: [business, technical, blog, legal, docs, academic, literature, speech]
30
+ off_for:
31
+ literature/essay: "An essay's wording is the author's register: piled-up 〜的 words carry the essayist's argument and voice, and are not a slip to fix."
30
32
 
31
33
  group: wording
32
34
  summary:
@@ -43,5 +43,5 @@ example:
43
43
  We can meet on Friday 9 October to go through the quote.
44
44
 
45
45
  not_flagged:
46
- ja: "文の中で例として置いた「○○」とビジネス文書以外の「○○」、行頭の「○」(箇条書きの印)、Markdown のリンク、脚注の番号、チェック欄とチェックリストの項目(- [ ] TODO: …)、値が続く見出しの札(【氏名】山田)、大文字でない「Optional:」と行の途中の OPTIONAL、コードとコードのコメント(// TODO)、文の中の「未定」(日程は未定です)、見出しが雛形と言う節(「## 雛形」「# 記入例」)の中の空欄は指しません。"
47
- en: 'Markdown links and reference definitions, footnote numbers, checkboxes and checklist items ("- [ ] TODO: …"), a label its value follows ("[Date]: 2024-04-01"), "Optional:" not in capitals and OPTIONAL inside a line, code and code comments ("// TODO"), "TBD" inside a sentence ("the date is TBD"), and blanks under a heading that names a template ("## Template", "# Sample letter") are not reported. Nor is a Japanese example mark (○○) inside a sentence or outside a business document.'
46
+ ja: "文の中で例として置いた「○○」とビジネス文書以外の「○○」、行頭の「○」(箇条書きの印)、Markdown のリンク、脚注の番号、チェック欄とチェックリストの項目(- [ ] TODO: …)、値が続く見出しの札(【氏名】山田)、大文字でない「Optional:」と行の途中の OPTIONAL、コードとコードのコメント(// TODO)、文の中の「未定」(日程は未定です)、見出しが雛形と言う節(「## 雛形」「# 記入例」)の中の空欄、文書がほかの行で値を書き入れている書式の欄の名前(【氏名】 山田 花子 とある文書の「【氏名】に旧氏を書く」)、記入線の横の札(____ [Name of New Employer])、例を示す行のかぎ括弧の中(例:「【会社名】の田中です」)も指しません。"
47
+ en: 'Markdown links and reference definitions, footnote numbers, checkboxes and checklist items ("- [ ] TODO: …"), a label its value follows ("[Date]: 2024-04-01"), "Optional:" not in capitals and OPTIONAL inside a line, code and code comments ("// TODO"), "TBD" inside a sentence ("the date is TBD"), and blanks under a heading that names a template ("## Template", "# Sample letter") are not reported. Nor are a field label of a form that the document fills in on another line (【氏名】 followed by a name), the caption beside a line to write on ("________ [Name of New Employer]"), and a blank inside a quoted example ("Helpful: “See the link [insert link name] below the image”"). Nor is a Japanese example mark (○○) inside a sentence or outside a business document.'
@@ -50,8 +50,8 @@ example:
50
50
  This agreement is between Harbour Ltd (the "Seller") and Hill Ltd (the "Buyer"). The Seller ships within five days.
51
51
 
52
52
  not_flagged:
53
- ja: 定義の条(「X」とは…をいう)で定義した語は、前で使っても言いません。定義の条は文書の頭にも終わりにも置く書き方があるためです。規約やポリシーの丁寧な形(以下「X」といいます)も、法令の形と同じに読みます。見出しの行(章・節の行、条の前の「(買主の義務)」のような見出し)の語と、漢字で終わる語にさらに漢字が続く長い語(「監査委員会」の「監査委員」)と、定義の括弧の前の長い名前をそのまま書いた所(「…作成の手引き(以下「手引き」という。)」より前の「…作成の手引き」)は、使った所に数えません。最初の一か所だけを指します。別の語を定義する括弧の前の名前の中(This Services Agreement (this "Agreement") の Services、本サービス利用契約(以下「本契約」という。)の本サービス)も、使った所に数えません。目次・索引の行(目次の見出しの下の項目、一行に詰めた目次、定義した語と条の番地の一覧)と、条の番号の後ろの題(Section 1.1 Closing.)と、番号と語の終わりに条の番地の括弧を添えただけの札((1)文化芸術推進基本計画(第7条関係))と、語を含むもっと長い名前(定義の括弧の前の名前を前で写した株式会社みなと、もっと長い定義した語、Navistar Financial Corporation)も数えません。文書自身の名前と定義した語に同じ頭を付けた所(この就業規則(以下「規則」)より前の「この規則」)と、すぐ後ろの括弧に定義の長い名前を書き添えた所は、読み手に分かるので言いません。要約の節(「要旨」「裁判要旨」「Summary」のような見出しの下)で、定義がその節の外にある語と、番号と題だけの項目の行((2)本件仮換地の指定等)は、本文を縮めたり名前を付けたりした所なので数えません。番地や法令の名前に続けて語の意味の出どころを書いた所(69条の3所定の小規模宅地等)も数えません。
54
- en: Terms defined in a definitions clause ("X" means ...) are not checked, since a definitions clause may come first or last. A heading line (a chapter or section line, or the caption above an article) does not count as a use, nor does a longer word that runs on in kanji past a term ending in kanji, nor an earlier copy of the long name written just before the definition's bracket. The polite Japanese form (以下「X」といいます) is read like the statute form. Only the first early use is pointed at. A word inside the name written right before another term's defining bracket (Services in This Services Agreement (this "Agreement")) is not a use either. Nor are contents and index lines (the items under a contents heading, a table of contents or a list of defined terms and section numbers packed on one line), a caption after a section number (Section 1.1 Closing.), a label of a number and the term ending in a bracketed section reference ((a) Seller (Section 2)), or a longer name that holds the term, such as an earlier copy of the name before the bracket (Board of Directors before our Board of Directors ("Board")), a longer defined term, a capitalised name ending in it (Navistar Financial Corporation). The document naming itself (this Agreement before (this "Agreement")) and a use followed by the long name in brackets are clear to the reader and not pointed at. A use in a summary section (under a heading such as Summary, Syllabus or 裁判要旨) of a term defined outside it, and a numbered line that only names the section below ((2) Interim Land Designation) summarise or name the body, so they are not uses either.
53
+ ja: 定義の条(「X」とは…をいう)で定義した語は、前で使っても言いません。定義の条は文書の頭にも終わりにも置く書き方があるためです。規約やポリシーの丁寧な形(以下「X」といいます)も、法令の形と同じに読みます。見出しの行(章・節の行、条の前の「(買主の義務)」のような見出し)の語と、漢字で終わる語にさらに漢字が続く長い語(「監査委員会」の「監査委員」)と、定義の括弧の前の長い名前をそのまま書いた所(「…作成の手引き(以下「手引き」という。)」より前の「…作成の手引き」)は、使った所に数えません。最初の一か所だけを指します。別の語を定義する括弧の前の名前の中(This Services Agreement (this "Agreement") の Services、本サービス利用契約(以下「本契約」という。)の本サービス)も、使った所に数えません。目次・索引の行(目次の見出しの下の項目、一行に詰めた目次、定義した語と条の番地の一覧)と、条の番号の後ろの題(Section 1.1 Closing.)と、番号と語の終わりに条の番地の括弧を添えただけの札((1)文化芸術推進基本計画(第7条関係))と、語を含むもっと長い名前(定義の括弧の前の名前を前で写した株式会社みなと、もっと長い定義した語、Navistar Financial Corporation)も数えません。文書自身の名前と定義した語に同じ頭を付けた所(この就業規則(以下「規則」)より前の「この規則」)と、すぐ後ろの括弧に定義の長い名前を書き添えた所は、読み手に分かるので言いません。要約の節(「要旨」「裁判要旨」「Summary」のような見出しの下)で、定義がその節の外にある語と、番号と題だけの項目の行((2)本件仮換地の指定等)は、本文を縮めたり名前を付けたりした所なので数えません。番地や法令の名前に続けて語の意味の出どころを書いた所(69条の3所定の小規模宅地等)も数えません。「はじめに」「序論」の節は後の本文が定義することを先に名指す所なので、要約の節と同じに読みます。他の法令を引き写した節(見出しがその法令の名前で、文書がほかでその法令を引いている)の条の中の定義は、その法令の定義で、この文書の語の定義としては読みません。英語の語を大文字の長い名前の終わりに書いた所(The National Security Act of 1947)より後ろの the Act は、その名前を指すので数えません。
54
+ en: Terms defined in a definitions clause ("X" means ...) are not checked, since a definitions clause may come first or last. A heading line (a chapter or section line, or the caption above an article) does not count as a use, nor does a longer word that runs on in kanji past a term ending in kanji, nor an earlier copy of the long name written just before the definition's bracket. The polite Japanese form (以下「X」といいます) is read like the statute form. Only the first early use is pointed at. A word inside the name written right before another term's defining bracket (Services in This Services Agreement (this "Agreement")) is not a use either. Nor are contents and index lines (the items under a contents heading, a table of contents or a list of defined terms and section numbers packed on one line), a caption after a section number (Section 1.1 Closing.), a label of a number and the term ending in a bracketed section reference ((a) Seller (Section 2)), or a longer name that holds the term, such as an earlier copy of the name before the bracket (Board of Directors before our Board of Directors ("Board")), a longer defined term, a capitalised name ending in it (Navistar Financial Corporation). The document naming itself (this Agreement before (this "Agreement")) and a use followed by the long name in brackets are clear to the reader and not pointed at. A use in a summary section (under a heading such as Summary, Syllabus or 裁判要旨) of a term defined outside it, and a numbered line that only names the section below ((2) Interim Land Designation) summarise or name the body, so they are not uses either. An introduction (a heading that is the whole of Introduction, Preface or Foreword) names ahead what the body defines and is read like a summary. A definition inside an article copied from another statute (under a heading that names a document the text cites elsewhere) is that statute's, not this document's. After a longer capitalised name ending in the term (The National Security Act of 1947), "the Act" points back to that name and is not an early use.
55
55
  rewrite:
56
56
  depth: structure
57
57
  ja:
@@ -0,0 +1,23 @@
1
+ import type { Token } from "./plugin.ts";
2
+
3
+ const touches = (left: Token | undefined, right: Token | undefined): boolean => left !== undefined && right !== undefined && left.span.end === right.span.start;
4
+
5
+ /**
6
+ * 前の語と組んで一つの名前になる語(敬って呼ぶ語の皆様、置き場所を言う語の下)の直前の助詞で、組んだ名前がさらに同じ助詞で次の語に
7
+ * 係るもの。「国民の皆様の期待」の「国民の皆様」、「ラックの下の段」の「ラックの下」は一つの名前として次の語に係り、その中の「の」は
8
+ * 入れ子を深くしない。組んだ語で連なりが終わるとき(それ以外の全てのVim使いの皆様が)は、連なりの頭の語なので数える。
9
+ * particles は数える助詞(の)、words は組む語(皆様、下)。
10
+ */
11
+ export const boundWordParticles = (tokens: readonly Token[], particles: readonly string[], words: readonly string[]): ReadonlySet<Token> =>
12
+ new Set(
13
+ tokens.filter((token, at) => {
14
+ const [word, after] = [tokens[at + 1], tokens[at + 2]];
15
+ return (
16
+ particles.includes(token.surface) &&
17
+ words.includes(word?.surface ?? "") &&
18
+ touches(token, word) &&
19
+ touches(word, after) &&
20
+ particles.includes(after?.surface ?? "")
21
+ );
22
+ }),
23
+ );