chaffjs 0.42.0 → 0.44.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 (330) 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/agreement-slip.d.ts +2 -0
  13. package/dist/detectors/agreement-slip.d.ts.map +1 -1
  14. package/dist/detectors/agreement-slip.js +22 -8
  15. package/dist/detectors/agreement-slip.js.map +1 -1
  16. package/dist/detectors/bold-label.d.ts +7 -1
  17. package/dist/detectors/bold-label.d.ts.map +1 -1
  18. package/dist/detectors/bold-label.js +26 -3
  19. package/dist/detectors/bold-label.js.map +1 -1
  20. package/dist/detectors/bold-quoted.d.ts +4 -0
  21. package/dist/detectors/bold-quoted.d.ts.map +1 -0
  22. package/dist/detectors/bold-quoted.js +17 -0
  23. package/dist/detectors/bold-quoted.js.map +1 -0
  24. package/dist/detectors/caps-caption.d.ts +5 -0
  25. package/dist/detectors/caps-caption.d.ts.map +1 -1
  26. package/dist/detectors/caps-caption.js +7 -0
  27. package/dist/detectors/caps-caption.js.map +1 -1
  28. package/dist/detectors/clause-shape.d.ts +8 -2
  29. package/dist/detectors/clause-shape.d.ts.map +1 -1
  30. package/dist/detectors/clause-shape.js +14 -6
  31. package/dist/detectors/clause-shape.js.map +1 -1
  32. package/dist/detectors/count-per-section.d.ts.map +1 -1
  33. package/dist/detectors/count-per-section.js +7 -4
  34. package/dist/detectors/count-per-section.js.map +1 -1
  35. package/dist/detectors/defined-term-form.d.ts.map +1 -1
  36. package/dist/detectors/defined-term-form.js +2 -1
  37. package/dist/detectors/defined-term-form.js.map +1 -1
  38. package/dist/detectors/document-shape.d.ts +6 -1
  39. package/dist/detectors/document-shape.d.ts.map +1 -1
  40. package/dist/detectors/document-shape.js +14 -4
  41. package/dist/detectors/document-shape.js.map +1 -1
  42. package/dist/detectors/doubled-word.d.ts.map +1 -1
  43. package/dist/detectors/doubled-word.js +5 -1
  44. package/dist/detectors/doubled-word.js.map +1 -1
  45. package/dist/detectors/emoticon.d.ts +6 -0
  46. package/dist/detectors/emoticon.d.ts.map +1 -0
  47. package/dist/detectors/emoticon.js +19 -0
  48. package/dist/detectors/emoticon.js.map +1 -0
  49. package/dist/detectors/en-shape.d.ts +6 -1
  50. package/dist/detectors/en-shape.d.ts.map +1 -1
  51. package/dist/detectors/en-shape.js +21 -2
  52. package/dist/detectors/en-shape.js.map +1 -1
  53. package/dist/detectors/ending-refrain.d.ts +9 -0
  54. package/dist/detectors/ending-refrain.d.ts.map +1 -0
  55. package/dist/detectors/ending-refrain.js +52 -0
  56. package/dist/detectors/ending-refrain.js.map +1 -0
  57. package/dist/detectors/fact-consistency.d.ts.map +1 -1
  58. package/dist/detectors/fact-consistency.js +5 -1
  59. package/dist/detectors/fact-consistency.js.map +1 -1
  60. package/dist/detectors/gram-predicate.d.ts.map +1 -1
  61. package/dist/detectors/gram-predicate.js +12 -3
  62. package/dist/detectors/gram-predicate.js.map +1 -1
  63. package/dist/detectors/katakana-density.d.ts +6 -1
  64. package/dist/detectors/katakana-density.d.ts.map +1 -1
  65. package/dist/detectors/katakana-density.js +14 -1
  66. package/dist/detectors/katakana-density.js.map +1 -1
  67. package/dist/detectors/lexicon.d.ts.map +1 -1
  68. package/dist/detectors/lexicon.js +3 -1
  69. package/dist/detectors/lexicon.js.map +1 -1
  70. package/dist/detectors/lookalike-character.d.ts +2 -0
  71. package/dist/detectors/lookalike-character.d.ts.map +1 -1
  72. package/dist/detectors/lookalike-character.js +36 -9
  73. package/dist/detectors/lookalike-character.js.map +1 -1
  74. package/dist/detectors/mark-shape.d.ts +3 -3
  75. package/dist/detectors/mark-shape.d.ts.map +1 -1
  76. package/dist/detectors/mark-shape.js +53 -17
  77. package/dist/detectors/mark-shape.js.map +1 -1
  78. package/dist/detectors/mentioned-phrase.d.ts +3 -1
  79. package/dist/detectors/mentioned-phrase.d.ts.map +1 -1
  80. package/dist/detectors/mentioned-phrase.js +9 -0
  81. package/dist/detectors/mentioned-phrase.js.map +1 -1
  82. package/dist/detectors/number-style.d.ts +7 -1
  83. package/dist/detectors/number-style.d.ts.map +1 -1
  84. package/dist/detectors/number-style.js +34 -2
  85. package/dist/detectors/number-style.js.map +1 -1
  86. package/dist/detectors/number-unit.d.ts +7 -1
  87. package/dist/detectors/number-unit.d.ts.map +1 -1
  88. package/dist/detectors/number-unit.js +20 -6
  89. package/dist/detectors/number-unit.js.map +1 -1
  90. package/dist/detectors/obligation-without-deadline.d.ts +10 -2
  91. package/dist/detectors/obligation-without-deadline.d.ts.map +1 -1
  92. package/dist/detectors/obligation-without-deadline.js +47 -2
  93. package/dist/detectors/obligation-without-deadline.js.map +1 -1
  94. package/dist/detectors/open-end-names.d.ts +2 -0
  95. package/dist/detectors/open-end-names.d.ts.map +1 -1
  96. package/dist/detectors/open-end-names.js +8 -1
  97. package/dist/detectors/open-end-names.js.map +1 -1
  98. package/dist/detectors/orthographic-variant.d.ts.map +1 -1
  99. package/dist/detectors/orthographic-variant.js +5 -3
  100. package/dist/detectors/orthographic-variant.js.map +1 -1
  101. package/dist/detectors/paragraph-pointer.d.ts +4 -0
  102. package/dist/detectors/paragraph-pointer.d.ts.map +1 -0
  103. package/dist/detectors/paragraph-pointer.js +22 -0
  104. package/dist/detectors/paragraph-pointer.js.map +1 -0
  105. package/dist/detectors/particle-run-long-forms.d.ts +7 -0
  106. package/dist/detectors/particle-run-long-forms.d.ts.map +1 -0
  107. package/dist/detectors/particle-run-long-forms.js +23 -0
  108. package/dist/detectors/particle-run-long-forms.js.map +1 -0
  109. package/dist/detectors/particle-run-quoted-names.d.ts +6 -0
  110. package/dist/detectors/particle-run-quoted-names.d.ts.map +1 -0
  111. package/dist/detectors/particle-run-quoted-names.js +18 -0
  112. package/dist/detectors/particle-run-quoted-names.js.map +1 -0
  113. package/dist/detectors/phrase-match.d.ts +4 -1
  114. package/dist/detectors/phrase-match.d.ts.map +1 -1
  115. package/dist/detectors/phrase-match.js +12 -5
  116. package/dist/detectors/phrase-match.js.map +1 -1
  117. package/dist/detectors/redundant-pair.d.ts +5 -0
  118. package/dist/detectors/redundant-pair.d.ts.map +1 -0
  119. package/dist/detectors/redundant-pair.js +18 -0
  120. package/dist/detectors/redundant-pair.js.map +1 -0
  121. package/dist/detectors/register-separate-part.d.ts +9 -1
  122. package/dist/detectors/register-separate-part.d.ts.map +1 -1
  123. package/dist/detectors/register-separate-part.js +23 -0
  124. package/dist/detectors/register-separate-part.js.map +1 -1
  125. package/dist/detectors/register-voice.d.ts +4 -3
  126. package/dist/detectors/register-voice.d.ts.map +1 -1
  127. package/dist/detectors/register-voice.js +11 -4
  128. package/dist/detectors/register-voice.js.map +1 -1
  129. package/dist/detectors/register.d.ts.map +1 -1
  130. package/dist/detectors/register.js +9 -6
  131. package/dist/detectors/register.js.map +1 -1
  132. package/dist/detectors/registry/redundant-pair.d.ts +3 -0
  133. package/dist/detectors/registry/redundant-pair.d.ts.map +1 -0
  134. package/dist/detectors/registry/redundant-pair.js +3 -0
  135. package/dist/detectors/registry/redundant-pair.js.map +1 -0
  136. package/dist/detectors/request-owner.d.ts +1 -0
  137. package/dist/detectors/request-owner.d.ts.map +1 -1
  138. package/dist/detectors/request-owner.js +6 -3
  139. package/dist/detectors/request-owner.js.map +1 -1
  140. package/dist/detectors/sentence-ending.d.ts +1 -0
  141. package/dist/detectors/sentence-ending.d.ts.map +1 -1
  142. package/dist/detectors/sentence-ending.js +7 -3
  143. package/dist/detectors/sentence-ending.js.map +1 -1
  144. package/dist/detectors/signals.d.ts.map +1 -1
  145. package/dist/detectors/signals.js +5 -2
  146. package/dist/detectors/signals.js.map +1 -1
  147. package/dist/detectors/stacked-hedge.d.ts +4 -2
  148. package/dist/detectors/stacked-hedge.d.ts.map +1 -1
  149. package/dist/detectors/stacked-hedge.js +16 -3
  150. package/dist/detectors/stacked-hedge.js.map +1 -1
  151. package/dist/detectors/structure-tree.d.ts.map +1 -1
  152. package/dist/detectors/structure-tree.js +1 -0
  153. package/dist/detectors/structure-tree.js.map +1 -1
  154. package/dist/detectors/structure.js +3 -3
  155. package/dist/detectors/structure.js.map +1 -1
  156. package/dist/detectors/superlative-context.d.ts +7 -0
  157. package/dist/detectors/superlative-context.d.ts.map +1 -1
  158. package/dist/detectors/superlative-context.js +9 -0
  159. package/dist/detectors/superlative-context.js.map +1 -1
  160. package/dist/detectors/token-shape.d.ts.map +1 -1
  161. package/dist/detectors/token-shape.js +20 -6
  162. package/dist/detectors/token-shape.js.map +1 -1
  163. package/dist/detectors/unbalanced-bracket.d.ts.map +1 -1
  164. package/dist/detectors/unbalanced-bracket.js +2 -1
  165. package/dist/detectors/unbalanced-bracket.js.map +1 -1
  166. package/dist/detectors/unknown-word-context.d.ts +5 -0
  167. package/dist/detectors/unknown-word-context.d.ts.map +1 -1
  168. package/dist/detectors/unknown-word-context.js +8 -0
  169. package/dist/detectors/unknown-word-context.js.map +1 -1
  170. package/dist/detectors/unknown-word.d.ts.map +1 -1
  171. package/dist/detectors/unknown-word.js +3 -3
  172. package/dist/detectors/unknown-word.js.map +1 -1
  173. package/dist/detectors/weasel-word.d.ts.map +1 -1
  174. package/dist/detectors/weasel-word.js +23 -4
  175. package/dist/detectors/weasel-word.js.map +1 -1
  176. package/dist/facts/era-year.d.ts +2 -0
  177. package/dist/facts/era-year.d.ts.map +1 -0
  178. package/dist/facts/era-year.js +7 -0
  179. package/dist/facts/era-year.js.map +1 -0
  180. package/dist/facts/fact-scope.d.ts +1 -1
  181. package/dist/facts/fact-scope.d.ts.map +1 -1
  182. package/dist/facts/fact-scope.js +18 -8
  183. package/dist/facts/fact-scope.js.map +1 -1
  184. package/dist/facts/table-facts.d.ts.map +1 -1
  185. package/dist/facts/table-facts.js +18 -2
  186. package/dist/facts/table-facts.js.map +1 -1
  187. package/dist/own-title-quote.d.ts +7 -0
  188. package/dist/own-title-quote.d.ts.map +1 -0
  189. package/dist/own-title-quote.js +19 -0
  190. package/dist/own-title-quote.js.map +1 -0
  191. package/dist/paragraph-length.d.ts +4 -0
  192. package/dist/paragraph-length.d.ts.map +1 -1
  193. package/dist/paragraph-length.js +6 -0
  194. package/dist/paragraph-length.js.map +1 -1
  195. package/dist/plugin.d.ts +2 -0
  196. package/dist/plugin.d.ts.map +1 -1
  197. package/dist/rule-of-three.d.ts +7 -0
  198. package/dist/rule-of-three.d.ts.map +1 -1
  199. package/dist/rule-of-three.js +22 -1
  200. package/dist/rule-of-three.js.map +1 -1
  201. package/dist/structure/build.d.ts.map +1 -1
  202. package/dist/structure/build.js +2 -1
  203. package/dist/structure/build.js.map +1 -1
  204. package/dist/structure/definition-use.d.ts.map +1 -1
  205. package/dist/structure/definition-use.js +3 -1
  206. package/dist/structure/definition-use.js.map +1 -1
  207. package/dist/structure/negated-act.d.ts +1 -0
  208. package/dist/structure/negated-act.d.ts.map +1 -1
  209. package/dist/structure/negated-act.js +1 -1
  210. package/dist/structure/negated-act.js.map +1 -1
  211. package/dist/structure/own-name.d.ts +4 -0
  212. package/dist/structure/own-name.d.ts.map +1 -0
  213. package/dist/structure/own-name.js +20 -0
  214. package/dist/structure/own-name.js.map +1 -0
  215. package/dist/structure/percent-sum-prose.d.ts.map +1 -1
  216. package/dist/structure/percent-sum-prose.js +9 -1
  217. package/dist/structure/percent-sum-prose.js.map +1 -1
  218. package/dist/structure/percent-sum.d.ts +2 -0
  219. package/dist/structure/percent-sum.d.ts.map +1 -1
  220. package/dist/structure/percent-sum.js.map +1 -1
  221. package/dist/structure/reference-text.d.ts.map +1 -1
  222. package/dist/structure/reference-text.js +3 -1
  223. package/dist/structure/reference-text.js.map +1 -1
  224. package/dist/structure-shape/features.d.ts.map +1 -1
  225. package/dist/structure-shape/features.js +15 -2
  226. package/dist/structure-shape/features.js.map +1 -1
  227. package/dist/te-form-helper.d.ts +22 -0
  228. package/dist/te-form-helper.d.ts.map +1 -0
  229. package/dist/te-form-helper.js +35 -0
  230. package/dist/te-form-helper.js.map +1 -0
  231. package/dist/word-use.d.ts +7 -0
  232. package/dist/word-use.d.ts.map +1 -1
  233. package/dist/word-use.js +20 -1
  234. package/dist/word-use.js.map +1 -1
  235. package/package.json +3 -3
  236. package/rules/absolute-exception.yaml +3 -3
  237. package/rules/adverb-overuse.yaml +2 -2
  238. package/rules/all-caps-shouting.yaml +2 -2
  239. package/rules/bold-label-list.yaml +9 -2
  240. package/rules/bracket-nesting.yaml +7 -2
  241. package/rules/bracket-width-consistency.yaml +2 -2
  242. package/rules/doubled-word.yaml +2 -2
  243. package/rules/duration-mismatch.yaml +2 -2
  244. package/rules/excessive-hedging.yaml +2 -1
  245. package/rules/fact-conflict.yaml +2 -2
  246. package/rules/katakana-density.yaml +3 -3
  247. package/rules/lookalike-character.yaml +2 -2
  248. package/rules/ngram-repetition.yaml +2 -2
  249. package/rules/no-doubled-joshi.yaml +2 -2
  250. package/rules/no-mixed-desumasu.yaml +3 -2
  251. package/rules/number-style-consistency.yaml +2 -2
  252. package/rules/number-without-unit.yaml +2 -2
  253. package/rules/obligation-without-deadline.yaml +2 -2
  254. package/rules/orthographic-variant.yaml +2 -2
  255. package/rules/padded-intro.yaml +1 -1
  256. package/rules/redundant-expression.yaml +1 -1
  257. package/rules/repeated-sentence-ending.yaml +2 -2
  258. package/rules/request-without-deadline.yaml +2 -2
  259. package/rules/requirement-smell.yaml +2 -2
  260. package/rules/rule-of-three.yaml +2 -2
  261. package/rules/title-length.yaml +7 -2
  262. package/rules/undefined-acronym.yaml +2 -2
  263. package/rules/unknown-word.yaml +2 -2
  264. package/rules/unused-definition.yaml +4 -2
  265. package/src/bound-word-particles.ts +23 -0
  266. package/src/derived/stays.ts +4 -1
  267. package/src/detectors/absolute-exception.ts +11 -5
  268. package/src/detectors/agreement-slip.ts +35 -10
  269. package/src/detectors/bold-label.ts +31 -4
  270. package/src/detectors/bold-quoted.ts +21 -0
  271. package/src/detectors/caps-caption.ts +10 -0
  272. package/src/detectors/clause-shape.ts +14 -12
  273. package/src/detectors/count-per-section.ts +9 -4
  274. package/src/detectors/defined-term-form.ts +2 -1
  275. package/src/detectors/document-shape.ts +17 -6
  276. package/src/detectors/doubled-word.ts +9 -1
  277. package/src/detectors/emoticon.ts +21 -0
  278. package/src/detectors/en-shape.ts +25 -2
  279. package/src/detectors/ending-refrain.ts +66 -0
  280. package/src/detectors/fact-consistency.ts +4 -1
  281. package/src/detectors/gram-predicate.ts +14 -3
  282. package/src/detectors/katakana-density.ts +17 -2
  283. package/src/detectors/lexicon.ts +3 -1
  284. package/src/detectors/lookalike-character.ts +40 -10
  285. package/src/detectors/mark-shape.ts +59 -19
  286. package/src/detectors/mentioned-phrase.ts +13 -1
  287. package/src/detectors/number-style.ts +43 -3
  288. package/src/detectors/number-unit.ts +29 -8
  289. package/src/detectors/obligation-without-deadline.ts +69 -5
  290. package/src/detectors/open-end-names.ts +21 -2
  291. package/src/detectors/orthographic-variant.ts +20 -15
  292. package/src/detectors/paragraph-pointer.ts +28 -0
  293. package/src/detectors/particle-run-long-forms.ts +34 -0
  294. package/src/detectors/particle-run-quoted-names.ts +27 -0
  295. package/src/detectors/phrase-match.ts +13 -5
  296. package/src/detectors/redundant-pair.ts +25 -0
  297. package/src/detectors/register-separate-part.ts +32 -1
  298. package/src/detectors/register-voice.ts +17 -4
  299. package/src/detectors/register.ts +9 -6
  300. package/src/detectors/registry/redundant-pair.ts +4 -0
  301. package/src/detectors/request-owner.ts +6 -3
  302. package/src/detectors/sentence-ending.ts +10 -4
  303. package/src/detectors/signals.ts +5 -2
  304. package/src/detectors/stacked-hedge.ts +24 -7
  305. package/src/detectors/structure-tree.ts +1 -0
  306. package/src/detectors/structure.ts +3 -3
  307. package/src/detectors/superlative-context.ts +12 -0
  308. package/src/detectors/token-shape.ts +24 -8
  309. package/src/detectors/unbalanced-bracket.ts +2 -1
  310. package/src/detectors/unknown-word-context.ts +9 -0
  311. package/src/detectors/unknown-word.ts +4 -2
  312. package/src/detectors/weasel-word.ts +31 -5
  313. package/src/facts/era-year.ts +7 -0
  314. package/src/facts/fact-scope.ts +20 -6
  315. package/src/facts/table-facts.ts +31 -3
  316. package/src/own-title-quote.ts +28 -0
  317. package/src/paragraph-length.ts +10 -0
  318. package/src/plugin.ts +2 -0
  319. package/src/rule-of-three.ts +27 -1
  320. package/src/structure/build.ts +2 -1
  321. package/src/structure/definition-use.ts +4 -1
  322. package/src/structure/negated-act.ts +1 -1
  323. package/src/structure/own-name.ts +28 -0
  324. package/src/structure/percent-sum-prose.ts +12 -1
  325. package/src/structure/percent-sum.ts +2 -0
  326. package/src/structure/reference-text.ts +5 -1
  327. package/src/structure-shape/features.ts +18 -2
  328. package/src/te-form-helper.ts +52 -0
  329. package/src/word-use.ts +23 -1
  330. package/src/honorific-group.ts +0 -22
