chaffjs 0.40.0 → 0.42.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 (234) hide show
  1. package/dist/ai-score/human-shares.d.ts.map +1 -1
  2. package/dist/ai-score/human-shares.js +1 -0
  3. package/dist/ai-score/human-shares.js.map +1 -1
  4. package/dist/composite-signals.d.ts +6 -0
  5. package/dist/composite-signals.d.ts.map +1 -0
  6. package/dist/composite-signals.js +23 -0
  7. package/dist/composite-signals.js.map +1 -0
  8. package/dist/detectors/acronym-context.d.ts +4 -0
  9. package/dist/detectors/acronym-context.d.ts.map +1 -1
  10. package/dist/detectors/acronym-context.js +45 -0
  11. package/dist/detectors/acronym-context.js.map +1 -1
  12. package/dist/detectors/acronym-file-type.d.ts +14 -0
  13. package/dist/detectors/acronym-file-type.d.ts.map +1 -0
  14. package/dist/detectors/acronym-file-type.js +26 -0
  15. package/dist/detectors/acronym-file-type.js.map +1 -0
  16. package/dist/detectors/acronym-series.d.ts +5 -0
  17. package/dist/detectors/acronym-series.d.ts.map +1 -1
  18. package/dist/detectors/acronym-series.js +18 -3
  19. package/dist/detectors/acronym-series.js.map +1 -1
  20. package/dist/detectors/ai-phrasing.d.ts.map +1 -1
  21. package/dist/detectors/ai-phrasing.js +7 -1
  22. package/dist/detectors/ai-phrasing.js.map +1 -1
  23. package/dist/detectors/ai-structure.d.ts +2 -1
  24. package/dist/detectors/ai-structure.d.ts.map +1 -1
  25. package/dist/detectors/ai-structure.js +23 -8
  26. package/dist/detectors/ai-structure.js.map +1 -1
  27. package/dist/detectors/bibliography-entry.d.ts +3 -0
  28. package/dist/detectors/bibliography-entry.d.ts.map +1 -0
  29. package/dist/detectors/bibliography-entry.js +15 -0
  30. package/dist/detectors/bibliography-entry.js.map +1 -0
  31. package/dist/detectors/char-shape.d.ts +1 -0
  32. package/dist/detectors/char-shape.d.ts.map +1 -1
  33. package/dist/detectors/char-shape.js +13 -8
  34. package/dist/detectors/char-shape.js.map +1 -1
  35. package/dist/detectors/closing-cliche.d.ts.map +1 -1
  36. package/dist/detectors/closing-cliche.js +2 -1
  37. package/dist/detectors/closing-cliche.js.map +1 -1
  38. package/dist/detectors/contraction-mention.d.ts +2 -0
  39. package/dist/detectors/contraction-mention.d.ts.map +1 -1
  40. package/dist/detectors/contraction-mention.js +5 -2
  41. package/dist/detectors/contraction-mention.js.map +1 -1
  42. package/dist/detectors/contraction-mix.d.ts.map +1 -1
  43. package/dist/detectors/contraction-mix.js +12 -4
  44. package/dist/detectors/contraction-mix.js.map +1 -1
  45. package/dist/detectors/contraction-set-apart.d.ts +14 -0
  46. package/dist/detectors/contraction-set-apart.d.ts.map +1 -0
  47. package/dist/detectors/contraction-set-apart.js +42 -0
  48. package/dist/detectors/contraction-set-apart.js.map +1 -0
  49. package/dist/detectors/counter-edge.d.ts +11 -0
  50. package/dist/detectors/counter-edge.d.ts.map +1 -1
  51. package/dist/detectors/counter-edge.js +29 -0
  52. package/dist/detectors/counter-edge.js.map +1 -1
  53. package/dist/detectors/densest-stretch.d.ts +11 -0
  54. package/dist/detectors/densest-stretch.d.ts.map +1 -0
  55. package/dist/detectors/densest-stretch.js +14 -0
  56. package/dist/detectors/densest-stretch.js.map +1 -0
  57. package/dist/detectors/doubled-word.d.ts.map +1 -1
  58. package/dist/detectors/doubled-word.js +8 -4
  59. package/dist/detectors/doubled-word.js.map +1 -1
  60. package/dist/detectors/fullwidth-alnum.d.ts +3 -0
  61. package/dist/detectors/fullwidth-alnum.d.ts.map +1 -1
  62. package/dist/detectors/fullwidth-alnum.js +11 -2
  63. package/dist/detectors/fullwidth-alnum.js.map +1 -1
  64. package/dist/detectors/gram-furniture.d.ts +9 -5
  65. package/dist/detectors/gram-furniture.d.ts.map +1 -1
  66. package/dist/detectors/gram-furniture.js +30 -13
  67. package/dist/detectors/gram-furniture.js.map +1 -1
  68. package/dist/detectors/gram-heading.d.ts +9 -0
  69. package/dist/detectors/gram-heading.d.ts.map +1 -0
  70. package/dist/detectors/gram-heading.js +20 -0
  71. package/dist/detectors/gram-heading.js.map +1 -0
  72. package/dist/detectors/gram-openers.d.ts +11 -0
  73. package/dist/detectors/gram-openers.d.ts.map +1 -1
  74. package/dist/detectors/gram-openers.js +42 -1
  75. package/dist/detectors/gram-openers.js.map +1 -1
  76. package/dist/detectors/gram-predicate.d.ts.map +1 -1
  77. package/dist/detectors/gram-predicate.js +19 -1
  78. package/dist/detectors/gram-predicate.js.map +1 -1
  79. package/dist/detectors/gram-repetition.d.ts.map +1 -1
  80. package/dist/detectors/gram-repetition.js +36 -10
  81. package/dist/detectors/gram-repetition.js.map +1 -1
  82. package/dist/detectors/gram-spread.d.ts +6 -0
  83. package/dist/detectors/gram-spread.d.ts.map +1 -0
  84. package/dist/detectors/gram-spread.js +18 -0
  85. package/dist/detectors/gram-spread.js.map +1 -0
  86. package/dist/detectors/kanji-run-pieces.d.ts +4 -0
  87. package/dist/detectors/kanji-run-pieces.d.ts.map +1 -1
  88. package/dist/detectors/kanji-run-pieces.js +7 -0
  89. package/dist/detectors/kanji-run-pieces.js.map +1 -1
  90. package/dist/detectors/known-correction.d.ts.map +1 -1
  91. package/dist/detectors/known-correction.js +11 -9
  92. package/dist/detectors/known-correction.js.map +1 -1
  93. package/dist/detectors/lexicon.d.ts +2 -2
  94. package/dist/detectors/lexicon.d.ts.map +1 -1
  95. package/dist/detectors/lexicon.js +15 -5
  96. package/dist/detectors/lexicon.js.map +1 -1
  97. package/dist/detectors/list-lead-in.d.ts +2 -2
  98. package/dist/detectors/list-lead-in.d.ts.map +1 -1
  99. package/dist/detectors/list-lead-in.js +46 -11
  100. package/dist/detectors/list-lead-in.js.map +1 -1
  101. package/dist/detectors/list-run.d.ts.map +1 -1
  102. package/dist/detectors/list-run.js +16 -2
  103. package/dist/detectors/list-run.js.map +1 -1
  104. package/dist/detectors/oxford-comma.d.ts.map +1 -1
  105. package/dist/detectors/oxford-comma.js +17 -2
  106. package/dist/detectors/oxford-comma.js.map +1 -1
  107. package/dist/detectors/phrase-match.d.ts.map +1 -1
  108. package/dist/detectors/phrase-match.js +3 -2
  109. package/dist/detectors/phrase-match.js.map +1 -1
  110. package/dist/detectors/quoted-pattern.d.ts +2 -0
  111. package/dist/detectors/quoted-pattern.d.ts.map +1 -0
  112. package/dist/detectors/quoted-pattern.js +13 -0
  113. package/dist/detectors/quoted-pattern.js.map +1 -0
  114. package/dist/detectors/reference-entry.d.ts +5 -0
  115. package/dist/detectors/reference-entry.d.ts.map +1 -1
  116. package/dist/detectors/reference-entry.js +6 -1
  117. package/dist/detectors/reference-entry.js.map +1 -1
  118. package/dist/detectors/relative-pronoun-mix.d.ts.map +1 -1
  119. package/dist/detectors/relative-pronoun-mix.js +7 -3
  120. package/dist/detectors/relative-pronoun-mix.js.map +1 -1
  121. package/dist/detectors/sentence-parts.d.ts +5 -0
  122. package/dist/detectors/sentence-parts.d.ts.map +1 -1
  123. package/dist/detectors/sentence-parts.js +8 -0
  124. package/dist/detectors/sentence-parts.js.map +1 -1
  125. package/dist/detectors/signals.d.ts.map +1 -1
  126. package/dist/detectors/signals.js +41 -7
  127. package/dist/detectors/signals.js.map +1 -1
  128. package/dist/detectors/superlative-context.d.ts +2 -1
  129. package/dist/detectors/superlative-context.d.ts.map +1 -1
  130. package/dist/detectors/superlative-context.js +9 -2
  131. package/dist/detectors/superlative-context.js.map +1 -1
  132. package/dist/detectors/title-list.d.ts +7 -0
  133. package/dist/detectors/title-list.d.ts.map +1 -0
  134. package/dist/detectors/title-list.js +14 -0
  135. package/dist/detectors/title-list.js.map +1 -0
  136. package/dist/detectors/token-shape.d.ts.map +1 -1
  137. package/dist/detectors/token-shape.js +5 -1
  138. package/dist/detectors/token-shape.js.map +1 -1
  139. package/dist/detectors/unknown-word-context.d.ts +2 -0
  140. package/dist/detectors/unknown-word-context.d.ts.map +1 -1
  141. package/dist/detectors/unknown-word-context.js +4 -0
  142. package/dist/detectors/unknown-word-context.js.map +1 -1
  143. package/dist/detectors/unknown-word.d.ts.map +1 -1
  144. package/dist/detectors/unknown-word.js +10 -3
  145. package/dist/detectors/unknown-word.js.map +1 -1
  146. package/dist/plugin.d.ts +2 -0
  147. package/dist/plugin.d.ts.map +1 -1
  148. package/dist/rule-of-three.d.ts +5 -1
  149. package/dist/rule-of-three.d.ts.map +1 -1
  150. package/dist/rule-of-three.js +11 -2
  151. package/dist/rule-of-three.js.map +1 -1
  152. package/dist/run.d.ts.map +1 -1
  153. package/dist/run.js +4 -2
  154. package/dist/run.js.map +1 -1
  155. package/dist/structure-shape/faq-sections.d.ts +7 -0
  156. package/dist/structure-shape/faq-sections.d.ts.map +1 -0
  157. package/dist/structure-shape/faq-sections.js +14 -0
  158. package/dist/structure-shape/faq-sections.js.map +1 -0
  159. package/dist/structure-shape/features.d.ts.map +1 -1
  160. package/dist/structure-shape/features.js +5 -3
  161. package/dist/structure-shape/features.js.map +1 -1
  162. package/dist/structure-shape/template-outline.d.ts +7 -0
  163. package/dist/structure-shape/template-outline.d.ts.map +1 -1
  164. package/dist/structure-shape/template-outline.js +10 -0
  165. package/dist/structure-shape/template-outline.js.map +1 -1
  166. package/dist/topic-clause.d.ts.map +1 -1
  167. package/dist/topic-clause.js +23 -1
  168. package/dist/topic-clause.js.map +1 -1
  169. package/package.json +3 -3
  170. package/rules/ai-generated-composite.yaml +2 -2
  171. package/rules/ai-structure.yaml +4 -4
  172. package/rules/ai-tell.yaml +2 -2
  173. package/rules/closing-cliche.yaml +3 -3
  174. package/rules/colon-lead-in.yaml +3 -2
  175. package/rules/contraction-consistency.yaml +4 -2
  176. package/rules/contrast-framing.yaml +3 -3
  177. package/rules/fullwidth-alnum-consistency.yaml +2 -2
  178. package/rules/max-kanji-continuous.yaml +4 -3
  179. package/rules/ngram-repetition.yaml +2 -2
  180. package/rules/no-doubled-joshi.yaml +2 -2
  181. package/rules/no-mixed-desumasu.yaml +2 -2
  182. package/rules/oxford-comma-consistency.yaml +2 -2
  183. package/rules/rule-of-three.yaml +2 -2
  184. package/rules/topic-predicate-distance.yaml +2 -2
  185. package/rules/undefined-acronym.yaml +5 -2
  186. package/rules/unknown-word.yaml +2 -2
  187. package/rules/unqualified-superlative.yaml +1 -1
  188. package/src/ai-score/human-shares.ts +1 -0
  189. package/src/composite-signals.ts +27 -0
  190. package/src/detectors/acronym-context.ts +58 -0
  191. package/src/detectors/acronym-file-type.ts +33 -0
  192. package/src/detectors/acronym-series.ts +22 -3
  193. package/src/detectors/ai-phrasing.ts +7 -1
  194. package/src/detectors/ai-structure.ts +24 -12
  195. package/src/detectors/bibliography-entry.ts +18 -0
  196. package/src/detectors/char-shape.ts +12 -7
  197. package/src/detectors/closing-cliche.ts +6 -1
  198. package/src/detectors/contraction-mention.ts +6 -2
  199. package/src/detectors/contraction-mix.ts +16 -4
  200. package/src/detectors/contraction-set-apart.ts +52 -0
  201. package/src/detectors/counter-edge.ts +35 -0
  202. package/src/detectors/densest-stretch.ts +21 -0
  203. package/src/detectors/doubled-word.ts +10 -10
  204. package/src/detectors/fullwidth-alnum.ts +19 -3
  205. package/src/detectors/gram-furniture.ts +36 -13
  206. package/src/detectors/gram-heading.ts +27 -0
  207. package/src/detectors/gram-openers.ts +54 -1
  208. package/src/detectors/gram-predicate.ts +24 -1
  209. package/src/detectors/gram-repetition.ts +44 -9
  210. package/src/detectors/gram-spread.ts +19 -0
  211. package/src/detectors/kanji-run-pieces.ts +10 -0
  212. package/src/detectors/known-correction.ts +15 -8
  213. package/src/detectors/lexicon.ts +17 -5
  214. package/src/detectors/list-lead-in.ts +59 -11
  215. package/src/detectors/list-run.ts +16 -2
  216. package/src/detectors/oxford-comma.ts +17 -2
  217. package/src/detectors/phrase-match.ts +3 -2
  218. package/src/detectors/quoted-pattern.ts +14 -0
  219. package/src/detectors/reference-entry.ts +8 -1
  220. package/src/detectors/relative-pronoun-mix.ts +5 -3
  221. package/src/detectors/sentence-parts.ts +15 -0
  222. package/src/detectors/signals.ts +47 -7
  223. package/src/detectors/superlative-context.ts +10 -2
  224. package/src/detectors/title-list.ts +21 -0
  225. package/src/detectors/token-shape.ts +20 -16
  226. package/src/detectors/unknown-word-context.ts +6 -0
  227. package/src/detectors/unknown-word.ts +10 -2
  228. package/src/plugin.ts +2 -0
  229. package/src/rule-of-three.ts +16 -2
  230. package/src/run.ts +4 -2
  231. package/src/structure-shape/faq-sections.ts +24 -0
  232. package/src/structure-shape/features.ts +5 -3
  233. package/src/structure-shape/template-outline.ts +12 -0
  234. package/src/topic-clause.ts +25 -1
