asciidoc-pubkit 1.2.2 → 1.3.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.
@@ -1,18 +1,58 @@
1
1
  # Prose evaluation
2
2
 
3
+ ## Actor clarity comparisons (v1.2.3)
4
+
5
+ Twelve additional calibration pairs cover conditional actor changes, user refusal
6
+ versus program control, caller investigation, continued subjects, optional
7
+ repetition, table roles, unsupported actors/approvers, invented automatic checks,
8
+ and capability changed into behavior. The judge rubric checks each clause's actor
9
+ and evidence. Candidate-free paragraphs remain in review prompts. Mechanical
10
+ verification can accept a wrong actor while keeping `meaning_verified: false`;
11
+ these regression tests and calibration data do not measure AI review quality.
12
+
13
+
3
14
  Use a fixed set of Japanese technical paragraphs to compare detector or review
4
15
  criteria changes against a project-defined baseline. Keep detection performance,
5
16
  readability, and meaning preservation separate so that a clearer rewrite cannot
6
17
  hide a lost condition or invented fact.
7
18
 
8
19
  This guide describes the development checkout, including the
9
- `technical-prose-v3` corpus and 77 revision calibration pairs. The sentence-ending
20
+ `technical-prose-v3` corpus and 155 revision calibration pairs. The sentence-ending
10
21
  criteria and twelve additional pairs, plus the flow guidance and four further
11
22
  pairs, are included in version 1.2.0.
12
23
  The evaluation runner is not an
13
24
  installed gem command. It does not measure Japanese naturalness or AI authorship
14
25
  as a single validated score.
15
26
 
27
+ ## Stopping comparisons (v1.2.3)
28
+
29
+ `test/fixtures/stop_wording.ja.json` contains manual source/revision pairs for
30
+ stopping, ending iteration, cancellation requests, pre-execution refusal,
31
+ unstarted work, disabled operations and supported temporary pauses. Rejection
32
+ cases cover lost conditions, capability strengthened into behavior, requests
33
+ misreported as completion, invented forceful termination or resumption, and
34
+ idiomatic `受け止める` misread as a stopping operation.
35
+
36
+ The fixture is separate from the runner's revision calibration corpus. Its
37
+ regression tests check fixture integrity and delivery of the criteria through
38
+ writing and saved review prompts; they do not run an AI judge, measure Japanese
39
+ quality, or establish semantic correctness. Detector rules are unchanged.
40
+
41
+ ## Classification and related relationships (v1.2.3)
42
+
43
+ `test/fixtures/classification_wording.ja.json` contains fourteen manually labeled
44
+ source/revision pairs. Accepted examples identify classification axes, defined
45
+ categories, responsibilities, branching, partition boundaries, loading routes
46
+ and table correspondences. Rejection examples cover invented runtime classifiers,
47
+ weakened defined categories, classification substituted for branching, lost
48
+ conditions or joins, invented parallel execution and inspection success.
49
+
50
+ This fixture is separate from the runner's calibration corpus. The judge rubric
51
+ also distinguishes these relationships. Tests check fixture integrity, rubric
52
+ instructions, delivery through writing and all three review scopes, and historical
53
+ session preservation. They do not invoke an AI judge or measure editing accuracy.
54
+ No detector or automatic replacement rules are added.
55
+
16
56
  ## Three different evaluations
17
57
 
18
58
  | Evaluation | Input and method | What the number means |
@@ -45,7 +85,7 @@ of Japanese writing.
45
85
  | [prose_benchmark.ja.adoc](../test/fixtures/prose_benchmark.ja.adoc) | 26 paragraphs used as the actual AsciiDoc input |
46
86
  | [prose_benchmark.ja.json](../test/fixtures/prose_benchmark.ja.json) | Matching paragraph IDs and text, 11 annotated detector targets, and preservation checklists |
47
87
  | [prose_benchmark.yml](../test/fixtures/prose_benchmark.yml) | Fixed empty configuration that isolates the benchmark from discovered manuscript settings |
48
- | [prose_evaluation.ja.json](../test/fixtures/prose_evaluation.ja.json) | Detection examples and 77 manual revision pairs with expected `accept`, `reject`, or `needs-evidence` dispositions |
88
+ | [prose_evaluation.ja.json](../test/fixtures/prose_evaluation.ja.json) | Detection examples and 155 manual revision pairs with expected `accept`, `reject`, or `needs-evidence` dispositions |
49
89
 
50
90
  The corpus includes framing such as `重要なのは`, metaphorical operations such
51
91
  as `地味に効く`, inflected and negative forms, and repeated endings. Controls
@@ -130,6 +170,31 @@ Normal tests validate fixture integrity, prompt delivery and saved criteria;
130
170
  they do not establish improved AI proofreading. See the
131
171
  [research and proposal](explanatory-guidance-research.md) for the design rationale.