@@ -1,6 +1,6 @@
1
1
  import { lengthOf } from "../measure.js";
2
2
  import { coefficientOfVariation } from "../detectors/structure.js";
3
- import { boldLabelItems } from "../detectors/bold-label.js";
3
+ import { boldLabelItems, isQuotedAt, standingBoldLabelOf } from "../detectors/bold-label.js";
4
4
  import { MIN_DOCUMENT_LENGTH } from "../detectors/signals.js";
5
5
  import { bookendOf, headingFormOf, headingWords, proConPairs } from "./heading-words.js";
6
6
  import { restatementPercent } from "./restatement.js";
@@ -124,10 +124,23 @@ const threeItemLists = (doc) => {
124
124
  return measured("three-item-lists", percentOf(threes, doc.lists.length), `${String(threes)}/${String(doc.lists.length)}`);
125
125
  };
126
126
  const emojiHeadings = (doc) => measured("emoji-headings", doc.sections.filter((section) => section.depth > 0 && EMOJI.test(section.heading)).length);
127
+ /** The paragraphs and list items, as written, that are not quoted: where a bold label can stand in place of a heading. */
128
+ const blocksOf = (doc) => [...doc.paragraphs.map((paragraph) => paragraph.span), ...doc.lists.flatMap((list) => list.itemSpans)]
129
+ .filter((span) => !isQuotedAt(doc.source, span.start))
130
+ .map((span) => doc.source.slice(span.start, span.end));
131
+ /** Bold labels that are a side of a pair and nothing more (`**Pros:**`, `**デメリット:**`): a heading set in bold. */
132
+ const proConLabels = (doc, lexicon) => {
133
+ const sides = new Set(lexicon.flatMap((entry) => [entry.pattern, entry.instead_of ?? ""]).map((side) => side.toLowerCase()));
134
+ return blocksOf(doc).flatMap((block) => {
135
+ const label = standingBoldLabelOf(block);
136
+ return label !== undefined && sides.has(headingWords(label)) ? [headingWords(label)] : [];
137
+ });
138
+ };
127
139
  const proCon = (doc, words) => {
128
140
  if (words.length < MIN_BOOKEND_HEADINGS)
129
141
  return notMeasured("pro-con", "too-few-headings");
130
- const pairs = proConPairs(words, lexiconOf(doc, "pro-con-heading"));
142
+ const lexicon = lexiconOf(doc, "pro-con-heading");
143
+ const pairs = proConPairs([...words, ...proConLabels(doc, lexicon)], lexicon);
131
144
  return measured("pro-con", pairs.length, pairs.join(", "));
132
145
  };