@@ -10,12 +10,13 @@ uses: [pos]
10
10
  # または固有名詞か地名を含み、名前の後ろに立つ法人格で閉じる)は数えない。
11
11
  # 題の名前(title-ending で閉じ、括弧を閉じるか補いの括弧が続くか一行だけか見出しにあるか、文書の中で同じ連なりを繰り返すもの:
12
12
  # 〜実施要綱、〜選考試験、〜幹部会同)は数えない。法令・制度・給付の名前(fixed-name-ending で閉じるもの: 〜法施行令、〜制度、
13
- # 〜交付金)は、置き方を問わず数えない。
13
+ # 〜交付金、〜基金、〜区域)は、置き方を問わず数えない。
14
14
  # 日付の単位(4月の「月」)は、数に付いた助数詞として連なりの頭から外す。漢数字の日付(令和七年六月二十三日)も頭から外す。
15
15
  # 中黒の後ろへ続いて organisation-unit で閉じる名前(〜審議会企業年金・個人年金部会)の前半は数えない。
16
16
  # 文書のどこかで括弧の中身がまるごとその連なりである名前は、文の中で使っても数えない。法令の題(〜に関する法律)を囲む括弧の中の連なりも数えない。
17
17
  # 文書が単独で使う法令・制度の名前(政治資金規正法)と、法令が名に取った語(愛玩動物看護師法の「愛玩動物看護師」)は、連なりの中でも割る。
18
18
  # 職名(kanji-known-word)のすぐ前か後ろの人の姓と名も割る。元号の付いた年(令和元年)と、仮名へ続く接続の語の漢字(及び の「及」)は外す。
19
+ # 連なりの中ほどの list-suffix(高齢運転者等専用駐車区間の「等」)は語の終わりを見せるので、そこでも割る。
19
20
  extra_word_lists:
20
21
  [
21
22
  prefecture-unit,
@@ -84,8 +85,8 @@ example:
84
85
  after: 来週、新しい顧客を増やす施策を話し合う会議を開きます。
85
86
 
86
87
  not_flagged:
87
- ja: 組織の正式名称(国立研究開発法人産業技術総合研究所、経済産業省製造産業局自動車課、東日本青葉自動車販売株式会社)、題の名前(要綱・試験・事業・法令などで終わり、一行だけで書くか括弧でくくるか見出しにあるか、文書の中で繰り返すもの。大阪市鶴見区役所公募型比較見積実施要綱など)、法令・制度・給付の名前(住民基本台帳法施行令、勤労者財産形成貯蓄制度、社会資本整備総合交付金。文のどこにあっても)、chaff.yaml の names に書いた組織名や製品名、法令の条番号(第二十二条第二項)は数えません。空白を挟んで法人格か組織の区切りの後ろに立つ組織の名前(一般社団法人 全国〜センター、〜局 〜課 〜係)と、鉤括弧の中身が漢字の連なりとカタカナや英数字の語だけの名前(「登録業者情報検索入力ページ」)も数えません。頭の、前を指す語(上記、当該)と代の序数(第百二代、初代)と漢数字の日付(令和七年六月二十三日、令和元年)、尻の「等」と、仮名へ続く接続の語の漢字(方針及び基本構想の「及」)は数えません。文書のどこかで括弧でまるごとくくった名前(「署名用電子証明書確認画面」、[当事者系審判請求人])は文の中で使っても数えず、法令の題を囲む括弧((〜に関する法律))の中の連なりも数えません。文書が単独で使う法令の名前(政治資金規正法)と法令が名に取った語(愛玩動物看護師法の「愛玩動物看護師」)、職名のすぐ前か後ろの人の姓と名(小泉純一郎内閣総理大臣、内閣総理大臣石破茂)は、連なりを割ります。序数で始まる組織の単位(方式審査室第三担当、東京電力福島第一原子力発電所)と、中黒の後ろで組織の語で閉じる名前の前半(社会保障審議会企業年金・個人年金部会の「社会保障審議会企業年金」)も数えません。文書がほかで単独で使う組織の名前(安全保障理事会常任理事国の「安全保障理事会」)、連なりを閉じる決まった語(日本国内閣総理大臣の「内閣総理大臣」、〜許可事業者)は、その前後を別の連なりとして数えます。用語集(headword_genres)の、一行が漢字の連なりだけの見出し語は数えません。出席者の並び(区長、副区長、〜委員会事務局長)のように文で終わらない名前の並びの項目は、宛名と同じく、組織の名前の後ろの役職を数えません。
88
- en: Official organisation names (a legal form or a place name followed by a name that ends in a unit such as 研究所 or 協会, or a chain of units such as 省・局・課, or a name with a proper noun closed by a legal form such as 株式会社), titles of named things (a run ending in 要綱, 試験, 事業, 法 and the like that stands on a line of its own, closes a bracket, is followed by a bracketed note, appears in a heading, or recurs in the document), names of statutes, schemes and grants wherever they stand (住民基本台帳法施行令, 勤労者財産形成貯蓄制度, 社会資本整備総合交付金), names listed under names in chaff.yaml, and provision numbers in statutes (第二十二条第二項) are not counted. Nor is an organisation name that follows a legal form or an organisation unit across a space (一般社団法人 全国〜センター, 〜局 〜課 〜係), or a name in 「」 made of the kanji run and words with no kanji or hiragana (「登録業者情報検索入力ページ」). A leading word that points back or ahead (上記, 当該), a leading ordinal (第百二代, 初代), a leading date in kanji numerals (令和七年六月二十三日, 令和元年), a trailing 等 and the kanji of a conjunction that continues in kana (及 in 方針及び基本構想) are not counted. A name the document puts whole in brackets somewhere (「署名用電子証明書確認画面」, [当事者系審判請求人]) is not counted where it is used in a sentence either, nor is a run inside the brackets around a statute's title ((〜に関する法律)). A statute name the document uses on its own (政治資金規正法), the term a statute is named after (愛玩動物看護師 in 愛玩動物看護師法), and a person's full name right before or after an official title (小泉純一郎内閣総理大臣, 内閣総理大臣石破茂) split the run. Nor is an organisation unit that starts with an ordinal (方式審査室第三担当, 東京電力福島第一原子力発電所), or the first half of an organisation name that continues after a ・ and closes in an organisation unit (社会保障審議会企業年金 in 社会保障審議会企業年金・個人年金部会). An organisation name the document uses on its own elsewhere (安全保障理事会 in 安全保障理事会常任理事国), and a fixed word that closes the run (内閣総理大臣 in 日本国内閣総理大臣, 〜許可事業者) split the run, and what is before and after them is counted apart. In a glossary (headword_genres), a line that holds only a run of kanji is the headword and is not counted. In a list of names with no sentence end (an attendee list such as 区長、副区長、〜委員会事務局長), the title after an organisation name in an item is not counted, as in an addressee line.
88
+ ja: 組織の正式名称(国立研究開発法人産業技術総合研究所、経済産業省製造産業局自動車課、東日本青葉自動車販売株式会社)、題の名前(要綱・試験・事業・法令などで終わり、一行だけで書くか括弧でくくるか見出しにあるか、文書の中で繰り返すもの。大阪市鶴見区役所公募型比較見積実施要綱など)、法令・制度・給付・基金・指定区域の名前(住民基本台帳法施行令、勤労者財産形成貯蓄制度、社会資本整備総合交付金、地域医療介護総合確保基金、特定復興再生拠点区域。文のどこにあっても)、chaff.yaml の names に書いた組織名や製品名、法令の条番号(第二十二条第二項、学校教育法第三十条第二項の「第三十条第二項」)は数えません。空白を挟んで法人格か組織の区切りの後ろに立つ組織の名前(一般社団法人 全国〜センター、〜局 〜課 〜係)と、鉤括弧の中身が漢字の連なりとカタカナや英数字の語だけの名前(「登録業者情報検索入力ページ」)も数えません。頭の、前を指す語(上記、当該)と代の序数(第百二代、初代)と漢数字の日付(令和七年六月二十三日、令和元年)、尻の「等」と、仮名へ続く接続の語の漢字(方針及び基本構想の「及」)は数えません。連なりの中ほどの「等」(高齢運転者等専用駐車区間)は語の終わりを見せるので、その前と後ろを別に数えます。文書のどこかで括弧でまるごとくくった名前(「署名用電子証明書確認画面」、[当事者系審判請求人])は文の中で使っても数えず、法令の題を囲む括弧((〜に関する法律))の中の連なりも数えません。文書が単独で使う法令の名前(政治資金規正法)と法令が名に取った語(愛玩動物看護師法の「愛玩動物看護師」)、職名のすぐ前か後ろの人の姓と名(小泉純一郎内閣総理大臣、内閣総理大臣石破茂)は、連なりを割ります。序数で始まる組織の単位(方式審査室第三担当、東京電力福島第一原子力発電所)と、中黒の後ろで組織の語で閉じる名前の前半(社会保障審議会企業年金・個人年金部会の「社会保障審議会企業年金」)も数えません。文書がほかで単独で使う組織の名前(安全保障理事会常任理事国の「安全保障理事会」)、連なりを閉じる決まった語(日本国内閣総理大臣の「内閣総理大臣」、〜許可事業者)は、その前後を別の連なりとして数えます。用語集(headword_genres)の、一行が漢字の連なりだけの見出し語は数えません。出席者の並び(区長、副区長、〜委員会事務局長)のように文で終わらない名前の並びの項目は、宛名と同じく、組織の名前の後ろの役職を数えません。注の中の文献の記述(著者. 題. 出版者, 2025, p. 369.)は、引いた文献の題と名前なので数えません。
89
+ en: Official organisation names (a legal form or a place name followed by a name that ends in a unit such as 研究所 or 協会, or a chain of units such as 省・局・課, or a name with a proper noun closed by a legal form such as 株式会社), titles of named things (a run ending in 要綱, 試験, 事業, 法 and the like that stands on a line of its own, closes a bracket, is followed by a bracketed note, appears in a heading, or recurs in the document), names of statutes, schemes, grants, funds and designated zones wherever they stand (住民基本台帳法施行令, 勤労者財産形成貯蓄制度, 社会資本整備総合交付金, 地域医療介護総合確保基金, 特定復興再生拠点区域), names listed under names in chaff.yaml, and provision numbers in statutes (第二十二条第二項, and 第三十条第二項 after the statute name in 学校教育法第三十条第二項) are not counted. Nor is an organisation name that follows a legal form or an organisation unit across a space (一般社団法人 全国〜センター, 〜局 〜課 〜係), or a name in 「」 made of the kanji run and words with no kanji or hiragana (「登録業者情報検索入力ページ」). A leading word that points back or ahead (上記, 当該), a leading ordinal (第百二代, 初代), a leading date in kanji numerals (令和七年六月二十三日, 令和元年), a trailing 等 and the kanji of a conjunction that continues in kana (及 in 方針及び基本構想) are not counted. A 等 in the middle of a run (高齢運転者等専用駐車区間) shows where a word ends, so what is before and after it is counted apart. A name the document puts whole in brackets somewhere (「署名用電子証明書確認画面」, [当事者系審判請求人]) is not counted where it is used in a sentence either, nor is a run inside the brackets around a statute's title ((〜に関する法律)). A statute name the document uses on its own (政治資金規正法), the term a statute is named after (愛玩動物看護師 in 愛玩動物看護師法), and a person's full name right before or after an official title (小泉純一郎内閣総理大臣, 内閣総理大臣石破茂) split the run. Nor is an organisation unit that starts with an ordinal (方式審査室第三担当, 東京電力福島第一原子力発電所), or the first half of an organisation name that continues after a ・ and closes in an organisation unit (社会保障審議会企業年金 in 社会保障審議会企業年金・個人年金部会). An organisation name the document uses on its own elsewhere (安全保障理事会 in 安全保障理事会常任理事国), and a fixed word that closes the run (内閣総理大臣 in 日本国内閣総理大臣, 〜許可事業者) split the run, and what is before and after them is counted apart. In a glossary (headword_genres), a line that holds only a run of kanji is the headword and is not counted. In a list of names with no sentence end (an attendee list such as 区長、副区長、〜委員会事務局長), the title after an organisation name in an item is not counted, as in an addressee line. A bibliographic entry in a note (著者. 題. 出版者, 2025, p. 369.) holds the cited work's titles and names, and is not counted.
89
90
  level_meaning:
90
91
  ja: 漢字の連続 {limit} 字まで
91
92
  en: up to {limit} kanji in a row
@@ -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 つ続いた後ろの一行の文(表の行の最後の欄)も数えません。英語で、名詞の入る所の -ing 形の句(what occupying the anticipatory mode requires)と、用語の後ろの be(the anticipatory mode is)は用語で、言い回しではありません。短い文書は測りません。
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 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). 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. 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)は用語で、言い回しではありません。長い文書の中で何千語も離れて使う語句(報告が測る出来事の名前 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.
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: 読点で区切った並び、=・:・→ で区切った句、「」や『』の中の題名や引用、行の頭のリンクで引いた外のページの題名、文の中に書いた法律の題名(障害者等の移動等の円滑化の促進に関する法律)は数えません。括弧(】や ))は、解析器が次の語とつなげて読んでも連なりを切ります。人の集まりを敬って呼ぶ語の前の「の」も、その呼び方が「の」で次の語に係るとき(国民の皆様の期待、被災者の方々の暮らし)は一つの呼び方の中なので数えません。決まった言い回しの中の「の」(絶滅のおそれのある種の「おそれのある」)も、一語のように読むので数えません。
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 絶滅のおそれのある種). 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 (障害者等の移動等の円滑化の促進に関する法律), 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.
47
47
  level_meaning:
48
48
  ja: 同じ助詞の連続 {limit} 回まで
49
49
  en: up to {limit} of the same particle in a row
@@ -64,8 +64,8 @@ example:
64
64
  新しい料金は来月から始まります。請求書の形式も変わります。支払いの期限は月末です。古い料金は三月で終わります。
65
65
 
66
66
  not_flagged:
67
- ja: どちらの調子が正しいかは決めません。多いほうに揃っていない、少ないほうの文だけを指します。本文と箇条書きは別々に数えます。箇条書きの中の少ないほうが文書全体では多いほうなら、その文は指しません。項目や段落の頭の太字の札(「- **速く書ける。** 説明です。」の「速く書ける。」)は見出しと同じく文に数えません。免責や変更の予告を書いた段落(「…ご了承ください。」)が、2 文以上すべて文書の多いほうと違う同じ調子でそろっているときも、本文とは別の決まり文句として数えません。読み手の相談や質問を載せる節(見出しが「【相談事例等】」「ご質問内容」)の文も、尋ねた人の言葉のままなので数えません。文書の最後に掲載先が付けた利用条件の断り書き(ライセンスの名前と条件の URL を書いた短い段落)も数えません。札を付けて引いた言葉(「例:」「Q:」で始まる文、「用例」だけの段落の下の段落)、「■ 調査目的」のような印付きの札の行の下の記入欄の値、〒や「電話:」の行がある問い合わせ先の段落、一つの文の中に「?」で並べて引いた問い(…一覧か?順序付きか?などです。)、一番上の見出し(#)が二つ以上ある文書で、その見出しの下の 2 文以上がみな文書の多いほうと違う同じ調子でそろった部分(通達の後ろに付いた、ページの説明)も数えません。数えたうえで指さないのは、丁寧な形でしか言わない挨拶(お疲れ様でした。)、相手への願い(信じてほしい。)、条件だけで問う文(…だったら?)、演説で主語を言わずに決意を言い切る文(戦争の惨禍を、二度と繰り返さない。)、次の文が「そんな」「こんな」「これだけで」で受ける場面や行いの書き出し(PDFが送れない。そんなときは…)、「!」で終わる叫び(わかるかっ!)、※で始まる行の注記、文で終わらない行の塊に前後を挟まれた表のセル(制限なし。)です。
68
- en: Neither register is called right; only the sentences in the minority are pointed at. The body and each list are counted apart, and a sentence in a list's minority is left alone when its register is the document's majority. A bold label that opens an item or a paragraph and is followed by more text on its line is a heading, not a sentence. A paragraph of disclaimer or notice wording (…ご了承ください。) whose two or more sentences all share the register the rest of the document does not use is boilerplate in its own voice and is not counted. Nor are the sentences of a section whose heading names what a reader asked (【相談事例等】, ご質問内容), since they quote the asker in their own words. Nor is a licence notice the publisher appends at the end (a short closing paragraph that names a licence and links to its terms). Nor are words quoted under a label (a sentence opening with 例: or Q:, the paragraph under a lone 用例), the value under a marked field label (■ 調査目的), a contact block (a paragraph with a 〒 or 電話: line), questions run together inside one sentence (…一覧か?順序付きか?などです。), or, in a document with two top-level (#) headings or more, a part under one of them whose two or more sentences all share the register the rest of the document does not use (a page's note about the directive it carries). Counted but never pointed at are a greeting said only politely (お疲れ様でした。), a wish to others (信じてほしい。), a question that gives only a condition (…だったら?), a speaker declaring a resolve without a subject in a speech (戦争の惨禍を、二度と繰り返さない。), a scene-setting opener the next sentence takes up with そんな, こんな or これだけで, a cry that ends in an exclamation mark (わかるかっ!), a note on a line opening with ※, and a table cell set out between runs of lines that do not end as sentences (制限なし。).
67
+ ja: どちらの調子が正しいかは決めません。多いほうに揃っていない、少ないほうの文だけを指します。本文と箇条書きは別々に数えます。箇条書きの中の少ないほうが文書全体では多いほうなら、その文は指しません。項目や段落の頭の太字の札(「- **速く書ける。** 説明です。」の「速く書ける。」)は見出しと同じく文に数えません。免責や変更の予告を書いた段落(「…ご了承ください。」)が、2 文以上すべて文書の多いほうと違う同じ調子でそろっているときも、本文とは別の決まり文句として数えません。読み手の相談や質問を載せる節(見出しが「【相談事例等】」「ご質問内容」)の文も、尋ねた人の言葉のままなので数えません。文書の最後に掲載先が付けた利用条件の断り書き(ライセンスの名前と条件の URL を書いた短い段落)も数えません。札を付けて引いた言葉(「例:」「Q:」で始まる文、「用例」だけの段落の下の段落)、「■ 調査目的」のような印付きの札の行の下の記入欄の値、〒や「電話:」の行がある問い合わせ先の段落、一つの文の中に「?」で並べて引いた問い(…一覧か?順序付きか?などです。)、一番上の見出し(#)が二つ以上ある文書で、その見出しの下の 2 文以上がみな文書の多いほうと違う同じ調子でそろった部分(通達の後ろに付いた、ページの説明)も数えません。数えたうえで指さないのは、丁寧な形でしか言わない挨拶(お疲れ様でした。)と結びの頼み(承認をお願いします。)、相手への願い(信じてほしい。)、条件だけで問う文(…だったら?)、演説で主語を言わずに決意を言い切る文(戦争の惨禍を、二度と繰り返さない。)、次の文が「そんな」「こんな」「これだけで」で受ける場面や行いの書き出し(PDFが送れない。そんなときは…)、「!」で終わる叫び(わかるかっ!)、※で始まる行の注記、文で終わらない行の塊に前後を挟まれた表のセル(制限なし。)です。
68
+ en: Neither register is called right; only the sentences in the minority are pointed at. The body and each list are counted apart, and a sentence in a list's minority is left alone when its register is the document's majority. A bold label that opens an item or a paragraph and is followed by more text on its line is a heading, not a sentence. A paragraph of disclaimer or notice wording (…ご了承ください。) whose two or more sentences all share the register the rest of the document does not use is boilerplate in its own voice and is not counted. Nor are the sentences of a section whose heading names what a reader asked (【相談事例等】, ご質問内容), since they quote the asker in their own words. Nor is a licence notice the publisher appends at the end (a short closing paragraph that names a licence and links to its terms). Nor are words quoted under a label (a sentence opening with 例: or Q:, the paragraph under a lone 用例), the value under a marked field label (■ 調査目的), a contact block (a paragraph with a 〒 or 電話: line), questions run together inside one sentence (…一覧か?順序付きか?などです。), or, in a document with two top-level (#) headings or more, a part under one of them whose two or more sentences all share the register the rest of the document does not use (a page's note about the directive it carries). Counted but never pointed at are a greeting or a closing request said only politely (お疲れ様でした。承認をお願いします。), a wish to others (信じてほしい。), a question that gives only a condition (…だったら?), a speaker declaring a resolve without a subject in a speech (戦争の惨禍を、二度と繰り返さない。), a scene-setting opener the next sentence takes up with そんな, こんな or これだけで, a cry that ends in an exclamation mark (わかるかっ!), a note on a line opening with ※, and a table cell set out between runs of lines that do not end as sentences (制限なし。).
69
69
  level_meaning:
70
70
  ja: 少ないほうの調子の文が {limit} 文以下のとき、それを指摘
71
71
  en: reported when the minority register has {limit} sentences or fewer
@@ -52,8 +52,8 @@ example:
52
52
  We sell apples, pears, and plums. We ship to homes, offices, and schools. We accept cash, cards, and vouchers.
53
53
 
54
54
  not_flagged:
55
- ja: カンマを打つかどうかは決めません。半々に分かれた文書では、どちらが少ないとも言えないので指しません。郵便番号で終わる住所のあとの and / or(Leeds LS1 4AB, or email)は、住所の読点のあとなので並びとして数えません。最後の読点のあとに前後を空けたダッシュがある and / or(Washington, DC – The Cybersecurity and Infrastructure Security Agency)も、読点はダッシュの前の日付行のものなので数えません。読点のあとの否定(more correct, not cleaner or more elegant)と、順番の語で始まる導入(First, outside a block, …)も並びではありません。主語と述語のあいだに読点で挟んだ例の句(X, such as Y, are excluded and are not…)も並びの項目に数えません。and / or の直前で読点に挟まれ、中に and / or を持つ例の句(gases, such as ozone and carbon dioxide, and the amount)のあとの読点は、句を閉じる読点なので数えません。番号を付けた法典の区分のあとの名前(Title 44, Public Printing and Documents)と、前の項目を限定する句(any other agency or office, in accordance with law or as directed)の中の and / or も数えません。but で始まる節(If you need help, but it’s not a priority, add it and bring it up)、文頭のつなぎの語(However,)、不定冠詞と形容詞だけの語(A simple, minimalist palette / Neat, a flexible and lightweight grid)、目的語を後ろに残した前置詞(impose conditions upon, certain transfers / on or before May 1)は並びの項目ではありません。並びがその先も続くなら(and so forth まで続く並びも)、途中の項目の中の and / or は最後の継ぎ目ではありません(counseling and financial literacy, commercial conversions, and support)。読点なしで同じ接続詞を重ねた並び(questions and issues and use cases)と、省略の印(... や * * *)を含む引用の中の並びも数えません。
56
- en: Whether to use the comma is not decided. A document split evenly has no minority and is not reported. An and / or right after a postal address closed by its postcode ("Leeds LS1 4AB, or email us") follows the address's commas and is not counted as a list, and neither is one after a spaced dash that follows the last comma (a dateline such as "Washington, DC – The Cybersecurity and Infrastructure Security Agency"). Nor is a contrast after a comma ("more correct, not cleaner or more elegant") or an introduction opened by a sequence word ("First, outside a block, …"), and an example phrase set off by commas between a subject and its predicate ("X, such as Y, are excluded and are not…") is not counted as an item. A comma that closes an example phrase holding its own and / or just before the and ("gases, such as ozone and carbon dioxide, and the amount") closes the aside and is not counted. Nor is an and / or inside the name after a numbered division of a code ("Title 44, Public Printing and Documents") or inside a phrase that qualifies the item before it ("any other agency or office, in accordance with law or as directed"). A clause opened by but ("If you need help, but it’s not a priority, add it and bring it up"), a word tying the sentence to the last one ("However,"), an indefinite article with only adjectives ("A simple, minimalist palette" / "Neat, a flexible and lightweight grid") and a preposition left waiting for its object ("impose conditions upon, certain transfers" / "on or before May 1") are not items. When the list goes on past an and / or, including to "and so forth", that and / or is inside an item, not the last joint ("counseling and financial literacy, commercial conversions, and support"). A run that repeats the conjunction without commas ("questions and issues and use cases") and a list inside a quotation that marks an omission (... or * * *) are not counted either.
55
+ ja: カンマを打つかどうかは決めません。半々に分かれた文書では、どちらが少ないとも言えないので指しません。郵便番号で終わる住所のあとの and / or(Leeds LS1 4AB, or email)は、住所の読点のあとなので並びとして数えません。最後の読点のあとに前後を空けたダッシュがある and / or(Washington, DC – The Cybersecurity and Infrastructure Security Agency)も、読点はダッシュの前の日付行のものなので数えません。読点のあとの否定(more correct, not cleaner or more elegant)と、順番の語で始まる導入(First, outside a block, …)も並びではありません。主語と述語のあいだに読点で挟んだ例の句(X, such as Y, are excluded and are not…)も並びの項目に数えません。and / or の直前で読点に挟まれ、中に and / or を持つ例の句(gases, such as ozone and carbon dioxide, and the amount)のあとの読点は、句を閉じる読点なので数えません。番号を付けた法典の区分のあとの名前(Title 44, Public Printing and Documents)と、前の項目を限定する句(any other agency or office, in accordance with law or as directed)の中の and / or も数えません。but で始まる節(If you need help, but it’s not a priority, add it and bring it up)、文頭のつなぎの語(However,)、不定冠詞と形容詞だけの語(A simple, minimalist palette / Neat, a flexible and lightweight grid)、目的語を後ろに残した前置詞(impose conditions upon, certain transfers / on or before May 1)は並びの項目ではありません。並びがその先も続くなら(and so forth まで続く並びも)、途中の項目の中の and / or は最後の継ぎ目ではありません(counseling and financial literacy, commercial conversions, and support)。読点なしで同じ接続詞を重ねた並び(questions and issues and use cases)と、省略の印(... や * * *)を含む引用の中の並びも数えません。動詞と目的語のあいだに読点で挟んだ前置詞の句(received, at its most recent examination, a rating)は並びの項目ではなく、並びの前置詞を最後の項目で言い直したもの(at A, B, C and D campgrounds, and at E)は同じ並びの続きです。題名を文の書き方で並べた所(The bridge witch, The law of finance and regulation, …)の、小文字の語が続く and / or は題名の中のものです。
56
+ en: Whether to use the comma is not decided. A document split evenly has no minority and is not reported. An and / or right after a postal address closed by its postcode ("Leeds LS1 4AB, or email us") follows the address's commas and is not counted as a list, and neither is one after a spaced dash that follows the last comma (a dateline such as "Washington, DC – The Cybersecurity and Infrastructure Security Agency"). Nor is a contrast after a comma ("more correct, not cleaner or more elegant") or an introduction opened by a sequence word ("First, outside a block, …"), and an example phrase set off by commas between a subject and its predicate ("X, such as Y, are excluded and are not…") is not counted as an item. A comma that closes an example phrase holding its own and / or just before the and ("gases, such as ozone and carbon dioxide, and the amount") closes the aside and is not counted. Nor is an and / or inside the name after a numbered division of a code ("Title 44, Public Printing and Documents") or inside a phrase that qualifies the item before it ("any other agency or office, in accordance with law or as directed"). A clause opened by but ("If you need help, but it’s not a priority, add it and bring it up"), a word tying the sentence to the last one ("However,"), an indefinite article with only adjectives ("A simple, minimalist palette" / "Neat, a flexible and lightweight grid") and a preposition left waiting for its object ("impose conditions upon, certain transfers" / "on or before May 1") are not items. When the list goes on past an and / or, including to "and so forth", that and / or is inside an item, not the last joint ("counseling and financial literacy, commercial conversions, and support"). A run that repeats the conjunction without commas ("questions and issues and use cases") and a list inside a quotation that marks an omission (... or * * *) are not counted either. A prepositional phrase set off by commas between a verb and its object ("received, at its most recent examination, a rating") is not an item, a last item that repeats the list's preposition ("at A, B, C and D campgrounds, and at E") continues the same list, and in a list of titles written in sentence case ("The bridge witch, The law of finance and regulation, …") an and / or followed by a lower-case word belongs to a title.
57
57
  level_meaning:
58
58
  ja: 少ないほうの打ち方が {limit} 箇所以下のとき指摘
59
59
  en: reported when the minority style appears {limit} times or fewer
@@ -122,8 +122,8 @@ example:
122
122
  - No review
123
123
 
124
124
  not_flagged:
125
- ja: 箇条書きが 3 つより少ない文書は見ません。5 つより少なければ、1 つで割合が大きく動くので、全部が 3 項目のときだけ指摘します。すぐ下の行が「など」で始まる箇条書きは、書いた 3 つのほかにもあると言っているので、3 項目とは数えません。仕様書(technical/spec)のジャンルでは見ません。文の中に並べた 3 つの語(「速く、安く、確実に」)は数えません。人の文書のほうが多く書くからです。
126
- en: "Documents with fewer than three lists are not checked. With fewer than five, one list moves the share a long way, so only a document whose every list has three items is reported. A list followed by a line opening with etc. or and so on says there are more than the three written, and is not counted as three. Specification (technical/spec) genres do not run this rule. Three words listed inside a sentence (fast, cheap and reliable) are not counted, since human documents write them more often."
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."
127
127
  level_meaning:
128
128
  ja: 3 項目の箇条書きの割合 {limit}% まで
129
129
  en: up to {limit}% of lists with exactly three items
@@ -45,8 +45,8 @@ example:
45
45
  来週は、新しい担当者の紹介、先月から続く予算の見直し、春の本社移転の準備、秋の採用計画の確認、年末の懇親会の段取りを話し合います。そのため定例会議は二時間に延長します。
46
46
 
47
47
  not_flagged:
48
- ja: 主題(名詞+は)の無い文、鉤括弧で引いたものの中、上限までの距離は見ません。主題の述語が先の節で閉じる文(「この計画は簡単ではありませんが、…」「〜であって、…」、後ろの節に別の主語がある「〜ではなく、」「〜であるため、」、読点を挟まない「〜は〜で、」「〜であるならば、」「〜にあるところ、」「〜ており、」、受け身で伝える引用「〜だと言われているが」、主題と「〜ますが、」「〜ましたが、」の間に別の主語が無く、その後ろが別の主語(〜が)の節を経て新しい主題に移る文か、直後に名前の新しい主題(〜ましたが、赤澤大臣は…)が立って文末まで続く文、主題からそこまでに別の主語が無い「〜ことから、」「〜つつ、」「〜としても、」「〜こととし、」(語は語彙表 topic-clause-close)、述語の後ろに丸数字の番号(③)が来て一行に詰まった箇条の次の項目が始まるところ)は、その節の終わりまでを数えます。後ろの節の主語には「〜のほとんどは」も数えます。時や場面を言う「は」(今夜は、当日は、〜ときは)の後ろに別の主題があれば、その主題から数えます。法令でも契約でもない文書が条文をそのまま載せた文(「第7条 …」、形は語彙表 statute-article-opener)は、書き手が直せる文ではないので数えません。英語の文書には使いません。
49
- en: Sentences with no topic (noun + は), quotations in 「」, and distances up to the limit are not counted. When the topic gets its own predicate in an earlier clause (〜ではありませんが, 〜であって; 〜ではなく, 〜であるため, 〜は〜で with no comma between, 〜であるならば, 〜にあるところ or 〜ており followed by a clause with its own subject; a passive report 〜だと言われているが; 〜ますが or 〜ましたが with no other subject between the topic and it, followed by a clause with a subject of its own (〜が) and then a new topic, or straight away by a name as a new topic that runs to the end (〜ましたが、赤澤大臣は…); 〜ことから, 〜つつ, 〜としても or 〜こととし with no other subject between the topic and it, from the topic-clause-close word list; a circled number (③) after a predicate, where a list run into one line starts its next item), the count stops at that clause's end. A later clause's subject may be a part, as in 〜のほとんどは. When a は that sets the time or the case (今夜は, 当日は, 〜ときは) is followed by another topic, the count starts from that topic. An article of a statute that a document of another kind quotes as it stands (第7条 …, the forms in the statute-article-opener word list) is not the writer's sentence and is not counted. Not used on English documents.
48
+ ja: 主題(名詞+は)の無い文、鉤括弧で引いたものの中、上限までの距離は見ません。主題の述語が先の節で閉じる文(「この計画は簡単ではありませんが、…」「〜であって、…」、後ろの節に別の主語がある「〜ではなく、」「〜であるため、」、読点を挟まない「〜は〜で、」「〜であるならば、」「〜にあるところ、」「〜ており、」、受け身で伝える引用「〜だと言われているが」、主題と「〜ますが、」「〜ましたが、」の間に別の主語が無く、その後ろが別の主語(〜が)の節を経て新しい主題に移る文か、直後に名前の新しい主題(〜ましたが、赤澤大臣は…)が立って文末まで続く文、主題からそこまでに別の主語が無い「〜ことから、」「〜つつ、」「〜としても、」「〜こととし、」(語は語彙表 topic-clause-close)、述語の後ろに丸数字の番号(③)が来て一行に詰まった箇条の次の項目が始まるところ、「〜のは」の主題が「という」で名詞に掛かる節の中で繋辞の述語を得て、その名詞句が読点で終わるところ(〜来てほしいのは日本であったという調査の結果、…))は、その節の終わりまでを数えます。後ろの節の主語には「〜のほとんどは」も数えます。時や場面を言う「は」(今夜は、当日は、〜ときは)の後ろに別の主題があれば、その主題から数えます。法令でも契約でもない文書が条文をそのまま載せた文(「第7条 …」、形は語彙表 statute-article-opener)は、書き手が直せる文ではないので数えません。英語の文書には使いません。
49
+ en: Sentences with no topic (noun + は), quotations in 「」, and distances up to the limit are not counted. When the topic gets its own predicate in an earlier clause (〜ではありませんが, 〜であって; 〜ではなく, 〜であるため, 〜は〜で with no comma between, 〜であるならば, 〜にあるところ or 〜ており followed by a clause with its own subject; a passive report 〜だと言われているが; 〜ますが or 〜ましたが with no other subject between the topic and it, followed by a clause with a subject of its own (〜が) and then a new topic, or straight away by a name as a new topic that runs to the end (〜ましたが、赤澤大臣は…); 〜ことから, 〜つつ, 〜としても or 〜こととし with no other subject between the topic and it, from the topic-clause-close word list; a circled number (③) after a predicate, where a list run into one line starts its next item; a 〜のは topic that gets its copula inside a clause という makes a noun's content, when that noun phrase ends at a comma, as in 〜来てほしいのは日本であったという調査の結果、…), the count stops at that clause's end. A later clause's subject may be a part, as in 〜のほとんどは. When a は that sets the time or the case (今夜は, 当日は, 〜ときは) is followed by another topic, the count starts from that topic. An article of a statute that a document of another kind quotes as it stands (第7条 …, the forms in the statute-article-opener word list) is not the writer's sentence and is not counted. Not used on English documents.
50
50
  level_meaning:
51
51
  ja: 主題から述語まで {limit} 字まで
52
52
  en: up to {limit} characters between the topic and the predicate
@@ -35,7 +35,10 @@ extra_word_lists:
35
35
  case-party-joiner,
36
36
  citation-author-joiner,
37
37
  text-message-verb,
38
+ opening-conjunction,
38
39
  product-name,
40
+ phone-label,
41
+ file-noun,
39
42
  ]
40
43
  uses: [pos]
41
44
  severity: info
@@ -88,8 +91,8 @@ example:
88
91
  after: Our key goal indicator (KGI) this term is to reach product-market fit (PMF).
89
92
 
90
93
  not_flagged:
91
- ja: 誰でも知っている略語(URL、PDF など)と、前後の括弧で説明した略語、会社の名前の中の英字(㈱ADEKA、CO.,LTD.)は指しません。ひな形の名前の置き場所(OOOO、XX 月)と、外のページへのリンクを並べた一覧の題名の中の略語も指しません(題名の略語は数には入れます)。大文字の違うだけの書き方で説明した略語(TCoP と TCOP)、略語を話題にする文で語に書き出した略語(略語の DOB … date of birth)、一覧で語のすぐ下にその語を名指すリンクを入れ子にした語(- GPL の下の GNU General Public License)も指しません。判例の引用の中の当事者と裁判所の名前(Ashwander v. TVA, 297 U.S. 288、MCI Telecomms. Corp. v. AT&T、(SDNY 1952))、引用の中の行政機関の事件番号(NOV/CFA 01-01)も指しません(引用の略語は数には入れます)。判決の頭の MR. JUSTICE も指しません。括弧の中で略語に「or」で別の呼び名を添えたもの(Department of Health and Human Services (HHS or the Department))、ハイフンで繋いだ字まで名前と揃うもの(Agency for Health (ARPA-H))は説明したと読み、メールアドレスの中の英字(OASH-RFI@hhs.gov)は略語と読みません。文書の中に書いた ABNF の文法の規則の名前と値(CRLF、%x0D)、等級の並び(A と AA)、番号で引く官報や判例集(80 FR 66128、2022 WL 4447293)、日付の付いた識別子の前の種類(WD WD-ABC1-20200101)、PO Box の PO も指しません。文献を引いて始まる注(1. See L. Summers (2015), "…," IMF Economic Review)の中の略語は、引いた文献の題名や誌名の書き方なので指しません(数には入れます)。角括弧の見出しで始まる文献の項目([FETCH] WHATWG, …)の中の略語も同じです。2 つ以上の番号で引く続き物の名前(BCP 78 と BCP 14、DR 4339 と DR 4340)、同じ文の前のほうで名前を書き出した略語(U.S. Small Business Administration … SBA)、肩書きの後ろの判事の姓(Lord HOLT、Mr. Justice BULLER)、商標の印の付いた名前(Acrobat DC®)、条で引く法令集(44 USC. 3502、15 USCA § 709)と、編と区分で引く法令集(21 CFR subpart J)も指しません。ショートメッセージで送るキーワード(texting GNPCGS to 333111)、名前のまま書いた製品の版(Adobe Acrobat Reader DC)、頭だけ大文字の語に繋いだ名前の中の大文字(NITE SAFE-Lite)も指しません。同じ文の前のほうで、同じ名詞の前に小文字で書き出した略語(incident response plan … IR plans)と、括弧の中で小文字の語を添えた略語の名前の頭の頭文字が揃うもの(… Partnerships to Stimulate Cybersecurity Education (RAMPS program))は説明したと読みます。貼り付けたチャットの発言(<jinxer-wm> FIRING …)の中の略語は、発言した人やボットの言葉なので指しません(数には入れます)。番地から州と郵便番号まで揃った所在地の中の大文字(1600 Elm Rd. NE, MS K12-3, Springfield, GA 30329 の NE と MS)、SQL のキーワード(VIEW、WHERE)、文の中で頭だけ大文字の語にも書いた名前を大文字で書いたもの(a hotel / Airbnb と書いた文書の AIRBNB)も指しません。
92
- en: Common acronyms (URL, PDF), acronyms spelled out in brackets next to them, and the letters of a company name (㈱ADEKA, CO.,LTD.) are not reported. Neither are a template's placeholders (OOOO, XX 月) or an acronym in the title of a page in a list of links (it still counts towards the limit). Nor are an acronym explained under another capitalisation (TCoP, then TCOP), one a sentence about the abbreviation writes out (the abbreviation DOB … date of birth), or a term in a list whose nested link names it (- GPL above GNU General Public License). Nor are the parties and courts of a case citation (Ashwander v. TVA, 297 U.S. 288; MCI Telecomms. Corp. v. AT&T; (SDNY 1952)), an agency's docket number in a citation (NOV/CFA 01-01); a citation's acronyms still count towards the limit. Nor is the MR. JUSTICE that opens a line of an opinion. An acronym given another name after "or" in its parenthesis (Department of Health and Human Services (HHS or the Department)) or spelled out with its hyphened letter (Agency for Health (ARPA-H)) counts as expanded, and the letters of an email address (OASH-RFI@hhs.gov) are not an acronym. Nor are the rule names and values of an ABNF grammar in the text (CRLF, %x0D), the rungs of a grade ladder (A and AA), a register or reporter cited by number (80 FR 66128, 2022 WL 4447293), the kind written before a dated identifier (WD WD-ABC1-20200101), or the PO of a PO Box. A note that opens with a citation (1. See L. Summers (2015), "…," IMF Economic Review) is written in the cited work's words, and its acronyms are not reported (they still count towards the limit); so is an entry of a reference list keyed by a bracketed label ([FETCH] WHATWG, …). Nor are capitals the document cites by two or more numbers (BCP 78 and BCP 14, DR 4339 and DR 4340), an acronym whose name the same sentence writes out before it (U.S. Small Business Administration … SBA), a judge's surname after his title (Lord HOLT, Mr. Justice BULLER), a name marked as a trademark (Acrobat DC®), a code cited by section (44 USC. 3502, 15 USCA § 709), or a code cited by title and division (21 CFR subpart J). Nor are a keyword to send by text message (texting GNPCGS to 333111), a product's edition written with the product's name (Adobe Acrobat Reader DC), or capitals joined to a capitalised word in a name (NITE SAFE-Lite). An acronym the same sentence writes out in lower case before the same noun (incident response plan … IR plans), and one bracketed with a word in lower case after a name whose head gives its letters (… Partnerships to Stimulate Cybersecurity Education (RAMPS program)), count as expanded. An acronym in a pasted chat line (<jinxer-wm> FIRING …) is the speaker's or the bot's words, and is not reported (it still counts towards the limit). Nor are the capitals inside a postal address that runs from a street number to a state and ZIP code (the NE and MS of 1600 Elm Rd. NE, MS K12-3, Springfield, GA 30329), a keyword of SQL (VIEW, WHERE), or a name in capitals that the document also writes inside a sentence with only its first letter a capital (AIRBNB in a text that writes a hotel / Airbnb).
94
+ ja: 誰でも知っている略語(URL、PDF など)と、前後の括弧で説明した略語、会社の名前の中の英字(㈱ADEKA、CO.,LTD.)は指しません。ひな形の名前の置き場所(OOOO、XX 月)と、外のページへのリンクを並べた一覧の題名の中の略語も指しません(題名の略語は数には入れます)。大文字の違うだけの書き方で説明した略語(TCoP と TCOP)、略語を話題にする文で語に書き出した略語(略語の DOB … date of birth)、一覧で語のすぐ下にその語を名指すリンクを入れ子にした語(- GPL の下の GNU General Public License)も指しません。判例の引用の中の当事者と裁判所の名前(Ashwander v. TVA, 297 U.S. 288、MCI Telecomms. Corp. v. AT&T、(SDNY 1952))、引用の中の行政機関の事件番号(NOV/CFA 01-01)も指しません(引用の略語は数には入れます)。判決の頭の MR. JUSTICE も指しません。括弧の中で略語に「or」で別の呼び名を添えたもの(Department of Health and Human Services (HHS or the Department))、ハイフンで繋いだ字まで名前と揃うもの(Agency for Health (ARPA-H))は説明したと読み、メールアドレスの中の英字(OASH-RFI@hhs.gov)は略語と読みません。文書の中に書いた ABNF の文法の規則の名前と値(CRLF、%x0D)、等級の並び(A と AA)、番号で引く官報や判例集(80 FR 66128、2022 WL 4447293)、日付の付いた識別子の前の種類(WD WD-ABC1-20200101)、PO Box の PO も指しません。文献を引いて始まる注(1. See L. Summers (2015), "…," IMF Economic Review)の中の略語は、引いた文献の題名や誌名の書き方なので指しません(数には入れます)。角括弧の見出しで始まる文献の項目([FETCH] WHATWG, …)の中の略語も同じです。2 つ以上の番号で引く続き物の名前(BCP 78 と BCP 14、DR 4339 と DR 4340)、同じ文の前のほうで名前を書き出した略語(U.S. Small Business Administration … SBA)、肩書きの後ろの判事の姓(Lord HOLT、Mr. Justice BULLER)、商標の印の付いた名前(Acrobat DC®)、条で引く法令集(44 USC. 3502、15 USCA § 709)と、編と区分で引く法令集(21 CFR subpart J)も指しません。ショートメッセージで送るキーワード(texting GNPCGS to 333111)、名前のまま書いた製品の版(Adobe Acrobat Reader DC)、頭だけ大文字の語に繋いだ名前の中の大文字(NITE SAFE-Lite)も指しません。同じ文の前のほうで、同じ名詞の前に小文字で書き出した略語(incident response plan … IR plans)と、括弧の中で小文字の語を添えた略語の名前の頭の頭文字が揃うもの(… Partnerships to Stimulate Cybersecurity Education (RAMPS program))は説明したと読みます。貼り付けたチャットの発言(<jinxer-wm> FIRING …)の中の略語は、発言した人やボットの言葉なので指しません(数には入れます)。番地から州と郵便番号まで揃った所在地の中の大文字(1600 Elm Rd. NE, MS K12-3, Springfield, GA 30329 の NE と MS)、SQL のキーワード(VIEW、WHERE)、文の中で頭だけ大文字の語にも書いた名前を大文字で書いたもの(a hotel / Airbnb と書いた文書の AIRBNB)も指しません。行の頭に大文字で書いた接続詞(OR, Skip to …、二つの選択肢の間に一行で置いた OR)も指しません。ファイルの種類の名前としてだけ書いた大文字(the MAP files、MAPファイル、拡張子の “.MAP”)も指しません。辞書が間投詞としてしか知らない 3 文字以上の語を大文字で書いたもの(製品の名前の HEY)も指しません。
95
+ en: Common acronyms (URL, PDF), acronyms spelled out in brackets next to them, and the letters of a company name (㈱ADEKA, CO.,LTD.) are not reported. Neither are a template's placeholders (OOOO, XX 月) or an acronym in the title of a page in a list of links (it still counts towards the limit). Nor are an acronym explained under another capitalisation (TCoP, then TCOP), one a sentence about the abbreviation writes out (the abbreviation DOB … date of birth), or a term in a list whose nested link names it (- GPL above GNU General Public License). Nor are the parties and courts of a case citation (Ashwander v. TVA, 297 U.S. 288; MCI Telecomms. Corp. v. AT&T; (SDNY 1952)), an agency's docket number in a citation (NOV/CFA 01-01); a citation's acronyms still count towards the limit. Nor is the MR. JUSTICE that opens a line of an opinion. An acronym given another name after "or" in its parenthesis (Department of Health and Human Services (HHS or the Department)) or spelled out with its hyphened letter (Agency for Health (ARPA-H)) counts as expanded, and the letters of an email address (OASH-RFI@hhs.gov) are not an acronym. Nor are the rule names and values of an ABNF grammar in the text (CRLF, %x0D), the rungs of a grade ladder (A and AA), a register or reporter cited by number (80 FR 66128, 2022 WL 4447293), the kind written before a dated identifier (WD WD-ABC1-20200101), or the PO of a PO Box. A note that opens with a citation (1. See L. Summers (2015), "…," IMF Economic Review) is written in the cited work's words, and its acronyms are not reported (they still count towards the limit); so is an entry of a reference list keyed by a bracketed label ([FETCH] WHATWG, …). Nor are capitals the document cites by two or more numbers (BCP 78 and BCP 14, DR 4339 and DR 4340), an acronym whose name the same sentence writes out before it (U.S. Small Business Administration … SBA), a judge's surname after his title (Lord HOLT, Mr. Justice BULLER), a name marked as a trademark (Acrobat DC®), a code cited by section (44 USC. 3502, 15 USCA § 709), or a code cited by title and division (21 CFR subpart J). Nor are a keyword to send by text message (texting GNPCGS to 333111), a product's edition written with the product's name (Adobe Acrobat Reader DC), or capitals joined to a capitalised word in a name (NITE SAFE-Lite). An acronym the same sentence writes out in lower case before the same noun (incident response plan … IR plans), and one bracketed with a word in lower case after a name whose head gives its letters (… Partnerships to Stimulate Cybersecurity Education (RAMPS program)), count as expanded. An acronym in a pasted chat line (<jinxer-wm> FIRING …) is the speaker's or the bot's words, and is not reported (it still counts towards the limit). Nor are the capitals inside a postal address that runs from a street number to a state and ZIP code (the NE and MS of 1600 Elm Rd. NE, MS K12-3, Springfield, GA 30329), a keyword of SQL (VIEW, WHERE), or a name in capitals that the document also writes inside a sentence with only its first letter a capital (AIRBNB in a text that writes a hotel / Airbnb). Nor is a conjunction written in capitals at the head of a line (OR, Skip to …; an OR alone between two options). Nor are capitals a document writes only as the name of a kind of file (the MAP files, MAPファイル, the extension “.MAP”). Nor is a word of three letters or more that the dictionary knows only as an interjection, written in capitals (HEY, a product's name).
93
96
  level_meaning:
94
97
  ja: 説明のない略語が {limit} 種類あれば指摘。文書が自分で略語を {limit} 個展開していれば、1 つの抜けから指摘
95
98
  en: reported once {limit} different acronyms go unexplained, or from the first one when the document itself spells out {limit} others
@@ -47,8 +47,8 @@ example:
47
47
  The report is attached to this email.
48
48
 
49
49
  not_flagged:
50
- ja: 大文字を含む語、四字より短い語、コード・URL・メールアドレスの中の語、強調や角括弧で頭の字を分けた語の残り(**G**lobally の lobally、[e]xpressions の xpressions)、文書で二度以上使う語、一字違いの辞書の語が無い語、chaff.yaml の names に並べた語、語彙表 known-misspelling が別に言う語は指しません。同じ文書がコード(`tidyq check` やコードの区画)にも書いた語も、その文書の名前なので指しません。検索の語の後に * を付けた形(vaccin*)と、それと同じ行に並べた検索の語も、語ではないので指しません。文書がほかの語尾で使う語(rightsize と rightsized)、引用符や括弧の中に一語だけ書いた語("mailto"、(jchaplin))、文書が URL にも書いた語、他の言語の語の隣の語(bête noire)、角括弧や括弧の字を続けた語(handl[e]、neuro(a)typicality)、= の前の変数の名(nboot=2,000)、四字以上の辞書の語二つを続けた語(crowdwork)、薬の国際一般名の語幹で終わる語(paroxetine の -oxetine)、版の番号の前の語(golang 1.21.5)、辞書に無い別の語と一字だけ違う語(pthread と bthread、同じ作りの名前)も指しません。
51
- en: Words with a capital letter, words shorter than four letters, words in code, URLs and email addresses, the rest of a word whose first letter is set apart by emphasis or brackets (lobally in **G**lobally, xpressions in [e]xpressions), words used twice or more in the document, words with no dictionary word one letter away, words listed under names in chaff.yaml, and the misspellings known-misspelling reports are not reported. Nor is a word the document also writes in code (`tidyq check`, a code block), since it is a name the document uses. Nor is a search stem ending in a wildcard (vaccin*), or any search term on the same line. Nor is a word the document uses with another ending (rightsize and rightsized), a word alone in quotes or brackets ("mailto", (jchaplin)), a word the document also writes in a URL, a word beside a word of another language (bête noire), a word joined to a bracketed letter (handl[e], neuro(a)typicality), a variable name before = (nboot=2,000), two dictionary words of four letters or more written as one (crowdwork), a word ending in the stem of a drug's international name (-oxetine in paroxetine), a word before a release number (golang 1.21.5), or a word one letter from another word of the document the dictionary does not know either (pthread and bthread, names on one scheme).
50
+ ja: 大文字を含む語、四字より短い語、コード・URL・メールアドレスの中の語、強調や角括弧で頭の字を分けた語の残り(**G**lobally の lobally、[e]xpressions の xpressions)、文書で二度以上使う語、一字違いの辞書の語が無い語、chaff.yaml の names に並べた語、語彙表 known-misspelling が別に言う語は指しません。同じ文書がコード(`tidyq check` やコードの区画)にも書いた語も、その文書の名前なので指しません。検索の語の後に * を付けた形(vaccin*)と、それと同じ行に並べた検索の語も、語ではないので指しません。文書がほかの語尾で使う語(rightsize と rightsized)、引用符や括弧の中に一語だけ書いた語("mailto"、(jchaplin))、文書が URL にも書いた語、他の言語の語の隣の語(bête noire)、角括弧や括弧の字を続けた語(handl[e]、neuro(a)typicality)、= の前の変数の名(nboot=2,000)、四字以上の辞書の語二つを続けた語(crowdwork)、薬の国際一般名の語幹で終わる語(paroxetine の -oxetine)、版の番号の前の語(golang 1.21.5)、誌の巻と号の前の語(Biochemia medica 22 (3) の medica)、辞書に無い別の語と一字だけ違う語(pthread と bthread、同じ作りの名前)も指しません。
51
+ en: Words with a capital letter, words shorter than four letters, words in code, URLs and email addresses, the rest of a word whose first letter is set apart by emphasis or brackets (lobally in **G**lobally, xpressions in [e]xpressions), words used twice or more in the document, words with no dictionary word one letter away, words listed under names in chaff.yaml, and the misspellings known-misspelling reports are not reported. Nor is a word the document also writes in code (`tidyq check`, a code block), since it is a name the document uses. Nor is a search stem ending in a wildcard (vaccin*), or any search term on the same line. Nor is a word the document uses with another ending (rightsize and rightsized), a word alone in quotes or brackets ("mailto", (jchaplin)), a word the document also writes in a URL, a word beside a word of another language (bête noire), a word joined to a bracketed letter (handl[e], neuro(a)typicality), a variable name before = (nboot=2,000), two dictionary words of four letters or more written as one (crowdwork), a word ending in the stem of a drug's international name (-oxetine in paroxetine), a word before a release number (golang 1.21.5), a word before a journal's volume and issue (medica in Biochemia medica 22 (3)), or a word one letter from another word of the document the dictionary does not know either (pthread and bthread, names on one scheme).
52
52
  rewrite:
53
53
  depth: light
54
54
  en:
@@ -53,7 +53,7 @@ example:
53
53
 
54
54
  not_flagged:
55
55
  ja: 「当社比」「〜の中で」「〜のほうが」のように、比べる相手や範囲が同じ文にあれば指しません。「SES との最大の違い」のように、最上級のすぐ前に相手があるときも同じです。「国内最大」「業界最速」のように名詞がじかに付いた最上級と、「日本で最も」のように名前と「で」が前にある最上級は、範囲を言っているので指しません。「バグを検出できる唯一のルール」のように、動詞で終わる節が最上級のすぐ前にあって範囲を決めているときも同じです。「」や引用符で引いた言葉の中の最上級は、書き手の主張ではないので指しません。「最大化する」のように接尾辞が付いて別の語になったものも指しません。「芭蕉の最も有名な句」のように名前と「の」がすぐ前にある最上級、「最高裁判所」「最も近い駅」のような決まった言い方、「最大5億ドル」のように数のある文の最上級も指しません。「世界で唯一の」のように場や分野の名詞と「で」が前にある最上級、「俺にとって最高の日」のように誰にとってなのかが同じ節にある最上級、「最高の規律が求められる」「最高の栄誉が与えられるべき」のように求めるもの・あるべき姿として述べた最上級、「最も重要なことは」のように話の順を示す言い方、問いの文(?で終わる文)の最上級も指しません。
56
- en: A superlative with its comparison or scope in the same sentence ("in our range", "than last year", "the fastest in the industry") is not reported, nor is one limited by a clause ("the best we have measured"), nor one inside quotation marks, which are someone else's words, nor one inside a set phrase ("even the best", "in the best case", "make the most of", "the most recent", "the most common"), nor one in a question. A superlative that is sought or chosen rather than claimed ("to achieve the best results", "before deciding the best way", "start with the most important tasks") is not reported, nor one whose predicate points at a member of a set ("the best plan is the one you keep"), nor one whose noun names a part of a whole ("the most important part", "the most important role"), nor one whose set follows its noun ("the best thing about this event", "the most common form of debunking", "the most important tool for creating the culture").
56
+ en: A superlative with its comparison or scope in the same sentence ("in our range", "than last year", "the fastest in the industry") is not reported, nor is one limited by a clause ("the best we have measured"), nor one inside quotation marks, which are someone else's words, nor one inside a set phrase ("even the best", "in the best case", "make the most of", "the most recent", "the most common"), nor one in a question. A superlative that is sought or chosen rather than claimed ("to achieve the best results", "before deciding the best way", "start with the most important tasks") is not reported, nor one whose predicate points at a member of a set ("the best plan is the one you keep") or puts it in an order ("the most critical vulnerabilities are addressed first"), nor one whose noun names a part of a whole ("the most important part", "the most important role"), nor one whose set follows its noun ("the best thing about this event", "the most common form of debunking", "the most important tool for creating the culture").
57
57
  level_meaning:
58
58
  ja: 比べる相手のない最上級が {limit} 箇所あれば指摘
59
59
  en: reported once there are {limit} such claims
@@ -76,6 +76,7 @@ export const HUMAN_SHARES: HumanShares = {
76
76
  "closing-cliche": {
77
77
  academic: { documents: 10, fired: 0 },
78
78
  blog: { documents: 23, fired: 0 },
79
+ business: { documents: 11, fired: 0 },
79
80
  docs: { documents: 21, fired: 0 },
80
81
  legal: { documents: 35, fired: 1 },
81
82
  literature: { documents: 13, fired: 0 },
@@ -0,0 +1,27 @@
1
+ import type { Finding } from "./plugin.ts";
2
+
3
+ /** A finding that adds up measures names here the rules that read the same shapes as some of them (ai-structure). */
4
+ export const SAME_SHAPE_VALUE = "same_shape_rules";
5
+
6
+ const sameShapeRules = (finding: Finding): string[] =>
7
+ String(finding.values[SAME_SHAPE_VALUE] ?? "")
8
+ .split(",")
9
+ .filter((id) => id !== "");
10
+
11
+ /**
12
+ * Whether a finding still reaches its own limit once the measures already counted by their own rule are taken out:
13
+ * section length variation and section-length-uniformity are one sign, and a composite would count it twice.
14
+ */
15
+ const countsOnItsOwn = (finding: Finding, fired: readonly string[]): boolean => {
16
+ const shared = sameShapeRules(finding).filter((id) => fired.includes(id)).length;
17
+ const count = finding.values["count"];
18
+ const limit = finding.values["limit"];
19
+ if (shared === 0 || typeof count !== "number" || typeof limit !== "number") return true;
20
+ return count - shared >= limit;
21
+ };
22
+
23
+ /** The signals of `from` a composite counts: each one that fired, and one sign only once. */
24
+ export const compositeSignals = (from: readonly string[], found: readonly Finding[]): string[] => {
25
+ const fired = from.filter((id) => found.some((finding) => finding.rule === id));
26
+ return fired.filter((id) => found.some((finding) => finding.rule === id && countsOnItsOwn(finding, fired)));
27
+ };
@@ -43,6 +43,10 @@ export type NotationWords = {
43
43
  readonly dateTimeUnits: readonly string[];
44
44
  /** ショートメッセージでキーワードを送る動詞(text GNPCGS to 333111 の text)。 */
45
45
  readonly textMessageVerbs?: readonly string[];
46
+ /** 行の頭に大文字で書く接続詞(OR, Skip to …)。略語でもある語(OR は Oregon)なので、行の頭で読点と名前の形か行の終わりが続くときだけ。 */
47
+ readonly openingConjunctions?: readonly string[];
48
+ /** 電話番号の前に置く語(TEL、FAX)。大文字で書いた形だけを、番号のすぐ前でだけ外す。 */
49
+ readonly phoneLabels?: readonly string[];
46
50
  };
47
51
 
48
52
  const MINUTES = String.raw`:[0-5]\d`;
@@ -107,9 +111,45 @@ const placeAndState = (states: string): RegExp =>
107
111
  const textMessageKeyword = (verbs: readonly string[]): RegExp =>
108
112
  new RegExp(String.raw`(?<![\p{L}\p{N}_])${oneOf(verbs)}\s+["“']?[A-Z][A-Z0-9]+["”']?\s+to\s+\d{4,6}(?!\d)`, "giu");
109
113
 
114
+ /**
115
+ * 行の頭に大文字で書いた接続詞(OR, Skip to the topics …、選択肢の間に一行で置いた OR)。読点の後ろに頭だけ大文字の語が続くか、
116
+ * その行がそこで終わるときだけ。州の並び(OR, WA and ID)や文の途中の OR(the OR staff)は略語のまま数える。
117
+ */
118
+ const openingConjunction = (words: readonly string[]): RegExp =>
119
+ new RegExp(String.raw`(?<=(?:^|\n)[ \t]*)${oneOf(words)}(?=,[ \t]+\p{Lu}\p{Ll}|[ \t]*(?:\r?\n|$))`, "gu");
120
+
110
121
  /** メールアドレス(OASH-RFI@hhs.gov)。@ の前の大文字は宛先の名前で、略語ではない。 */
111
122
  const EMAIL_ADDRESS = /(?<![\p{L}\p{N}._%+-])[\p{L}\p{N}._%+-]+@[\p{L}\p{N}-]+(?:\.[\p{L}\p{N}-]+)+/gu;
112
123
 
124
+ /** SNS のアカウント名(follow us at @USGSA)。@ のすぐ後ろの大文字はアカウントの綴りで、略語ではない。 */
125
+ const SOCIAL_HANDLE = /(?<![\p{L}\p{N}_.%+-])[@@]\w+/gu;
126
+
127
+ /** 『』で囲んだ大文字だけの名前(中期計画『SHIFT』)。日本語の文が計画や作品の名前に付ける括弧で、中身は名前。 */
128
+ const HOOKED_NAME = /『[A-Z][A-Z0-9&.・ -]*』/gu;
129
+
130
+ /** 電話番号の桁。全角の数字と区切り、雛形の伏せ字(03-〇〇〇〇-〇〇〇〇)も数える。 */
131
+ const PHONE_DIGIT = String.raw`[\d0-9〇○]`;
132
+ const PHONE_CHARACTER = String.raw`[\d0-9〇○()()++\-‐-ー.\s]`;
133
+ const MIN_PHONE_DIGITS = 7;
134
+ const DIGIT = new RegExp(PHONE_DIGIT, "gu");
135
+
136
+ /**
137
+ * 電話番号の前の大文字の札(TEL 03-3222-1061、FAX: (202) 555-0100)。札は語彙表 phone-label の語を大文字にした形で、
138
+ * すぐ後ろに 7 桁以上の番号が続くときだけ外す。番号の無い TEL や FAX(the FAX machine)は略語のまま数える。
139
+ */
140
+ const phoneLabelSpans = (labels: readonly string[]): ((text: string) => Span[]) => {
141
+ const capitals = [...new Set(labels.filter((label) => /^[A-Za-z]{2,6}$/u.test(label)).map((label) => label.toUpperCase()))];
142
+ if (capitals.length === 0) return () => [];
143
+ const pattern = new RegExp(
144
+ String.raw`(?<![\p{L}\p{N}_])${oneOf(capitals)}[ \t]*[.::]?[ \t\u3000]*(?<number>[((++]?${PHONE_DIGIT}${PHONE_CHARACTER}*${PHONE_DIGIT})`,
145
+ "gu",
146
+ );
147
+ return (text) =>
148
+ [...text.matchAll(pattern)]
149
+ .filter((match) => ((match.groups?.["number"] ?? "").match(DIGIT) ?? []).length >= MIN_PHONE_DIGITS)
150
+ .map((match) => ({ start: match.index, end: match.index + match[0].length }));
151
+ };
152
+
113
153
  // 強調の記号は空白に置き換えてある(**3:30** PM)ので、部品の間の空白は数を問わない。
114
154
  const patternsOf = (words: NotationWords): readonly RegExp[] => [
115
155
  new RegExp(String.raw`${CLOCK_12}\s*${oneOf(words.meridiem)}`, "gu"),
@@ -124,7 +164,10 @@ const patternsOf = (words: NotationWords): readonly RegExp[] => [
124
164
  capitalHonorific(words.honorifics),
125
165
  ...titledName(oneOf(words.titles)),
126
166
  textMessageKeyword(words.textMessageVerbs ?? []),
167
+ openingConjunction(words.openingConjunctions ?? []),
127
168
  EMAIL_ADDRESS,
169
+ SOCIAL_HANDLE,
170
+ HOOKED_NAME,
128
171
  ];
129
172
 
130
173
  export type NotAcronymSpans = (text: string) => Span[];
@@ -135,7 +178,9 @@ export type NotAcronymSpans = (text: string) => Span[];
135
178
  */
136
179
  export const notAcronymSpansOf = (words: NotationWords): NotAcronymSpans => {
137
180
  const patterns = patternsOf(words);
181
+ const phoneLabels = phoneLabelSpans(words.phoneLabels ?? []);
138
182
  return (text) => [
183
+ ...phoneLabels(text),
139
184
  ...patterns.flatMap((pattern) => [...text.matchAll(pattern)].map((match) => ({ start: match.index, end: match.index + match[0].length }))),
140
185
  ...citationKeySpans(text),
141
186
  ...dottedNameSpans(text),
@@ -165,6 +210,8 @@ export const lexiconNotationOf = (wordsOf: (id: string) => string[]): NotAcronym
165
210
  titles: wordsOf("name-title"),
166
211
  dateTimeUnits: wordsOf("date-time-unit"),
167
212
  textMessageVerbs: wordsOf("text-message-verb"),
213
+ openingConjunctions: wordsOf("opening-conjunction"),
214
+ phoneLabels: wordsOf("phone-label"),
168
215
  });
169
216
  const names = nameSpansOf({
170
217
  legalForms: wordsOf("legal-form"),
@@ -180,12 +227,23 @@ export const lexiconNotationOf = (wordsOf: (id: string) => string[]): NotAcronym
180
227
  return (text) => [...notation(text), ...names(text)];
181
228
  };
182
229
 
230
+ /**
231
+ * 午前・午後の点の後ろで文が切れた時刻と時間帯(between 8 a.m. and 8 p.m. ET, Monday …)。文分けは p.m. の点で文を切るので、
232
+ * 時間帯は次の文の頭に来る。文の中で見る組み立てと同じものを、文書の上で見る。強調の記号(**8 p.m.** ET)も挟んでよい。
233
+ */
234
+ const clockZoneSpans = (source: string, timeZones: readonly string[]): Span[] => {
235
+ if (timeZones.length === 0) return [];
236
+ const pattern = new RegExp(String.raw`${CLOCK_12}\s*${ANY_MERIDIEM}[\s*_]*${oneOf(timeZones)}(?![\p{L}\p{N}_&])`, "gu");
237
+ return [...source.matchAll(pattern)].map((match) => ({ start: match.index, end: match.index + match[0].length }));
238
+ };
239
+
183
240
  /** 文書全体で読む、略語として数えない範囲。文献一覧の誌名や会議名、番号の付いた区切りの見出し、ABNF の文法、文に切れ目の入る所在地(Rd. NE)。 */
184
241
  export const sourceNotAcronymSpans = (source: string, wordsOf: (id: string) => string[]): Span[] => [
185
242
  ...postalAddressSpans(source, wordsOf("street-suffix"), wordsOf("us-state-code")),
186
243
  ...referenceListSpans(source, wordsOf("reference-list-heading")),
187
244
  ...outlineLabelSpans(source, wordsOf("numbered-division")),
188
245
  ...grammarSpans(source),
246
+ ...clockZoneSpans(source, wordsOf("time-zone")),
189
247
  ];
190
248
 
191
249
  /**
@@ -0,0 +1,33 @@
1
+ // Capitals a document writes only as the name of a kind of file (the MAP files, each MAP file, MAPファイル): the file type,
2
+ // named by its extension, not an acronym the reader needs spelled out. Pure; the file nouns come from the file-noun lexicon.
3
+ import { escapeRegExp } from "../orthography.ts";
4
+
5
+ /** One place an acronym stands: the text right before and after it, and the part of speech of the word after it when the language reads one. */
6
+ export type AcronymUse = { readonly word: string; readonly preceding: string; readonly following: string; readonly nextPos?: string | undefined };
7
+
8
+ /** The extension itself (“.MAP”): a dot that does not end a word or a number (U.S.MAP, 1.MAP). */
9
+ const EXTENSION_DOT = /(?:^|[^\p{L}\p{N}_.])\.$/u;
10
+
11
+ /** A file noun ends where no Latin letter or digit follows: MAPファイルを reads ファイル, the MAP filesystem does not read file. */
12
+ const fileNounAhead = (fileNouns: readonly string[]): RegExp =>
13
+ new RegExp(String.raw`^[ \t]?(?:${fileNouns.map(escapeRegExp).join("|")})(?![\p{Script=Latin}\p{N}_])`, "iu");
14
+
15
+ /**
16
+ * The acronyms every use of which is followed by a file noun, or is the extension itself (“.MAP”). One use elsewhere (the WAL
17
+ * receiver beside a WAL file) shows the capitals name more than the file. At least one file noun must not be read as a verb
18
+ * (the SEC files a suit): the tagger misreads a few nouns (the MAP files themselves), so one noun reading is enough.
19
+ */
20
+ export const fileTypeNames = (uses: readonly AcronymUse[], fileNouns: readonly string[]): Set<string> => {
21
+ if (fileNouns.length === 0) return new Set();
22
+ const ahead = fileNounAhead(fileNouns);
23
+ const isExtension = (use: AcronymUse): boolean => EXTENSION_DOT.test(use.preceding);
24
+ const isFileUse = (use: AcronymUse): boolean => isExtension(use) || ahead.test(use.following);
25
+ const isNounUse = (use: AcronymUse): boolean => isExtension(use) || use.nextPos !== "VERB";
26
+ const words = new Set(uses.map((use) => use.word));
27
+ return new Set(
28
+ [...words].filter((word) => {
29
+ const own = uses.filter((use) => use.word === word);
30
+ return own.every(isFileUse) && own.some(isNounUse);
31
+ }),
32
+ );
33
+ };
@@ -1,8 +1,17 @@
1
1
  // Capitals a document uses as the name of a numbered series (RFC 5785 and RFC 7230, BCP 78 and BCP 14, DR 4339 and
2
2
  // DR 4340). Pure.
3
3
 
4
- /** Capitals, a space, and a whole number that is not part of a decimal, a range or a longer identifier. */
5
- const NUMBERED = /(?<![\p{L}\p{N}_&.-])(?<series>[A-Z]{2,6}) (?<number>\d{1,6})(?![\p{L}\p{N}_&]|[.,:/-]\d)/gu;
4
+ /**
5
+ * Capitals, a space, and a whole number that is not part of a decimal, a range or a longer identifier. A letter's number
6
+ * (SR 24-2, CA 21-13) is a two-digit year and the letter's place in it.
7
+ */
8
+ const NUMBERED = /(?<![\p{L}\p{N}_&.-])(?<series>[A-Z]{2,6}) (?<number>\d\d-\d{1,3}|\d{1,6})(?![\p{L}\p{N}_&]|[.,:/-]\d)/gu;
9
+
10
+ /** Two numbers of one length, the smaller first (10-20), are a range, not a year and a letter's place in it. */
11
+ const isRange = (number: string): boolean => {
12
+ const [low, high] = number.split("-");
13
+ return high !== undefined && low !== undefined && low.length === high.length && Number(low) < Number(high);
14
+ };
6
15
 
7
16
  /** A year after capitals is when something was held or issued (FOSDEM 2024, SKO 2025), not a number in a series. */
8
17
  const YEAR = /^(?:19|20)\d\d$/u;
@@ -20,8 +29,18 @@ export const numberedSeries = (source: string): ReadonlySet<string> => {
20
29
  [...source.matchAll(NUMBERED)].forEach((match) => {
21
30
  const series = match.groups?.["series"] ?? "";
22
31
  const number = match.groups?.["number"] ?? "";
23
- if (YEAR.test(number)) return;
32
+ if (YEAR.test(number) || isRange(number)) return;
24
33
  numbers.set(series, (numbers.get(series) ?? new Set<string>()).add(number));
25
34
  });
26
35
  return new Set([...numbers].filter(([, seen]) => seen.size >= MIN_NUMBERS).map(([series]) => series));
27
36
  };
37
+
38
+ /** A heading that opens with a document's number in its series and a colon (### SR 26-8: Updates to …). */
39
+ const NUMBER_HEADING = /^(?<series>[A-Z]{2,6}) \d+(?:-\d+)+:\s/u;
40
+
41
+ /**
42
+ * The capitals of a series whose number titles a heading: the page is that numbered letter or notice, and its series is
43
+ * how the reader finds it. A plain number (KPI 1: Revenue) numbers the headings and makes no series.
44
+ */
45
+ export const headingSeries = (headings: readonly string[]): ReadonlySet<string> =>
46
+ new Set(headings.flatMap((heading) => NUMBER_HEADING.exec(heading)?.groups?.["series"] ?? []));
@@ -48,6 +48,11 @@ const contrastWordsOf = (doc: ProseDocument, frames: Lexicon): ContrastWords =>
48
48
 
49
49
  /** 対比の枠は、一つなら論点の整理。二つ目から数える(割合の上限が、長い文書の二つを落とす)。 */
50
50
  const MIN_CONTRASTS = 2;
51
+ /**
52
+ * 枠が 1000 語(日本語は 1000 字)に 1 つ以下なら重なっていない。文の長い文書(有価証券報告書の方針の節)は文の数が少なく、
53
+ * 離れた二つの枠でも割合が上限を超える。生成文は短い文書に二つ三つを詰める。
54
+ */
55
+ const MIN_CONTRAST_DENSITY = 1;
51
56
  const PERCENT = 100;
52
57
 
53
58
  /** 文書の言語の文のうち、対比の枠で書いた文の割合(百分率、小数 1 桁)。文の長さが言語で違っても同じ物差しで比べられる。 */
@@ -62,7 +67,8 @@ export const contrastFraming: Detector = (doc, options): Finding[] => {
62
67
  const hits = contrastSentences(doc.sentences, words)
63
68
  .filter((sentence) => sentence.embeddedLanguage === undefined)
64
69
  .map((sentence) => ({ sentence, matched: (firstIn(sentence, words.frames) ?? firstIn(sentence, words.leads))?.pattern ?? "" }));
65
- if (hits.length < MIN_CONTRASTS || wordsOf(doc) < MIN_DOCUMENT_LENGTH[doc.lengthUnit]) return [];
70
+ const length = wordsOf(doc);
71
+ if (hits.length < MIN_CONTRASTS || length < MIN_DOCUMENT_LENGTH[doc.lengthUnit] || hits.length * PER <= length * MIN_CONTRAST_DENSITY) return [];
66
72
  const share = contrastShare(doc, hits.length);
67
73
  return share <= options.limit ? [] : hits.map((hit) => findingOf(hit, { count: hits.length, share, limit: options.limit }));
68
74
  };
@@ -4,31 +4,43 @@ import { STRUCTURE_TEXT } from "../outline/structure-text.ts";
4
4
  import { structureOf } from "../structure-shape/of-document.ts";
5
5
  import { headedSections } from "../structure-shape/features.ts";
6
6
  import { headingWords } from "../structure-shape/heading-words.ts";
7
- import { isTemplateOutline, templateSectionsOf } from "../structure-shape/template-outline.ts";
7
+ import { isTemplateOutline, isWholeTemplateOutline, templateSectionsOf } from "../structure-shape/template-outline.ts";
8
+ import { SAME_SHAPE } from "../ai-score/signals.ts";
9
+ import { SAME_SHAPE_VALUE } from "../composite-signals.ts";
8
10
 
9
11
  /** The template outline's name in the message, beside the structure measures past the human articles. */
10
12
  const TEMPLATE_NAME: Texts<string> = { ja: "提案書・報告書の定型の見出し", en: "the textbook proposal or report headings" };
11
13
 
12
- const templateSections = (doc: ProseDocument): string[] =>
13
- templateSectionsOf(
14
- headedSections(doc.sections).map((section) => headingWords(section.heading)),
15
- doc.lexicons["template-heading"] ?? [],
16
- );
14
+ /** The name of the second count a template outline gives when it is the whole outline. */
15
+ const WHOLE_TEMPLATE_NAME: Texts<string> = { ja: "見出しのほとんどが定型", en: "almost no heading outside that outline" };
16
+
17
+ const headingWordsOf = (doc: ProseDocument): string[] => headedSections(doc.sections).map((section) => headingWords(section.heading));
18
+
19
+ /** The template names the outline earns: one for the textbook sections, one more when they are nearly all its headings. */
20
+ const templateNames = (doc: ProseDocument): Array<Texts<string>> => {
21
+ const headings = headingWordsOf(doc);
22
+ const lexicon = doc.lexicons["template-heading"] ?? [];
23
+ if (!isTemplateOutline(templateSectionsOf(headings, lexicon))) return [];
24
+ return isWholeTemplateOutline(headings, lexicon) ? [TEMPLATE_NAME, WHOLE_TEMPLATE_NAME] : [TEMPLATE_NAME];
25
+ };
17
26
 
18
27
  /**
19
28
  * The document's outline is past the human articles on several structure measures at once (chaff outline's structure
20
29
  * block): many headings, three-way splits, bold labels, uniform sections. One alone is ordinary; the limit is how many.
21
- * A textbook outline (Summary, Current Situation, Proposed Solution, Expected Benefits…) counts as one more.
30
+ * A textbook outline (Summary, Current Situation, Proposed Solution, Expected Benefits…) counts as one more, and as one
31
+ * more again when it is nearly the whole outline; even then it needs a measure past the human articles to reach the limit.
22
32
  */
23
33
  export const aiStructure: Detector = (doc, options): Finding[] => {
24
34
  const scored = structureOf(doc);
25
- const template = isTemplateOutline(templateSections(doc));
26
- const count = scored.score + (template ? 1 : 0);
35
+ const template = templateNames(doc);
36
+ const count = scored.score + template.length;
27
37
  if (count < options.limit) return [];
28
38
  const language = uiLanguageOf(doc.language);
29
39
  const text = STRUCTURE_TEXT[language];
30
- const measures = scored.placements.filter((placement) => placement.beyond).map((placement) => text.features[placement.feature.id].name);
31
- const names = template ? [...measures, TEMPLATE_NAME[language]] : measures;
40
+ const beyond = scored.placements.filter((placement) => placement.beyond).map((placement) => placement.feature.id);
41
+ const measures = beyond.map((id) => text.features[id].name);
42
+ const sameShape = beyond.flatMap((id) => SAME_SHAPE[id] ?? []);
43
+ const names = [...measures, ...template.map((name) => name[language])];
32
44
  const heading = (doc.markup?.headings ?? []).find((entry) => entry.depth > 1) ?? doc.markup?.headings[0];
33
45
  return [
34
46
  {
@@ -37,7 +49,7 @@ export const aiStructure: Detector = (doc, options): Finding[] => {
37
49
  line: 0,
38
50
  column: 0,
39
51
  quote: heading?.text ?? "",
40
- values: { word: names.join(text.listSeparator), count, limit: options.limit, offset: heading?.start ?? 0 },
52
+ values: { word: names.join(text.listSeparator), count, limit: options.limit, offset: heading?.start ?? 0, [SAME_SHAPE_VALUE]: sameShape.join(",") },
41
53
  },
42
54
  ];
43
55
  };