132
172
 
173
+ ## Reader learning objectives and paragraph guidance
174
+
175
+ The development criteria add six calibration pairs for reader-subject-only
176
+ repairs, potential-ending-only repairs, concrete learning goals, vague goals,
177
+ actual learning activities, and paragraph-level consolidation with a failure
178
+ condition retained. Goals identify supported explanation, distinction or decision
179
+ targets without promising comprehension. Understanding is not a banned term.
180
+ The judge rubric and calibration fingerprints change; establish a compatible AI
181
+ baseline before comparing rewrite quality. The detector corpus, rules and
182
+ mechanical verification are unchanged. Normal tests exercise fixture integrity
183
+ and evaluator data delivery, not the correctness of an AI's editorial decisions.
184
+
185
+ ## Rules, definitions, and configured values
186
+
187
+ Ten v1.2.3 calibration pairs compare rule specification, structure and workflow
188
+ definition, configured destinations, mixed operations, and limit types. They include
189
+ faithful revisions and controls, newly invented enforcement (`needs-evidence`),
190
+ permissions changed into obligations, plans changed into runtime checks, and a
191
+ rejected unchanged passage under an explicit terminology preference. These are
192
+ project-authored examples, not measurements of AI proofreading improvement.
193
+ The calibration and judge rubric fingerprints change, so a compatible fresh AI
194
+ baseline is needed before measuring rewrite quality. The detector corpus, rules,
195
+ and mechanical verification are unchanged. Regression tests check criteria
196
+ propagation to new prompts and preserve historical session criteria.
197
+
133
198
  ## What normal tests check
134
199
 
135
200
  Run the complete suite from the repository root with MeCab and UTF-8 IPADIC
@@ -315,3 +380,65 @@ results establish detector and workflow regression checks only.
315
380
 
316
381
  [Development](development.md) · [Manuscript scoring](scoring.md) ·
317
382
  [Back to README](../README.md)
383
+
384
+ ## Receiving and returning calibration (v1.2.3)
385
+
386
+ Thirteen additional pairs cover request intake, stream reception,
387
+ function arguments, stdout output, model generation, input assembly, an accurate
388
+ unchanged value return, an explicit terminology preference, established
389
+ throw/catch, changed execution/display responsibilities, unsupported HTTP, and
390
+ signal-delivery versus cancellation timing. The evaluator rubric names these
391
+ operation and ownership distinctions without supplying the gold decisions.
392
+ The fixed detector corpus still measures only its original three kinds, so its
393
+ scores do not measure the new `受け取る` cue. Regression tests check that cue in
394
+ MeCab and literal modes and check prompt delivery and fixture integrity.
395
+ No AI rewrite/judge trials were run for this change; improved proofreading is
396
+ unmeasured. Old AI reports have different criteria/calibration fingerprints and
397
+ need a fresh compatible baseline for quality comparison.
398
+
399
+ ## Direct-negation calibration (v1.2.3)
400
+
401
+ Ten added calibration pairs compare direct operation denial, unavailable
402
+ capability, insufficient conditions, partial negation and necessary inference
403
+ limits. Reject partial negation made into total denial, missing observation
404
+ made into an asserted non-event, and inability made into a discretionary action.
405
+ An invented OS enforcement mechanism needs evidence. These controls and the
406
+ judge rubric require compatible new AI baselines; no model evaluation was run
407
+ and no improvement in AI proofreading has been measured. Mechanical verification
408
+ continues to report `meaning_verified: false`.
409
+
410
+ ## Replacement, interpretation, and use limits
411
+
412
+ Nine added calibration pairs cover `置き換えません`: five faithful revisions
413
+ for approval, fixed-response testing, missing usage, progress notices and impression
414
+ scoring; one retained actual history-replacement description; and three rejected
415
+ changes that lose history construction, assert non-completion from missing evidence,
416
+ or turn an unavailable use into a discretionary choice. The judge rubric names
417
+ these distinctions. Normal tests check fixture integrity, existing MeCab detection,
418
+ and saved criteria delivery, not whether an AI judges the pairs correctly.
419
+ AI proofreading improvement has not been measured. Fix a fresh calibration and
420
+ rubric baseline before comparing AI results with an earlier run.
421
+
422
+ ## Direct interpretation-limit calibration (v1.2.3)
423
+
424
+ Ten additional pairs cover direct summary, observation, evaluation and missing-usage
425
+ limits; nonzero usage inferred from missing counts; unconditional evaluation denial;
426
+ non-execution inferred from missing observation; a retained interpretation policy;
427
+ a policy weakened into uncertainty; and an ignored explicit author preference.
428
+ The earlier fixed-response and missing-usage replacement examples now use direct
429
+ predicates. Fixture and rubric fingerprints change, requiring compatible new AI
430
+ baselines. Normal tests check detector behavior, fixture integrity and saved-prompt
431
+ contracts; no AI evaluation or improvement measurement was performed.
432
+
433
+ ## Transfer wording comparisons (v1.2.3)
434
+
435
+ `test/fixtures/transfer_wording.ja.json` contains 18 manual examples: nine accept,
436
+ eight reject and one needs-evidence. They contrast input with transport, arguments
437
+ with events, value delivery with delegation, continuity with persistence, and
438
+ handoff with acceptance or completion. They also preserve bidirectional contracts,
439
+ negation and capability. This standalone fixture is not added to the measured
440
+ benchmark corpus or calibration runner. Tests check fixture integrity and delivery
441
+ of criteria to writing and saved review prompts, including historical-session
442
+ preservation; they do not establish AI judgment accuracy. The updated judge rubric
443
+ requires a compatible fresh baseline for future AI comparisons. No AI evaluation
444
+ was run; improvement remains unmeasured and `meaning_verified` remains false.
@@ -291,9 +291,10 @@ support is for local prose correction, not chapter reorganization.
291
291
 