133
146
  /** Every structure measure of one document, in FEATURE_IDS order. Reads only the document: no baseline, no judgement. */
@@ -1 +1 @@
1
- {"version":3,"file":"features.js","sourceRoot":"","sources":["../../src/structure-shape/features.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACzF,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,O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,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,GAAkB,EAAkB,EAAE;IACxE,MAAM,MAAM,GAAG,cAAc,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAC5C,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;IACrE,OAAO;QACL,cAAc,CAAC,GAAG,EAAE,MAAM,CAAC;QAC3B,aAAa,CAAC,GAAG,EAAE,MAAM,CAAC;QAC1B,iBAAiB,CAAC,GAAG,CAAC;QACtB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC;QAChC,gBAAgB,CAAC,MAAM,CAAC;QACxB,QAAQ,CAAC,GAAG,EAAE,KAAK,CAAC;QACpB,kBAAkB,CAAC,GAAG,EAAE,MAAM,CAAC;QAC/B,cAAc,CAAC,GAAG,CAAC;QACnB,QAAQ,CAAC,aAAa,EAAE,cAAc,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC;QACnD,aAAa,CAAC,GAAG,CAAC;QAClB,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC;KACnB,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,22 @@
1
+ import type { Token } from "./plugin.ts";
2
+ import { type InContext } from "./word-use.ts";
3
+ /** Where a word stands after a て-form. */
4
+ export type TeForm = {
5
+ /** A full verb read as a helper only for the て-form before it, whose verb takes no object (並んで見た). */
6
+ readonly teFormOnly?: boolean;
7
+ /** The verb whose て-form stands before it (まとめる in まとめてみる). */
8
+ readonly teVerb?: string;
9
+ };
10
+ type KeyedTeWord = TeForm & {
11
+ readonly key: string;
12
+ readonly spelling: string;
13
+ };
14
+ export declare const teFormOf: (word: InContext, tokens: readonly Token[], at: number) => TeForm;
15
+ /**
16
+ * A verb after a て-form that may be the helper or the next act (並んで見た) is read as the full verb where the document writes
17
+ * the full verb that way and its sure helpers (投資してみる) the other way: the writer keeps the helper in kana on purpose. It stays
18
+ * a helper where the same verb takes the sure helper elsewhere (まとめてみました beside まとめて見ました).
19
+ */
20
+ export declare const withTeFormFullVerbs: <Word extends KeyedTeWord>(words: readonly Word[]) => Word[];
21
+ export {};
22
+ //# sourceMappingURL=te-form-helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"te-form-helper.d.ts","sourceRoot":"","sources":["../src/te-form-helper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAsC,KAAK,SAAS,EAAE,MAAM,eAAe,CAAC;AAKnF,0CAA0C;AAC1C,MAAM,MAAM,MAAM,GAAG;IACnB,sGAAsG;IACtG,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAC9B,+DAA+D;IAC/D,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,KAAK,WAAW,GAAG,MAAM,GAAG;IAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AAWhF,eAAO,MAAM,QAAQ,GAAI,MAAM,SAAS,EAAE,QAAQ,SAAS,KAAK,EAAE,EAAE,IAAI,MAAM,KAAG,MAIhF,CAAC;AAKF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,GAAI,IAAI,SAAS,WAAW,EAAE,OAAO,SAAS,IAAI,EAAE,KAAG,IAAI,EAY1F,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { isHelperByTeFormOnly, teFormVerbOf } from "./word-use.js";
2
+ const OBJECT_PARTICLE = "を";
3
+ /** The て-form verb takes an object (芽を残して置く): the verb after it has none of its own, and is the helper. */
4
+ const teVerbHasObject = (word, tokens, at) => {
5
+ const teVerbAt = word.previous?.pos === "SCONJ" ? at - 2 : at - 1;
6
+ const particle = tokens[teVerbAt - 1];
7
+ return particle?.pos === "ADP" && particle.surface === OBJECT_PARTICLE;
8
+ };
9
+ export const teFormOf = (word, tokens, at) => {
10
+ const teVerb = teFormVerbOf(word);
11
+ const doubtful = isHelperByTeFormOnly(word) && !teVerbHasObject(word, tokens, at);
12
+ return { ...(doubtful ? { teFormOnly: true } : {}), ...(teVerb === undefined ? {} : { teVerb }) };
13
+ };
14
+ const BOUND_USE = "|bound|";
15
+ const FREE_USE = "|free|";
16
+ /**
17
+ * A verb after a て-form that may be the helper or the next act (並んで見た) is read as the full verb where the document writes
18
+ * the full verb that way and its sure helpers (投資してみる) the other way: the writer keeps the helper in kana on purpose. It stays
19
+ * a helper where the same verb takes the sure helper elsewhere (まとめてみました beside まとめて見ました).
20
+ */
21
+ export const withTeFormFullVerbs = (words) => {
22
+ const sureOf = (key) => words.filter((word) => word.key === key && word.teFormOnly !== true);
23
+ const freeSpellingsOf = (key) => new Set(words.filter((word) => word.key === key).map((word) => word.spelling));
24
+ return words.map((word) => {
25
+ if (word.teFormOnly !== true || !word.key.includes(BOUND_USE))
26
+ return word;
27
+ const freeKey = word.key.replace(BOUND_USE, FREE_USE);
28
+ const sure = sureOf(word.key);
29
+ const sureSpellings = new Set(sure.map((helper) => helper.spelling));
30
+ const helpsSameVerb = sure.some((helper) => helper.teVerb !== undefined && helper.teVerb === word.teVerb);
31
+ const isFullVerbSpelling = freeSpellingsOf(freeKey).has(word.spelling) && sure.length > 0 && !sureSpellings.has(word.spelling) && !helpsSameVerb;
32
+ return isFullVerbSpelling ? { ...word, key: freeKey } : word;
33
+ });
34
+ };
35
+ //# sourceMappingURL=te-form-helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"te-form-helper.js","sourceRoot":"","sources":["../src/te-form-helper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,YAAY,EAAkB,MAAM,eAAe,CAAC;AAenF,MAAM,eAAe,GAAG,GAAG,CAAC;AAE5B,2GAA2G;AAC3G,MAAM,eAAe,GAAG,CAAC,IAAe,EAAE,MA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AAC,CAAC"}
@@ -6,6 +6,13 @@ export type InContext = {
6
6
  readonly before: Token | undefined;
7
7
  readonly following?: readonly Token[];
8
8
  };
9
+ /**
10
+ * A verb the tokenizer reads as a full verb, taken for a helper only because a て-form stands before it: 見た in 並んで見た is
11
+ * the next act, 見る in 書いて見る a helper, and the form cannot tell them apart.
12
+ */
13
+ export declare const isHelperByTeFormOnly: (word: InContext) => boolean;
14
+ /** The verb whose て-form stands before the word (まとめる in まとめてみる), or undefined after no て-form. */
15
+ export declare const teFormVerbOf: ({ previous, before }: InContext) => string | undefined;
9
16
  export declare const isTouching: (left: Token | undefined, right: Token) => boolean;
10
17
  export declare const HIRAGANA_ONLY: RegExp;
11
18
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"word-use.d.ts","sourceRoot":"","sources":["../src/word-use.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAKzC,6EAA6E;AAC7E,MAAM,MAAM,SAAS,GAAG;IACtB,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,KAAK,GAAG,SAAS,CAAC;IACrC,QAAQ,CAAC,MAAM,EAAE,KAAK,GAAG,SAAS,CAAC;IACnC,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,KAAK,EAAE,CAAC;CACvC,CAAC;AA0BF,eAAO,MAAM,UAAU,GAAI,MAAM,KAAK,GAAG,SAAS,EAAE,OAAO,KAAK,KAAG,OAAmE,CAAC;AAEvI,eAAO,MAAM,aAAa,QAAe,CAAC;AAiF1C;;;GAGG;AACH,MAAM,MAAM,IAAI,GAAG;IACjB,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACrC,QAAQ,CAAC,YAAY,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC3C,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACtC,QAAQ,CAAC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AG,SAGvE,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,MAAM,KAAK,GAAG,SAAS,EAAE,OAAO,KAAK,KAAG,OAAmE,CAAC;AAEvI,eAAO,MAAM,aAAa,QAAe,CAAC;AAiF1C;;;GAGG;AACH,MAAM,MAAM,IAAI,GAAG;IACjB,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACrC,QAAQ,CAAC,YAAY,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC3C,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACtC,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACrC,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACpC,QAAQ,CAAC,UAAU,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAC1C,CAAC;AA0BF;;;;;;;GAOG;AACH,eAAO,MAAM,KAAK,GAAI,MAAM,SAAS,EAAE,8DAA8D,IAAI,KAAG,MAU3G,CAAC;AAMF,qGAAqG;AACrG,eAAO,MAAM,iBAAiB,GAAI,qBAAqB,SAAS,KAAG,OAC6E,CAAC;AAMjJ;;;GAGG;AACH,eAAO,MAAM,oBAAoB,GAAI,gCAAgC,SAAS,KAAG,OAIhF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAAI,qBAAqB,SAAS,KAAG,OAC+B,CAAC;AAMpG;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAAI,qBAAqB,SAAS,KAAG,OAIkD,CAAC;AAEtH,sFAAsF;AACtF,eAAO,MAAM,SAAS,GAAI,OAAO,KAAK,KAAG,OAAiD,CAAC"}
package/dist/word-use.js CHANGED
@@ -12,6 +12,17 @@ const LINK_AND_TOPIC = new Set(["では", "でも"]);
12
12
  const followsLinkAndTopic = (previous, before) => LINK_AND_TOPIC.has(previous?.surface ?? "") || (previous?.pos === "ADP" && TOPIC_AFTER_LINK.has(previous.surface) && LINK_END.test(before?.surface ?? ""));
13
13
  const negatesAfterTopic = ({ token, previous, before }) => token.pos === "ADJ" && NEGATION.has(token.lemma ?? "") && followsLinkAndTopic(previous, before);
14
14
  const isHelper = (word) => word.token.features?.["Bound"] === "Yes" || followsTeForm(word.previous) || negatesAfterTopic(word);
15
+ /**
16
+ * A verb the tokenizer reads as a full verb, taken for a helper only because a て-form stands before it: 見た in 並んで見た is
17
+ * the next act, 見る in 書いて見る a helper, and the form cannot tell them apart.
18
+ */
19
+ export const isHelperByTeFormOnly = (word) => word.token.pos === "VERB" && word.token.features?.["Bound"] !== "Yes" && followsTeForm(word.previous);
20
+ /** The verb whose て-form stands before the word (まとめる in まとめてみる), or undefined after no て-form. */
21
+ export const teFormVerbOf = ({ previous, before }) => {
22
+ if (!followsTeForm(previous))
23
+ return undefined;
24
+ return (previous?.pos === "SCONJ" ? before : previous)?.lemma;
25
+ };
15
26
  export const isTouching = (left, right) => left !== undefined && left.span.end === right.span.start;
16
27
  export const HIRAGANA_ONLY = /^[ぁ-ゖー]+$/u;
17
28
  /** A kana noun written onto a noun (全員ぶん): a suffix, which may not be the free noun of the same reading (文). */
@@ -80,9 +91,17 @@ const isCompoundVerbHead = ({ token, following }) => {
80
91
  };
81
92
  /** A verb written straight onto the verb before it (貼り付ける, 書き込む): the tail of a compound verb, not the verb alone (番号をつける). */
82
93
  const isCompoundVerbTail = ({ token, previous }) => token.pos === "VERB" && previous?.pos === "VERB" && isTouching(previous, token);
94
+ /**
95
+ * A noun joined by や or と to a noun after it (物やサービス): it names a thing alongside the other, as the full noun does, even
96
+ * where the tokenizer reads it as the dependent noun (延長するもの).
97
+ */
98
+ const isCoordinatedThing = ({ token, following }) => {
99
+ const [joiner, partner] = following ?? [];
100
+ return token.pos === "NOUN" && joiner?.pos === "CCONJ" && partner?.pos === "NOUN" && partner.features?.["NounType"] !== "Dependent";
101
+ };
83
102
  /** A word used freely, or as a helper: a bound noun after a word is a suffix, and anything else bound a helper. */
84
103
  const helperUseOf = (word, lightVerbs) => {
85
- if (!isHelper(word) && !isLightVerbAfterQuotative(word, lightVerbs))
104
+ if ((!isHelper(word) && !isLightVerbAfterQuotative(word, lightVerbs)) || isCoordinatedThing(word))
86
105
  return "free";
87
106
  return word.token.pos === "NOUN" && word.token.features?.["NounType"] !== "Dependent" ? "suffix" : "bound";
88
107
  };
@@ -1 +1 @@
1
- {"version":3,"file":"word-use.js","sourceRoot":"","sources":["../src/word-use.ts"],"names":[],"mappings":"AAaA,qJAAqJ;AACrJ,MAAM,mBAAmB,GAAG,yBAAyB,CAAC;AAEtD,2HAA2H;AAC3H,MAAM,aAAa,GAAG,CAAC,QAA2B,EAAW,EAAE,CAC7D,CAAC,QAAQ,EAAE,GAAG,KAAK,OAAO,IAAI,CAAC,QAAQ,CAAC,OAAO,KAAK,GAAG,IAAI,QAAQ,CAAC,OAAO,KAAK,GAAG,CAAC,CAAC;IACrF,CAAC,QAAQ,EAAE,GAAG,KAAK,OAAO,IAAI,mBAAmB,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;AAE5E,gHAAgH;AAChH,MAAM,gBAAgB,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;AAC7C,MAAM,QAAQ,GAAG,SAAS,CAAC;AAC3B,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;AAEvC,yDAAyD;AACzD,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;AAE7C,MAAM,mBAAmB,GAAG,CAAC,QAA2B,EAAE,MAAyB,EAAW,EAAE,CAC9F,cAAc,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,IAAI,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,KAAK,KAAK,IAAI,gBAAgB,CAAC,GAAG,CAA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KAAK,SAAS,IAAI,QAAQ,CAAC,GAAG,KAAK,KAAK,CAAC;AAEpG,MAAM,YAAY,GAAG,UAAU,CAAC;AAChC,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AACvC,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;AAE3C;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAa,EAAW,EAAE,CAC3E,KAAK,CAAC,GAAG,KAAK,MAAM;IACpB,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC;IACjC,UAAU,CAAC,QAAQ,EAAE,KAAK,CAAC;IAC3B,CAAC,YAAY,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,IAAI,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,IAAI,EAAE,CAAC,IAAI,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AAEtH,sFAAsF;AACtF,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,KAAY,EAAW,EAAE,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,SAAS,CAAC,KAAK,MAAM,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chaffjs",
3
- "version": "0.42.0",
3
+ "version": "0.44.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.39.0",
93
- "@chaffjs/lang-ja": "0.41.0",
92
+ "@chaffjs/lang-en": "0.41.0",
93
+ "@chaffjs/lang-ja": "0.43.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",
@@ -3,7 +3,7 @@ layer: L3
3
3
  status: stable
4
4
  how_to_find: absolute-exception
5
5
  word_list: absolute-word
6
- extra_word_lists: [exception-marker, light-verb]
6
+ extra_word_lists: [exception-marker, light-verb, negation-word]
7
7
  requires: [structure, pos]
8
8
  severity: warning
9
9
 
@@ -81,5 +81,5 @@ example:
81
81
  Staff need not send the receipt to the finance team for an expense under ten dollars, except for travel.
82
82
 
83
83
  not_flagged:
84
- ja: 例外を言い切った文と同じ条や段落に書いた文(ただし書)、言い切った文そのものが例外を持つ文、言い切った文の中身の語を半分以上くり返さない例外は指摘しません。義務の語(しなければならない・してはならない)の無い言い切りと、鉤括弧の中の語も見ません。
85
- en: An exception in the same article or paragraph (a proviso), an absolute rule that carries its own exception, and an exception that does not repeat most of the rule's content words are not reported. A statement with no obligation word (must, shall, must not) and words inside quotation marks are not read.
84
+ ja: 例外を言い切った文と同じ条や段落に書いた文(ただし書)、言い切った文そのものが例外を持つ文、言い切った文の中身の語を半分以上くり返さない例外は指摘しません。義務の語(しなければならない・してはならない)の無い言い切りと、鉤括弧の中の語も見ません。打ち消しのすぐ後ろの言い切りの語(not always)は例外を認める言い方なので見ません。
85
+ en: An exception in the same article or paragraph (a proviso), an absolute rule that carries its own exception, and an exception that does not repeat most of the rule's content words are not reported. A statement with no obligation word (must, shall, must not), words inside quotation marks, and an absolute word right after a negation ("not always", which admits exceptions) are not read.
@@ -46,8 +46,8 @@ example:
46
46
  She hurried to the room and eased the door open. He needed the report and demanded it.
47
47
 
48
48
  not_flagged:
49
- ja: 短い文書(200 語より短いもの)は測りません。
50
- en: Documents under 200 words are not measured.
49
+ ja: 短い文書(200 語より短いもの)は測りません。文の途中の頭だけ大文字の -ly の語(July、Kelly)は名前か題の語なので数えません。
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.
51
51
  level_meaning:
52
52
  ja: 1000 語あたり -ly 副詞 {limit} 個まで
53
53
  en: up to {limit} -ly adverbs per 1000 words
@@ -41,8 +41,8 @@ example:
41
41
  Do not delete the log. Do not delete this file before the audit.
42
42
 
43
43
  not_flagged:
44
- ja: 三語以上の連なりだけを見ます。略語の並び(文書のほかの所で小文字で書かれない語)とコードは見ません。仕様書の MUST や SHALL は慣習の大文字として数えません。段落の頭に置いた大文字の見出し語(「AGENCY:」「WORKING GROUP MEMBERS」のように、コロンで終わるか一行で段落になるもの)と、本文でその見出し語を挙げた所も見ません。全部の行が大文字で文で終わらない段落(「BOARD OF GOVERNORS」で始まるレターヘッドや宛名、議事録が一行で立てる「OPENING STATEMENT OF HON. JANE DOE,」のような見出し)と、名簿の欄の「JANE Q. DOE, Ohio」「JANE Q. DOE, Ohio, Chairman」のように大文字の名前の後ろに普通の書き方の地名や役職が続くもの、角かっこの中に大文字だけで置いた差し替えの印(「[GRAPHIC(S) NOT AVAILABLE IN TIFF FORMAT]」「[NAME WITHHELD]」のように、出版元や編者が省いた所に置くもの)も見ません。法令と文学の文書では既定で止めています(大文字で目立たせる決まりや、題を大文字で組む慣習があるため)。
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]"). The legal and literature presets turn it off, since contracts set disclaimers in capitals by rule and older texts set titles that way.
44
+ ja: 三語以上の連なりだけを見ます。略語の並び(文書のほかの所で小文字で書かれない語)とコードは見ません。仕様書の MUST や SHALL は慣習の大文字として数えません。段落の頭に置いた大文字の見出し語(「AGENCY:」「WORKING GROUP MEMBERS」のように、コロンで終わるか一行で段落になるもの)と、本文でその見出し語を挙げた所も見ません。全部の行が大文字で文で終わらない段落(「BOARD OF GOVERNORS」で始まるレターヘッドや宛名、議事録が一行で立てる「OPENING STATEMENT OF HON. JANE DOE,」のような見出し)と、名簿の欄の「JANE Q. DOE, Ohio」「JANE Q. DOE, Ohio, Chairman」のように大文字の名前の後ろに普通の書き方の地名や役職が続くもの、角かっこの中に大文字だけで置いた差し替えの印(「[GRAPHIC(S) NOT AVAILABLE IN TIFF FORMAT]」「[NAME WITHHELD]」のように、出版元や編者が省いた所に置くもの)、引用符で囲んだ全体が大文字の引用(「“THIS DOCUMENT CONTAINS CONFIDENTIAL INFORMATION.” と記す」のように、書き手が叫ぶのでなく、読み手が書く表示やそのまま見る表示を引いたもの)も見ません。法令と文学の文書では既定で止めています(大文字で目立たせる決まりや、題を大文字で組む慣習があるため)。
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. 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
48
  en: reported once there are {limit}
@@ -23,6 +23,13 @@ how_to_fix:
23
23
 
24
24
  # 指摘に要る項目の数。長さで割らない:人の記事は長くても 1 つ 2 つで、生成文は短くても並べる。
25
25
  levels: { strict: 3, normal: 5, relaxed: 8 }
26
+ options:
27
+ min_leads:
28
+ kind: count
29
+ default: 3
30
+ about:
31
+ ja: 太字の一文で始まる項目(- **範囲を固定する。** 〜)だけで指摘する数。人の文書は手順や欄の名前に太字の札を 3 つ 4 つ並べることはあっても、太字の一文で始まる項目を並べることはほとんどありません
32
+ 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
26
33
 
27
34
  use_for: [technical/readme, blog, business, legal, docs, academic, literature, speech]
28
35
  off_for:
@@ -74,8 +81,8 @@ not_flagged:
74
81
  ja: 札がコードだけの項目(`--flag` の説明のような、設定や引数の一覧)は数えません。札の後ろにコロンも句点も無い項目(太字が文の頭の語だけのもの)と、その後ろに何も無い項目も数えません。仕様書(technical/spec)・法務・説明書・論文・文学のジャンルでは見ません。
75
82
  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.
76
83
  level_meaning:
77
- ja: 太字の札で始まる項目が {limit} 個あれば指摘
78
- en: reported once {limit} list items open with a bold label
84
+ ja: 太字の札で始まる項目が {limit} 個あれば指摘(太字の一文で始まる項目は min_leads の数から)
85
+ en: reported once {limit} list items open with a bold label (items opening with a bold lead sentence from min_leads)
79
86
  rewrite:
80
87
  depth: structure
81
88
  ja:
@@ -22,6 +22,11 @@ how_to_fix:
22
22
 
23
23
  levels: { strict: 1, normal: 2, relaxed: 3 }
24
24
 
25
+ # 小説や詩では、台詞の中で手紙や人の言葉を引き、台詞を遮るト書きの括弧に別の台詞が入る(“‘…“…”’” [Voices. “Hello!”])。
26
+ # 三重までは話の形そのものなので、文学では一段深くまで許す。
27
+ by_genre:
28
+ literature: { strict: 2, normal: 3, relaxed: 4 }
29
+
25
30
  use_for: [business, technical, blog, legal, docs, academic, literature, speech]
26
31
 
27
32
  group: readability
@@ -41,8 +46,8 @@ example:
41
46
  The fee is waived on request for members, including student members under 25.
42
47
 
43
48
  not_flagged:
44
- ja: 二重までの括弧、開きの無い閉じ括弧(「1)」)、コードと数式($…$)の中の括弧、波括弧は数えません。そのとおりに打ち込む文字列の引用(件名に「応募(総務課)」と記載、「【様式】(氏名)」とファイル名を変更)は、中の括弧が文字列の一部で外せないので、一つの括弧として数えます。語の一部として書いた括弧(読みの「拓(ひら)く」、名前の後ろの添え書きの「栄養教諭(仮称)」、英字や数字にすぐ続けた条文の項の印の「§ 1813(h)」、引用で大文字小文字を改めた一字の「[A]」)は数えません。
45
- en: Two levels of brackets, a closing bracket with no opener ("1)"), brackets in code or in a formula ($…$), and curly braces are not counted. A quotation of a string to type as it stands (an e-mail subject, a file name, as in with the subject line “Entry (Training)”) counts as one bracket, since its own brackets cannot be taken out. A bracket written as part of a word (a reading such as 拓(ひら)く, a note right after a name such as 栄養教諭(仮称), a subsection mark right after a number such as § 1813(h), a letter altered in a quotation such as [A]) is not counted.
49
+ ja: 二重までの括弧(文学では三重まで。台詞の中で人の言葉を引くと、話の形として三重になる)、開きの無い閉じ括弧(「1)」)、コードと数式($…$)の中の括弧、波括弧は数えません。そのとおりに打ち込む文字列の引用(件名に「応募(総務課)」と記載、「【様式】(氏名)」とファイル名を変更)は、中の括弧が文字列の一部で外せないので、一つの括弧として数えます。語の一部として書いた括弧(読みの「拓(ひら)く」、名前の後ろの添え書きの「栄養教諭(仮称)」、英字や数字にすぐ続けた条文の項の印の「§ 1813(h)」、引用で大文字小文字を改めた一字の「[A]」)は数えません。
50
+ en: Two levels of brackets (three in literature, where a speech quoting someone else's words nests three deep by the story's form), a closing bracket with no opener ("1)"), brackets in code or in a formula ($…$), and curly braces are not counted. A quotation of a string to type as it stands (an e-mail subject, a file name, as in with the subject line “Entry (Training)”) counts as one bracket, since its own brackets cannot be taken out. A bracket written as part of a word (a reading such as 拓(ひら)く, a note right after a name such as 栄養教諭(仮称), a subsection mark right after a number such as § 1813(h), a letter altered in a quotation such as [A]) is not counted.
46
51
  level_meaning:
47
52
  ja: 括弧の重なり {limit} 重まで
48
53
  en: brackets nested up to {limit} deep
@@ -44,8 +44,8 @@ example:
44
44
  会議(定例)は月曜です。報告(月次)は金曜です。資料(最新版)を配ります。
45
45
 
46
46
  not_flagged:
47
- ja: 日本語の字に接する括弧だけを数え、丸括弧と角括弧は別々に比べます。Markdown のリンクは数えず、注の番号([1]、[^1])は注の番号どうしで比べます。英語の中の括弧(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. Brackets in English text (f(x)), brackets in a formula (賃金 × (1 - 時間 ÷ 月平均)), code, 「」 quotations, and the title of an outside page quoted by a link at a line's head (- [Title (draft)](https://…)) are not counted.
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.
49
49
  level_meaning:
50
50
  ja: 少ないほうの書き方が {limit} 箇所あれば指摘
51
51
  en: reported once the less common way appears {limit} times
@@ -42,5 +42,5 @@ example:
42
42
  after: We will send the file tomorrow.
43
43
 
44
44
  not_flagged:
45
- ja: 品詞の違う同じ語、重ねて「それぞれの」を言う名詞(「個人個人」「一行一行」「毎年毎年」)、名詞や形容詞を重ねて強める形(「駄目駄目」「えらいえらい」)、仮名の擬音・擬態語(「ムクムク」「もちもち」)、同じ一字の仮名が三つ以上続く笑い声(「ははは」)、決まった言い回し(「などなど」「あるある」)、重ねて強める書き方(「そうそう」「very very」)は指しません。ほかの漢語の名詞の重なり(「確認確認」「資料資料」)、外来語の重なり(「ユーザーユーザー」)、三つ続く重なり(「早め早め早め」)は指します。英語で文法が許す重なり(had had、that that)も指しません。語の後ろの括弧書きの読み(凛々(りり)しい)の中の仮名の重なりも指しません。
46
- en: Repeats that grammar allows ("had had", "that that"), repeats for emphasis ("very very"), and the same word in two different parts of speech are not reported. Nor is kana repeated inside a Japanese reading in parentheses (凛々(りり)しい).
45
+ ja: 品詞の違う同じ語、重ねて「それぞれの」を言う名詞(「個人個人」「一行一行」「毎年毎年」)、名詞や形容詞を重ねて強める形(「駄目駄目」「えらいえらい」)、仮名の擬音・擬態語(「ムクムク」「もちもち」)、同じ一字の仮名が三つ以上続く笑い声(「ははは」)、決まった言い回し(「などなど」「あるある」)、重ねて強める書き方(「そうそう」「very very」)は指しません。ほかの漢語の名詞の重なり(「確認確認」「資料資料」)、外来語の重なり(「ユーザーユーザー」)、三つ続く重なり(「早め早め早め」)は指します。英語で文法が許す重なり(had had、that that)も指しません。語の後ろの括弧書きの読み(凛々(りり)しい)の中の仮名の重なりも指しません。変換で潰れた表(数字が詰まって続く文)の名詞の重なり(株主資本|資本金)は、隣り合った二つのセルなので指しません。
46
+ en: Repeats that grammar allows ("had had", "that that"), repeats for emphasis ("very very"), and the same word in two different parts of speech are not reported. Nor is kana repeated inside a Japanese reading in parentheses (凛々(りり)しい), or a doubled noun in a table a converter ran together (株主資本|資本金), which is two neighbouring cells.
@@ -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:
@@ -4,7 +4,8 @@ status: stable
4
4
  how_to_find: hedging
5
5
  word_list: excessive-hedging
6
6
  # 1 つの文の重なりを数えるときの、それだけでは逃げていない包む言い方(「という状況です」、may)と、
7
- # 逃げの表現のうちどこで成り立つかを言うもの(「場合がある」、in some cases)。
7
+ # 逃げの表現のうち書き手の確かさを下げないもの(「場合がある」、in some cases、「と思われている」)。
8
+ # 英語だけの hedge-complement(knowing that の that)は、無ければ節を切らないだけなので宣言しない。
8
9
  extra_word_lists: [hedge-frame, hedge-scope]
9
10
  uses: [pos]
10
11
  severity: warning
@@ -74,8 +74,8 @@ example:
74
74
  - Deadline: May 3, 2026
75
75
 
76
76
  not_flagged:
77
- ja: 違う見出しの下、違う親の項目の下、太字だけの行や「第2回:」のような行の後ろの値は、別のものの値として比べません。値の後ろに条件が続くもの(「3,000円から」「10月5日に開催」)、何あたりの違う値(日額と月額)や、距離や時間あたりの値とそれを掛けた金額(「1kmあたり15円」と「1,650円」。1件につき のような件ごとの値は比べます)、読点のあとから始まる項目名(「大人は、参加費は」)、単位の違う値(単位の食い違いは別に見ます)も比べません。単価の列(単価、時給)の升は、金額の列(金額、小計)の同じ名前の升とは比べません(文の値とは比べます)。同じ項目に三通り以上の値があれば、一覧として何も言いません。保存期間は、別のもの(ログは90日、個人情報は1年)や、上限・下限・目安の長さ(最長、以上、約)とは比べません。文書全体の項目は、拠り所(表の升、項目の名前を見出しにした節)と文のあいだだけで比べます。表どうしや、拠り所の無い文どうし(雇用形態ごとの節)、拠り所が二通りの値を書いた項目、条件の句の後ろの値(「製品登録をされた場合、保証期間は24か月です」)、名前に条件を書いた値(正社員の試用期間)は比べません。文書全体の項目は、表の升と文のあいだだけで比べます。表どうしや文どうし(雇用形態ごとの節)、表が二通りの値を書いた項目、名前に条件を書いた値(正社員の試用期間)は比べません。表の行と主語の文の金額は、行か文に同じ通貨の金額が二つ以上あるとき(日額と上限)、主語が見出しより長いとき(入院給付金の上限は)、文に条件の語(場合、ただし)があるときは比べません。全体の数は、全体の印(合計、全部で)と数える語(枚、名)の両方が付いた数だけを読みます。一部の数(うち2枚は)、上限(合計4枚まで)、表の行の名前を書いた文(S席は合計2枚)、数える列が二つ以上ある文書は比べません。人の数は行を足しません(同じ人が参加と交流会の両方の行に載ります)。段落の頭の名前だけの行(「例」「Example」「明細1(標準税率の分)」)の後ろの値は、その例や場合の値として、ほかの例とは比べません。見出しを繰り返して横に並べた表(曜日 | 時間 | 曜日 | 時間 の、第1週と第2週)は、並びごとに別の表として読みます。
78
- en: Values under different headings, under different parent list items, or after a bold-only line or a line like "Session 2:" are taken as values of different things. A value followed by a condition ("$300 per person", "May 3 at noon"), values per different units (a day, a month), a value per a distance or a time against the amount it multiplies into ("$0.45 per mile" and "$165"; a fee "for each transfer" is compared), a name that starts after a comma ("For adults, the fee"), and values in different units are not compared. A cell under a unit price column (Unit price, Rate) is not compared with a cell of the same name under an amount column (Amount, Total); it is compared with a sentence. An item with three or more different values is read as a list and left alone. A retention period is not compared with that of another thing (logs 90 days, account data 1 year) or with a bound or an estimate (up to, at least, about). A whole-document item is compared only between its source (a table cell, or a section headed by its name) and a sentence; two tables, two sentences with no source (sections per type of employment), an item its sources give two values, a value after a condition ("If you register the product, the warranty runs for 24 months"), and a qualified name (part-time probation period) are left alone. A whole-document item is compared only between a table cell and a sentence; two tables or two sentences (sections per type of employment), an item the tables give two values, and a qualified name (part-time probation period) are left alone. A table row and a sentence naming it are not compared when either holds two amounts in the currency (a daily amount and a cap), when the subject is longer than the heading ("Hospital cash cover is"), or when the sentence puts a condition on its amount (if, unless). A whole count is read only with a whole mark (in total, a total of) and a counting word (tickets, attendees). A part ("2 of the tickets"), a limit ("up to a total of 4 tickets"), a sentence naming a table row ("Stalls are 2 tickets in total"), and a document with two columns counting the same thing are left alone. Rows counting people are not summed, because the same guest is on the admission row and the dinner row. Values after a name-only line at the head of a paragraph ("Example", "Element 1 (standard rated portion)") belong to that example or case and are not compared with another example's. A table that repeats its headings side by side (Day | Hours | Day | Hours, week 1 and week 2) is read as one table per group of columns.
77
+ ja: 違う見出しの下、違う親の項目の下、太字だけの行や「第2回:」のような行の後ろの値は、別のものの値として比べません。値の後ろに条件が続くもの(「3,000円から」「10月5日に開催」)、何あたりの違う値(日額と月額)や、距離や時間あたりの値とそれを掛けた金額(「1kmあたり15円」と「1,650円」。1件につき のような件ごとの値は比べます)、読点のあとから始まる項目名(「大人は、参加費は」)、単位の違う値(単位の食い違いは別に見ます)も比べません。単価の列(単価、時給)の升は、金額の列(金額、小計)の同じ名前の升とは比べません(文の値とは比べます)。同じ項目に三通り以上の値があれば、一覧として何も言いません。保存期間は、別のもの(ログは90日、個人情報は1年)や、上限・下限・目安の長さ(最長、以上、約)とは比べません。文書全体の項目は、拠り所(表の升、項目の名前を見出しにした節)と文のあいだだけで比べます。表どうしや、拠り所の無い文どうし(雇用形態ごとの節)、拠り所が二通りの値を書いた項目、条件の句の後ろの値(「製品登録をされた場合、保証期間は24か月です」)、名前に条件を書いた値(正社員の試用期間)は比べません。文書全体の項目は、表の升と文のあいだだけで比べます。表どうしや文どうし(雇用形態ごとの節)、表が二通りの値を書いた項目、名前に条件を書いた値(正社員の試用期間)は比べません。表の行と主語の文の金額は、行か文に同じ通貨の金額が二つ以上あるとき(日額と上限)、主語が見出しより長いとき(入院給付金の上限は)、文に条件の語(場合、ただし)があるときは比べません。全体の数は、全体の印(合計、全部で)と数える語(枚、名)の両方が付いた数だけを読みます。一部の数(うち2枚は)、上限(合計4枚まで)、表の行の名前を書いた文(S席は合計2枚)、数える列が二つ以上ある文書は比べません。人の数は行を足しません(同じ人が参加と交流会の両方の行に載ります)。段落の頭の名前だけの行(「例」「Example」「明細1(標準税率の分)」)の後ろの値は、その例や場合の値として、ほかの例とは比べません。見出しを繰り返して横に並べた表(曜日 | 時間 | 曜日 | 時間 の、第1週と第2週)は、並びごとに別の表として読みます。一つの表に同じ見出しの行が二つあり、ほかの列(状態や条件)が違えば、別の行の値として比べません。参考文献の項目のように、三つ以上の行の中の文の後ろに続けた同じ欄(External Links:)は、項目ごとの欄として比べません。元号の年(平成29年)は暦の年で、保存期間とは読みません。
78
+ en: Values under different headings, under different parent list items, or after a bold-only line or a line like "Session 2:" are taken as values of different things. A value followed by a condition ("$300 per person", "May 3 at noon"), values per different units (a day, a month), a value per a distance or a time against the amount it multiplies into ("$0.45 per mile" and "$165"; a fee "for each transfer" is compared), a name that starts after a comma ("For adults, the fee"), and values in different units are not compared. A cell under a unit price column (Unit price, Rate) is not compared with a cell of the same name under an amount column (Amount, Total); it is compared with a sentence. An item with three or more different values is read as a list and left alone. A retention period is not compared with that of another thing (logs 90 days, account data 1 year) or with a bound or an estimate (up to, at least, about). A whole-document item is compared only between its source (a table cell, or a section headed by its name) and a sentence; two tables, two sentences with no source (sections per type of employment), an item its sources give two values, a value after a condition ("If you register the product, the warranty runs for 24 months"), and a qualified name (part-time probation period) are left alone. A whole-document item is compared only between a table cell and a sentence; two tables or two sentences (sections per type of employment), an item the tables give two values, and a qualified name (part-time probation period) are left alone. A table row and a sentence naming it are not compared when either holds two amounts in the currency (a daily amount and a cap), when the subject is longer than the heading ("Hospital cash cover is"), or when the sentence puts a condition on its amount (if, unless). A whole count is read only with a whole mark (in total, a total of) and a counting word (tickets, attendees). A part ("2 of the tickets"), a limit ("up to a total of 4 tickets"), a sentence naming a table row ("Stalls are 2 tickets in total"), and a document with two columns counting the same thing are left alone. Rows counting people are not summed, because the same guest is on the admission row and the dinner row. Values after a name-only line at the head of a paragraph ("Example", "Element 1 (standard rated portion)") belong to that example or case and are not compared with another example's. A table that repeats its headings side by side (Day | Hours | Day | Hours, week 1 and week 2) is read as one table per group of columns. Two rows of one name in a table that differ in another column (a status or a condition) are different rows, and their values are not compared. A field that three or more lines carry after a sentence, as reference entries carry "External Links:", is a field of each entry and is not compared. A year after a Japanese era name (平成29年) is a calendar year, not a retention period.
79
79
  rewrite:
80
80
  depth: light
81
81
  ja:
@@ -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"
@@ -53,8 +53,8 @@ example:
53
53
  Send the form to the café office.
54
54
 
55
55
  not_flagged:
56
- ja: 一字にまとまる形の無い組み合わせ(字に付いた異体字の指定、合成済みの形の無いアクセント)と、Unicode が別の字として持つ互換漢字(﨑 など)は指しません。
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.
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.
58
58
  sources: [textlint-ja-presets]
59
59
  rewrite:
60
60
  depth: light
@@ -52,8 +52,8 @@ example:
52
52
  We listen to our customers. Regulars try every prototype, and store staff ask shoppers what they thought.
53
53
 
54
54
  not_flagged:
55
- ja: 一覧の飾り(各項目に付くタグやリンクの文字)、欄の名前(Cited by:)、かぎ括弧で引いた題や言葉、文書が定義した語と、名前にかかる語句は数えません。英語の、名詞と形容詞と略語だけが並ぶ用語(the federal funds rate、extended AI assistant)は言い回しではないので数えません。一つの文の中の繰り返しは 1 回と数えます。文書の題と見出しにある言い回しは主題なので数えません。よくある質問の答えは、問いの見出しごとに別々に数えます。節の最初の文にある言い回し(節ごとのひな形の書き出し)、番号を振った項目の見出し((1)…に係る規定に関する改正)、参照の項目の説明の段落(`max-age` の節、定義の並び)、句点の無い名詞で終わる一行(表の欄)に出たぶんは数えません。項目ごとの決まった結び(〜ものとすること。原案のとおり決定する。が表示されます。)も、文の終わりにあれば数えません。文書が引いた題の後ろで決まって使う短い結び(詳しくは「…」を確認してください。)、文書の部分を指す名前(Section 3.1、表2)にかかる語句、表の欄が 2 つ続いた後ろの一行の文(表の行の最後の欄)も数えません。枠ごとにまったく同じ形で付けるコロンで終わる一行の札(The following rule has the force of law:)、平文の仕様書の定義の並びの項目(行の頭の短い名前とコロンのあとに空白を 2 つ置いて書く定義)、リンクのすぐ後ろで決まって使う結び([…](…)を参照してください。)、数字だけを入れ替えた報告の行(There are currently 17 committers …)も、書き手の言い回しではないので数えません。英語で、名詞の入る所の -ing 形の句(what occupying the anticipatory mode requires)と、用語の後ろの be(the anticipatory mode is)は用語で、言い回しではありません。長い文書の中で何千語も離れて使う語句(報告が測る出来事の名前 adopted a budget resolution)は、前の出現を覚えているうちに次が来ないので数えません。見出しが名付けた句に前後の語が 1 つ付いただけの語句(見出し Create a ConfigMap の下の to create a ConfigMap、見出し 旧氏を併記した場合 の下の 旧氏を併記した氏名)も主題で、数えません。角括弧でくくった画面の部品の名前に付いた語句([許可]をクリックすると、[ブックマーク]をクリックすると)は、手順ごとに違う部品を指す書き方で、数えません。中黒で並べた名詞を飾る節(育成すべき資質・能力)も、文書の決まった用語で、言い回しではありません。短い文書は測りません。
56
- en: Tags, link text and symbols that a listing repeats on every entry, field labels (Cited by:), titles and words quoted in Japanese brackets, terms the document defines, and the words around a repeated name are not counted. A term made only of nouns, adjectives and acronyms ("the federal funds rate", "extended AI assistant") is not a phrasing and is not counted. A phrase repeated inside one sentence counts once, and one in the document's title or headings is its subject and is not counted. The answers in a FAQ are counted one question at a time. Uses in the first sentence of sections (each section's template opening), in numbered item titles ((1) ... amendment of the provision on ...), in the first paragraph of a reference entry (a section headed `max-age`, a definition list) and in a line without a full stop that ends in a noun (a table cell) are not counted, nor a fixed closing line repeated per item at the end of a Japanese sentence (〜ものとすること。, 原案のとおり決定する。, が表示されます。). Nor are the short closing a document uses mostly right after a quoted title (詳しくは「…」を確認してください。), the words around a reference to a numbered part (set out in Section 3.1, 表2), or a one-line sentence after two table cells (the last cell of a table run into lines). Nor are a one-line label ending in a colon repeated verbatim before each box (The following rule has the force of law:), an entry of a plain-text definition list (a short name, a colon and two spaces, then the definition), the short closing a document uses mostly right after a link ([…](…)を参照してください。), or a report line filled in with different numbers (There are currently 17 committers …). In English, an -ing phrase in a noun's place (what occupying the anticipatory mode requires) and a term followed by be (the anticipatory mode is) are terms, not phrasing. A phrase whose uses lie thousands of words apart in a long document (the event a report times, adopted a budget resolution) is not counted, since the reader has forgotten one use before the next comes. A phrase that is a heading's phrase with a word attached (to create a ConfigMap under the heading Create a ConfigMap, 旧氏を併記した氏名 under 旧氏を併記した場合) is the subject too, and is not counted. In Japanese, the words attached to a bracketed screen label ([許可]をクリックすると) are the step wording of a screen manual, each naming a different button, and are not counted. In Japanese, a clause modifying nouns joined by a nakaguro (育成すべき資質・能力) is part of one fixed term, not phrasing. Short documents are not measured.
55
+ ja: 一覧の飾り(各項目に付くタグやリンクの文字)、欄の名前(Cited by:)、かぎ括弧で引いた題や言葉、文書が定義した語と、名前にかかる語句は数えません。英語の、名詞と形容詞と略語だけが並ぶ用語(the federal funds rate、extended AI assistant)は言い回しではないので数えません。一つの文の中の繰り返しは 1 回と数えます。文書の題と見出しにある言い回しは主題なので数えません。よくある質問の答えは、問いの見出しごとに別々に数えます。節の最初の文にある言い回し(節ごとのひな形の書き出し)、番号を振った項目の見出し((1)…に係る規定に関する改正)、参照の項目の説明の段落(`max-age` の節、定義の並び)、句点の無い名詞で終わる一行(表の欄)に出たぶんは数えません。項目ごとの決まった結び(〜ものとすること。原案のとおり決定する。が表示されます。)も、文の終わりにあれば数えません。文書が引いた題の後ろで決まって使う短い結び(詳しくは「…」を確認してください。)、文書の部分を指す名前(Section 3.1、表2)にかかる語句、表の欄が 2 つ続いた後ろの一行の文(表の行の最後の欄)も数えません。枠ごとにまったく同じ形で付けるコロンで終わる一行の札(The following rule has the force of law:)、平文の仕様書の定義の並びの項目(行の頭の短い名前とコロンのあとに空白を 2 つ置いて書く定義)、リンクのすぐ後ろで決まって使う結び([…](…)を参照してください。)、数字だけを入れ替えた報告の行(There are currently 17 committers …)も、書き手の言い回しではないので数えません。英語で、名詞の入る所の -ing 形の句(what occupying the anticipatory mode requires)と、用語の後ろの be(the anticipatory mode is)は用語で、言い回しではありません。手順書が手順ごとに役割を名指しする、名詞の主語と助動詞だけの語句(the manager should)も、何をするかが毎回違うので数えません。長い文書の中で何千語も離れて使う語句(報告が測る出来事の名前 adopted a budget resolution)は、前の出現を覚えているうちに次が来ないので数えません。見出しが名付けた句に前後の語が 1 つ付いただけの語句(見出し Create a ConfigMap の下の to create a ConfigMap、見出し 旧氏を併記した場合 の下の 旧氏を併記した氏名)も主題で、数えません。角括弧でくくった画面の部品の名前に付いた語句([許可]をクリックすると、[ブックマーク]をクリックすると)は、手順ごとに違う部品を指す書き方で、数えません。中黒で並べた名詞を飾る節(育成すべき資質・能力)も、文書の決まった用語で、言い回しではありません。短い文書は測りません。
56
+ en: Tags, link text and symbols that a listing repeats on every entry, field labels (Cited by:), titles and words quoted in Japanese brackets, terms the document defines, and the words around a repeated name are not counted. A term made only of nouns, adjectives and acronyms ("the federal funds rate", "extended AI assistant") is not a phrasing and is not counted. A phrase repeated inside one sentence counts once, and one in the document's title or headings is its subject and is not counted. The answers in a FAQ are counted one question at a time. Uses in the first sentence of sections (each section's template opening), in numbered item titles ((1) ... amendment of the provision on ...), in the first paragraph of a reference entry (a section headed `max-age`, a definition list) and in a line without a full stop that ends in a noun (a table cell) are not counted, nor a fixed closing line repeated per item at the end of a Japanese sentence (〜ものとすること。, 原案のとおり決定する。, が表示されます。). Nor are the short closing a document uses mostly right after a quoted title (詳しくは「…」を確認してください。), the words around a reference to a numbered part (set out in Section 3.1, 表2), or a one-line sentence after two table cells (the last cell of a table run into lines). Nor are a one-line label ending in a colon repeated verbatim before each box (The following rule has the force of law:), an entry of a plain-text definition list (a short name, a colon and two spaces, then the definition), the short closing a document uses mostly right after a link ([…](…)を参照してください。), or a report line filled in with different numbers (There are currently 17 committers …). In English, an -ing phrase in a noun's place (what occupying the anticipatory mode requires) and a term followed by be (the anticipatory mode is) are terms, not phrasing. Nor is a noun subject followed only by a modal (the manager should), the way a process manual names the role for each step, since what the role must do follows and differs each time. A phrase whose uses lie thousands of words apart in a long document (the event a report times, adopted a budget resolution) is not counted, since the reader has forgotten one use before the next comes. A phrase that is a heading's phrase with a word attached (to create a ConfigMap under the heading Create a ConfigMap, 旧氏を併記した氏名 under 旧氏を併記した場合) is the subject too, and is not counted. In Japanese, the words attached to a bracketed screen label ([許可]をクリックすると) are the step wording of a screen manual, each naming a different button, and are not counted. In Japanese, a clause modifying nouns joined by a nakaguro (育成すべき資質・能力) is part of one fixed term, not phrasing. Short documents are not measured.
57
57
  level_meaning:
58
58
  ja: 同じ言い回し {limit} 回まで
59
59
  en: up to {limit} uses of the same phrase
@@ -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 (障害者等の移動等の円滑化の促進に関する法律), 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