292
292
  Source hashes are checked before generating a prompt. Modified sources, modified
293
293
  session artifacts, and incompatible session versions require a fresh scan.
294
- `review scan`, `review prompt`, and `review verify` accept `--lang ja`; prompt and
295
- verify check the value against the session language. A non-Japanese language in
296
- `--lang`, `review.language`, or an explicit AsciiDoc `:lang:` attribute is rejected.
294
+ `review scan`, `review prompt`, and `review verify` accept `--lang ja` or `--lang en` in version 1.3.0; prompt and
295
+ verify check the value against the session language. Unsupported languages,
296
+ regional tags and mismatched explicit AsciiDoc `:lang:` attributes are rejected.
297
+ See [English review](english-review.md) for English-specific analysis limits.
297
298
  An omitted `:lang:` attribute uses the selected review language.
298
299
 
299
300
  ### Faithful terminology comparisons
@@ -1,5 +1,31 @@
1
1
  # Rules and coverage
2
2
 
3
+ ## General operation wording (v1.2.3)
4
+
5
+ `行う` is an advisory `weak-predicate` cue in prose and supported list text.
6
+ MeCab detects dictionary forms, including `行える`, and retains inflection,
7
+ negation and Unicode positions. Literal mode matches only listed surfaces.
8
+ Compare direct action verbs with responsibility wording through the shared
9
+ "Distinguish operations from responsibility" criteria. Neither the cue nor
10
+ `担当します` is an automatic replacement rule. Inline masking, allow lists
11
+ and complete custom rule sets still apply; saved sessions retain their rules
12
+ and criteria. Candidate detection does not establish an editorial defect.
13
+
14
+ ## Arrival wording (v1.2.3)
15
+
16
+ The checkout adds `届く` as an advisory `weak-predicate` cue in prose and list
17
+ text. MeCab matches its dictionary form and retains inflection, negation and
18
+ Unicode source positions. Explicit literal mode matches only listed surface
19
+ forms; it does not provide morphological coverage. Allow lists, custom complete
20
+ rule sets and inline masking remain applicable.
21
+
22
+ Compare reception, runtime input, model-call retrieval, late result settlement,
23
+ and missing trial reports using the shared writing criteria. A notification is
24
+ not proof of completion, and a missing report is not proof of non-execution.
25
+ Literal physical arrival can remain. No fixed replacement is prescribed, and
26
+ scanning never rewrites manuscripts. Existing sessions retain saved rules and
27
+ criteria; mechanical verification does not establish meaning or writing quality.
28
+
3
29
  | Rule | Severity | Purpose |
4
30
  | --- | --- | --- |
5
31
  | `abstract-reference` | hint | Ask what an abstract noun refers to |
@@ -167,3 +193,52 @@ one-based Unicode character positions, not byte offsets or display widths.
167
193
  An empty findings array does not establish full coverage or good prose.
168
194
 
169
195
  [Back to README](../README.md)
196
+
197
+ ## Operation-effect cues (v1.2.3)
198
+
199
+ `作用` is an advisory `abstract-reference` candidate in prose and list text.
200
+ Compare the actual operation, operation classification (such as an `effect`
201
+ field), execution result, or state change against the paragraph and implementation.
202
+ Established terminology can remain; findings do not prescribe a fixed synonym
203
+ or an automatic replacement. Heading rules and shared writing criteria are unchanged.
204
+
205
+ MeCab matches the noun token, including in `外部作用`. Literal mode searches
206
+ the exact substring and may also flag `操作用`; inspect context rather than
207
+ treating this overlap as the noun `作用`. Allow lists, custom complete rule sets,
208
+ and protected-inline exclusions still apply. Existing sessions retain saved
209
+ rules; start a new session to adopt this candidate.
210
+
211
+ ## Receiving cues (v1.2.3)
212
+
213
+ `受け取る` is a `weak-predicate` hint, including inflected forms and the potential
214
+ lemma `受け取れる` in MeCab mode. Literal mode matches the packaged listed
215
+ surfaces; it does not analyze arbitrary inflections. Allow lists, complete custom
216
+ rule replacement, positions, and protected-inline exclusions still apply.
217
+ `返す` remains advisory even when a function correctly returns a value. A finding
218
+ requests contextual comparison, not a mandatory change or automatic replacement.
219
+ Use the [shared operation comparisons](../data/writing/ja/criteria.md#distinguish-receiving-returning-and-their-actual-operations)
220
+ to decide whether intake, reception, retrieval, arguments, output, or a retained
221
+ plain verb best describes the evidence. Saved sessions retain their old rules
222
+ and criteria; use a new session to adopt the additions.
223
+
224
+ ## Indirect negation candidates (v1.2.3)
225
+
226
+ `わけではありません`, `わけではなく`, and `わけではない` are advisory
227
+ `contextual-phrase` candidates in running prose and supported lists, in both
228
+ MeCab and literal modes. Matching preserves the existing inline masking, exact
229
+ allow-list behavior and longest-overlap selection. Protected code and quotations
230
+ are not edited. These are explicit surfaces, not exhaustive negation detection.
231
+ Review operation denial, capability, partial negation and inference limits using
232
+ [the writing criteria](writing.md#direct-negation-and-inference-limits-v123).
233
+ No candidate prescribes a fixed replacement. Existing sessions retain their saved
234
+ rules and criteria; the new defaults apply to new scans.
235
+
236
+ ## Interpretation-limit candidates (v1.2.3)
237
+
238
+ `contextual-phrase` flags the explicit surfaces `とはみなしません` and
239
+ `とみなしません` in prose and supported list text with either tokenizer.
240
+ Longest-overlap selection yields one cue for `とはみなしません`; allow lists,
241
+ custom replacement rule sets and protected-inline masking still apply. These
242
+ are not exhaustive inflection detection or automatic substitutions. Compare
243
+ [direct interpretation limits](writing.md#direct-interpretation-limits-v123),
244
+ keeping policies separate from evidence shortages. Old sessions retain saved rules.
data/docs/scoring.md CHANGED
@@ -21,9 +21,15 @@ technical accuracy or meaning preservation; `meaning_verified` remains `false`.
21
21
  Scoring uses the same configuration discovery, custom rules, glossary, allows,
22
22
  style, language, base directory, include handling, and prose coverage as scanning.
23
23
  It accepts `--only`, `--config`, `--rules`, `--base-dir`, `--tokenizer`, `--style`,
24
- `--lang ja`, and repeated `--attribute` options. Excluded, unmapped, and protected
24
+ `--lang ja` or `--lang en`, and repeated `--attribute` options. Excluded, unmapped, and protected
25
25
  blocks are not prose-scored. Coverage notices remain important when interpreting
26
- a score. MeCab/IPADIC is the default; literal mode must be selected explicitly.
26
+ a score. MeCab/IPADIC is the Japanese default; English uses built-in lexical
27
+ matching. Literal mode must be selected explicitly. Both languages retain
28
+ `candidate-density-v1`: max(0, 100 - 5 * candidates * 1000 / characters),
29
+ rounded to three decimals. Characters are unmasked non-space Unicode characters.
30
+ An empty denominator produces no score. Reports explicitly label the density
31
+ unit and uncalibrated status. Compare only the same language, rules and analysis
32
+ identity; a higher score alone does not establish better prose or detection.
27
33
 
28
34
  AI evaluation requires an installed, authenticated Codex or Claude CLI, and may
29
35
  send the selected paragraph text and headings to its configured provider and
@@ -176,8 +176,8 @@ already has one. Pubkit does not prescribe or validate report filenames.
176
176
  Select the project's installed invocation, such as `asciidoc-pubkit` or
177
177
  `bundle exec asciidoc-pubkit`. Record its version. Use the author's publishing
178
178
  attributes and base directory; do not rewrite include conventions merely to
179
- make a scan succeed. The example requires Japanese review support and MeCab
180
- with UTF-8 IPADIC by default. It does not enable review in other languages.
179
+ make a scan succeed. The commands above demonstrate Japanese review with MeCab/IPADIC. Version 1.3.0 and later can instead use `--lang en` and built-in lexical
180
+ analysis; check the selected invocation before using it. See [English review](english-review.md).
181
181
 
182
182
  Adapt checks to the actual project: inspect diffs, validate local references,
183
183
  and run existing lint or build commands when requested. No particular Make
data/docs/writing.md CHANGED
@@ -1,8 +1,39 @@
1
1
  # Writing commands
2
2
 
3
+ The v1.2.3 [actor-change criteria](../data/writing/ja/criteria.md#clarify-omitted-subjects-when-actors-change)
4
+ compare omitted and explicit subjects across clauses, sentences and table roles.
5
+ They distinguish requesting, approving, executing and investigating, preserve
6
+ clear continued subjects, and require evidence before naming an actor. These are
7
+ contextual review criteria, with no new subject-omission detector or automatic
8
+ replacement. New sessions save the criteria; older sessions retain their originals.
9
+
10
+ The v1.2.3 [directory hierarchy comparisons](../data/writing/ja/criteria.md#compare-directory-hierarchy-terms-with-concrete-locations)
11
+ compare ancestor/descendant translations with `上位・下位ディレクトリ`, while
12
+ preserving direct-parent/direct-child relationships and exact grandchild depth.
13
+ Describe inherited settings by their directory locations; keep process, agent,
14
+ tree-node and conversation-record relationships distinct. These are advisory
15
+ comparisons, not automatic substitutions. `孫ディレクトリ` is an additional
16
+ contextual candidate; standalone `親`, `子` and `孫` are not new detector terms.
17
+ Saved sessions retain their original rules and criteria. Regression fixtures
18
+ and prompt-delivery tests do not measure AI proofreading quality.
19
+
20
+ The [identification comparisons](../data/writing/ja/criteria.md#distinguish-identification-from-conceptual-separation)
21
+ compare `区別できます` with `判別`, `識別`, `判定`, and separate checks according
22
+ to evidence and purpose. They preserve conceptual separation, capability,
23
+ negation and coexisting stages. They do not add automatic classification or
24
+ inspection. These v1.2.3 criteria are advisory; saved sessions retain their
25
+ original criteria and detector behavior is unchanged.
26
+
27
+ The [replacement comparisons](../data/writing/ja/criteria.md#distinguish-replacement-from-interpretation-and-permitted-use)
28
+ compare `置き換えません` with interpretation rules (`みなしません`) and use
29
+ limits (`扱えません`), while retaining actual value, history, and implementation
30
+ replacement. They preserve conditions, negation strength, missing evidence and
31
+ responsibility. These v1.2.3 criteria do not change detection or perform
32
+ automatic replacements; existing sessions retain their saved criteria.
33
+
3
34
  `writing criteria` prints the packaged common criteria. `writing prompt` adds
4
35
  task instructions around those same criteria. Neither command needs an AsciiDoc
5
- file, a review session, MeCab, or network access. Both accept `--lang ja` and
36
+ file, a review session, MeCab, or network access. Both accept `--lang ja` or `--lang en` in version 1.3.0 and
6
37
  `--output FILE`; output defaults to stdout, and an existing output file is never
7
38
  overwritten. The prompt asks the agent to read project instructions and evidence;
8
39
  it does not supply source facts or authorize edits. Book-specific voice and
@@ -18,6 +49,13 @@ book explicitly requires one. Sentence splitting and punctuation changes must
18
49
  retain the original relationships; these are contextual review instructions,
19
50
  not automatic semantic checks. Saved sessions retain the criteria from their scan.
20
51
 
52
+ The v1.2.3 [communication-response comparisons](../data/writing/ja/criteria.md#distinguish-communication-responses-from-function-returns)
53
+ separate HTTP, ACP and MCP responses from internal function returns and model
54
+ generation. Identify response fields, missing measurements, error values,
55
+ exception throwing and Promise rejection without inventing transport or moving
56
+ responsibility. These are advisory wording comparisons; detector and verification
57
+ behavior are unchanged, and old sessions retain their saved criteria.
58
+
21
59
  Sentence-ending review first identifies scope guides, actual operations,
22
60
  capabilities, checking procedures, and historical or future statements. Keep
23
61
  useful guidance and precise plain verbs; clarify vague judgment targets or
@@ -61,4 +99,145 @@ For a small trial, use `examples/book.adoc` as the scan input. Its Japanese
61
99
  paragraphs deliberately contain review candidates; its code block must remain
62
100
  unchanged.
63
101
 
102
+ ## Decision wording
103
+
104
+ The v1.2.3 criteria compare `決めます` with `決定します` and with the actual
105
+ operation: selecting tools or information, computing budgets, configuring values,
106
+ classifying states or permission outcomes, assessing evidence, and establishing
107
+ design or evaluation conditions. Describe causal relationships with `定まります`
108
+ when inputs determine a result, retaining every contributing factor. Do not
109
+ invent calculation, runtime changes, checks, or approvals for a more technical
110
+ verb. These are contextual prompt comparisons, not detector or replacement
111
+ rules; existing sessions retain their saved criteria. See
112
+ [Decision criteria](../data/writing/ja/criteria.md#distinguish-decisions-by-the-actual-operation).
113
+
64
114
  [Back to README](../README.md)
115
+
116
+ ## Rules, definitions, and configured values
117
+
118
+ The v1.2.3 criteria compare `定める` with `規定する` for specifications,
119
+ rules, evaluation conditions, and responsibilities, honoring an author's
120
+ terminology preference without adding obligations or enforcement. Use `定義する`
121
+ for structures, schemas, and workflows, and `設定する` for configured values and
122
+ destinations when those are the actual operations. A limit type describes supplied
123
+ values; its declaration does not itself configure or enforce a limit. Split mixed
124
+ operations such as `許可範囲を規定し、通知先を設定します` while preserving actor,
125
+ timing, conditions, negation, and modality. Do not turn a plan into a runtime check
126
+ or permission into an obligation. These contextual comparisons add no detector
127
+ terms or automatic replacements, and existing sessions retain saved criteria.
128
+ See [Rule wording criteria](../data/writing/ja/criteria.md#distinguish-rules-definitions-and-configured-values).
129
+
130
+ ## Classification and related relationships (v1.2.3)
131
+
132
+ Compare `分かれます` by the actual relationship: classification by purpose or
133
+ type, assignment of responsibilities, execution-path branching, content
134
+ partitioning, route differences, or the correspondence presented in a table.
135
+ `分類できます` may describe reader organization without a runtime classifier;
136
+ a defined category scheme and actual classification behavior need their own
137
+ wording. Preserve owners, conditions, destinations, counts, modality and joins;
138
+ branching alone does not guarantee parallel execution or exclusive choice.
139
+ See [the canonical comparisons](../data/writing/ja/criteria.md#distinguish-classification-responsibility-sharing-branching-and-partitioning).
140
+
141
+ Writing commands and new heading, prose and list sessions include this guidance.
142
+ Existing sessions keep their saved criteria. Detector and automatic replacement
143
+ behavior are unchanged. Manual comparison fixtures and regression tests check
144
+ criteria delivery and session preservation, not measured editorial accuracy.
145
+
146
+ ## Receiving and returning
147
+
148
+ The v1.2.3 criteria compare `受け取る` and `返す` with the actual operation:
149
+ request intake, response-stream reception, retrieval/reading, arguments and return
150
+ values, model generation, stdout output, input assembly, decision communication,
151
+ and established exception throwing/catching. Keep accurate value or Promise
152
+ returns; do not replace every receipt with retrieval or every return with
153
+ nominalized return wording. Preserve the actor and processing stage: a service
154
+ returning a display message need not display it, and an execution environment
155
+ returning a result need not assemble model input. Signal argument delivery and
156
+ later cancellation notification are distinct. See the
157
+ [shared criteria](../data/writing/ja/criteria.md#distinguish-receiving-returning-and-their-actual-operations).
158
+
159
+ ## Explicit differences and decision conditions
160
+
161
+ The v1.2.3 criteria expand `区別します` comparisons with examples of loading
162
+ conditions, rule purposes, identifier uses, recorded states, and inference limits.
163
+ Naming two objects is insufficient when the property or consequence that differs
164
+ is missing. Compare the full passage with a direct explanation and remove any
165
+ resulting repetition. Retain accurate distinctions after comparison; do not infer
166
+ physical isolation, automatic checks, or extra approval steps. These are prompt
167
+ criteria, not detector rules or automatic replacements. Existing sessions retain
168
+ the criteria saved at scan time. See
169
+ [Relationship criteria](../data/writing/ja/criteria.md#make-relationships-explicit).
170
+
171
+ ## Direct negation and inference limits (v1.2.3)
172
+
173
+ Compare `わけではありません` with a direct denial of the actual operation or
174
+ capability, while retaining its actor and conditions. Keep partial negation such
175
+ as `必ずしも一致しません` distinct from total denial, and retain a concrete
176
+ inference limit when evidence does not establish an outcome. The canonical
177
+ criteria include examples for sending tool definitions, unavailable input,
178
+ insufficient conditions and incomplete restoration. These are contextual
179
+ comparisons, not automatic replacement rules. Existing sessions retain their
180
+ saved criteria; use a new session to review under changed criteria.
181
+
182
+ ## Processing phases, timing and progressive disclosure (v1.2.3)
183
+
184
+ The shared criteria compare `段階` with `フェーズ` for execution-state fields and
185
+ processing or work divisions, while preserving counts, order and conditions.
186
+ Timing, state predicates, progressive disclosure and research evaluation scope
187
+ need individual comparisons; no blanket replacement is prescribed. See
188
+ [the contextual examples](../data/writing/ja/criteria.md#compare-processing-phases-with-timing-and-progressive-disclosure).
189
+
190
+ Writing commands and new heading, prose and list sessions include these criteria.
191
+ Existing sessions keep their saved criteria. Detection and automatic replacement
192
+ behavior are unchanged. Manual accept/reject examples are maintained in
193
+ `test/fixtures/phase_terminology.ja.json`; their labels and regression tests do
194
+ not measure AI proofreading accuracy.
195
+
196
+ ## Direct interpretation limits (v1.2.3)
197
+
198
+ Compare `とはみなしません` and `とみなしません` with `確認できません`,
199
+ `判断できません`, `評価できません`, or `証拠にはなりません` by the actual
200
+ claim. Fixed-response branch results alone cannot evaluate model judgment;
201
+ unavailable token counts do not determine whether usage was zero. Keep `だけでは`
202
+ and other limits. Missing observation does not establish non-execution or nonzero
203
+ usage. Retain an explicit policy not to count non-response as approval; do not
204
+ change it into an inability to determine approval. Honor author wording preferences
205
+ through faithful comparisons. See [the shared criteria](../data/writing/ja/criteria.md#distinguish-replacement-from-interpretation-and-permitted-use).
206
+ No automatic checks or replacements are added. Existing sessions retain saved
207
+ rules and criteria; use a fresh scan for these comparisons.
208
+
209
+ ## Input, transmission, and handoff (v1.2.3)
210
+
211
+ Use the canonical [transfer comparisons](../data/writing/ja/criteria.md#distinguish-input-transmission-delegation-inheritance-and-handoff)
212
+ for `渡す` and related forms. Compare model input construction, API transmission,
213
+ arguments, configuration, notifications, delegation, continuity and artifact
214
+ handoff before revising or retaining a passage. `連携` describes cooperation;
215
+ it must not hide a concrete data operation. Preserve conditions, modality,
216
+ negation, recipients and order. The bundled skill routes focused reviews to
217
+ saved criteria; existing sessions retain their original criteria.
218
+ No detector or automatic replacement rule is added.
219
+
220
+ ## Comparison headings (v1.2.3)
221
+
222
+ Heading review prompts include the saved "Distinguish comparison subjects from
223
+ distinguishing actions" criteria. Compare `違い` / `相違` for differences,
224
+ `関係` for source correspondence, or a confirmation scope for observation limits.
225
+ Both `違い` and `相違` are noun phrases. Retain `区別` for actual distinguishing
226
+ actions and follow the book's tone. Recheck the compared subjects using the body;
227
+ changing a heading does not authorize body edits. Advisory examples do not add
228
+ detection or automatic replacement rules. New sessions save these criteria;
229
+ existing sessions retain their original criteria. The regression fixtures test
230
+ prompt delivery and mechanical preservation, not AI editorial accuracy.
231
+
232
+ ## Figure/table introductions and author examples
233
+
234
+ The v1.2.3 [figure/table guidance](../data/writing/ja/criteria.md#introduce-figures-and-tables-by-their-explanatory-role)
235
+ compares introductions by their role: describing contents, defining notation,
236
+ guiding a comparison or identifying the kind of diagram. It includes Japanese
237
+ before/after and retained-wording examples rather than a uniform replacement rule.
238
+ A good/bad example accompanying a whole-text proofreading request serves as a
239
+ quality benchmark across the assigned text; explicitly focused requests keep
240
+ their scope. The bundled review skill routes these assignments to the saved
241
+ criteria. Writing commands and new heading, prose and list sessions include the
242
+ guidance; existing sessions keep their original criteria. Regression checks cover
243
+ criteria delivery and source preservation, not measured AI proofreading quality.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: review-asciidoc-manuscript
3
- description: Review and revise an existing Japanese AsciiDoc manuscript with asciidoc-pubkit in separate verified heading, prose, and list sessions; use for proofreading or outline diagnosis, not new-book authoring.
3
+ description: Review and revise an existing Japanese or English AsciiDoc manuscript with asciidoc-pubkit in separate verified heading, prose, and list sessions; use for proofreading or outline diagnosis, not new-book authoring.
4
4
  ---
5
5
 
6
6
  # Review an AsciiDoc manuscript
@@ -12,15 +12,30 @@ publication attributes and checks. Preserve unrelated edits. Default to headings
12
12
  prose, then supported list text only when the user requests a full review; respect
13
13
  single-scope and diagnosis-only assignments.
14
14
 
15
+ When good/bad examples accompany a whole-text proofreading request, treat them
16
+ as a quality or tone benchmark, not a filter for matching expressions. Review all
17
+ selected entries for general writing quality, including those without candidates;
18
+ keep explicitly focused assignments focused. For figure/table introductions,
19
+ consult the saved "Introduce figures and tables by their explanatory role"
20
+ guidance when available. Compare the actual referenced content and record missing
21
+ evidence; handle related authorized tables, figures and alternative text in their
22
+ own scopes. Keep canonical examples in pubkit and retain historical criteria when
23
+ the selected version lacks the guidance.
24
+
15
25
  Use the project's installed asciidoc-pubkit invocation, with bundle exec when
16
26
  configured. Check its version and command help. Existing sessions require their
17
27
  exact saved tool version; retain earlier sessions when starting a new pass.
18
28
  Choose unused session and output paths. Never rescan to hide a failed check.
29
+ Select the manuscript language explicitly. English requires a version supporting
30
+ --lang en; do not substitute Japanese or reset old sessions when unavailable.
31
+ Use the saved English criteria; Japanese term-specific guidance below applies
32
+ only to Japanese assignments. Translation fidelity requires source evidence
33
+ and remains separate from mechanical preservation.
19
34
 
20
35
  For each assigned scope:
21
36
 
22
37
  1. Scan from the manuscript directory with --scope headings, prose or lists,
23
- --lang ja, --no-input and a unique --output session path. For an assigned
38
+ the selected --lang ja or --lang en, --no-input and a unique --output session path. For an assigned
24
39
  chapter, use --only FILE with the book entrypoint. Do not narrow a whole-book
25
40
  assignment to one file. Match the publishing parser settings.
26
41
  2. Generate review prompt before editing. Use --mode diagnose for proposals
@@ -42,6 +57,13 @@ For each assigned scope:
42
57
  the baseline. For integrity failures, preserve evidence and report the blocker.
43
58
  Finish verification before scanning the next scope's current manuscript.
44
59
 
60
+ For Japanese headings containing `区別`, consult the saved heading criteria's
61
+ "Distinguish comparison subjects from distinguishing actions" section when
62
+ available. Compare the section's actual subjects and role using its body as
63
+ read-only evidence; record the alternative even without a detector candidate.
64
+ If the selected version lacks this section, report the criteria limitation and
65
+ retain existing sessions. Keep canonical examples in asciidoc-pubkit.
66
+
45
67
  Before judging a targeted sentence ending in prose or list text, classify its
46
68
  role using the saved common criteria: content guidance, an actual checking
47
69
  procedure, runtime behavior, or a learning objective. Read the whole paragraph
@@ -50,6 +72,34 @@ Record the supported actor, target, conditions, faithful alternative and reason.
50
72
  A useful reading sequence alone is not a keep rationale. Follow the author's
51
73
  voice without inventing an actor or turning runtime responsibility into a test.
52
74
 
75
+ Review actor changes through the saved common criteria, including entries
76
+ without detector candidates. Compare an explicit subject when adjacent clauses
77
+ or sentences change responsibility; establish the actor from context and evidence,
78
+ and record the original, alternative and reason. Keep clear continued subjects
79
+ without forcing repetition. Inspect related authorized table/figure roles in their
80
+ own scopes; report missing actor evidence rather than assigning a plausible role.
81
+ If the selected CLI lacks the actor-change examples, report that criteria limitation
82
+ and retain saved sessions; keep the canonical examples in pubkit.
83
+
84
+ For an assigned content guide or learning objective, record the whole-paragraph
85
+ viewpoint and any repeated guidance along with the source, alternative and reason.
86
+ Use pubkit's saved common criteria for the judgment. Inventory related prefaces,
87
+ part introductions, lists and table descriptions within the authorized assignment;
88
+ track their dispositions or proposals in their own scopes, including protected
89
+ content. Do not extend a focused assignment to unrelated manuscript sections.
90
+
91
+ For Japanese `行う`, consult the saved "Distinguish operations from responsibility"
92
+ comparisons before choosing an action verb or responsibility wording. Record
93
+ the actual alternative; a detector hint is not a replacement instruction.
94
+
95
+ For Japanese `渡す`, `受け渡す`, `受け渡し` and related inflections, use the saved
96
+ "Distinguish input, transmission, delegation, inheritance, and handoff"
97
+ comparisons when the selected CLI provides them. Record each actual alternative
98
+ and reason, including retained wording. Inspect authorized tables, figures and
99
+ alternative text for agreement; record protected or out-of-scope proposals
100
+ separately. Detector hints do not prescribe replacements. If the selected version
101
+ lacks these comparisons, report that limitation and retain historical sessions.
102
+
53
103
  Compare broad or everyday wording with a concrete alternative using the saved
54
104
  shared terminology criteria, even when the original is understandable. Keep
55
105
  records must explain the specific comparison, not merely summarize the passage.
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ module AsciidocPubkit
4
+ module Analysis
5
+ def self.build(settings)
6
+ case settings.fetch('tokenizer', 'mecab')
7
+ when 'mecab' then Morphology.new(settings)
8
+ when 'english-lexical' then EnglishLexical.new(settings)
9
+ when 'literal' then settings['language'] == 'en' ? EnglishLexical.new(settings) : nil
10
+ else raise Error, "Unsupported analysis backend: #{settings['tokenizer'].inspect}."
11
+ end
12
+ end
13
+
14
+ def self.identity(tokenizer)
15
+ tokenizer ? tokenizer.identity : { 'engine' => 'literal' }
16
+ end
17
+ end
18
+ end