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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +160 -0
- data/README.md +65 -8
- data/data/heading-rules.en.yml +6 -0
- data/data/review-rules.en.yml +27 -0
- data/data/review-rules.ja.yml +50 -0
- data/data/writing/en/criteria.md +54 -0
- data/data/writing/en/headings.md +18 -0
- data/data/writing/en/outline.md +14 -0
- data/data/writing/ja/criteria.md +564 -0
- data/data/writing/ja/headings.md +33 -0
- data/docs/configuration.md +8 -1
- data/docs/english-evaluation.md +130 -0
- data/docs/english-review-research.md +311 -3
- data/docs/english-review.md +104 -0
- data/docs/prose-evaluation.md +129 -2
- data/docs/review-workflow.md +4 -3
- data/docs/rules-and-coverage.md +75 -0
- data/docs/scoring.md +8 -2
- data/docs/skill-integration.md +2 -2
- data/docs/writing.md +180 -1
- data/examples/skills/review-asciidoc-manuscript/SKILL.md +52 -2
- data/lib/asciidoc_pubkit/analysis.rb +18 -0
- data/lib/asciidoc_pubkit/cli.rb +10 -10
- data/lib/asciidoc_pubkit/english.rb +124 -0
- data/lib/asciidoc_pubkit/heading_rules.rb +3 -1
- data/lib/asciidoc_pubkit/language.rb +6 -2
- data/lib/asciidoc_pubkit/rule_set.rb +1 -0
- data/lib/asciidoc_pubkit/rules.rb +2 -1
- data/lib/asciidoc_pubkit/score.rb +13 -4
- data/lib/asciidoc_pubkit/session.rb +9 -9
- data/lib/asciidoc_pubkit/settings.rb +17 -3
- data/lib/asciidoc_pubkit/writing.rb +2 -2
- data/lib/asciidoc_pubkit.rb +3 -1
- metadata +15 -5
data/data/writing/ja/headings.md
CHANGED
|
@@ -25,6 +25,39 @@ section ID, use the exact permitted_id_anchor only when the saved session explic
|
|
|
25
25
|
authorizes it. Otherwise record the proposed title and ID concern for separate
|
|
26
26
|
authorized preservation. Protection does not justify an editorial keep decision.
|
|
27
27
|
|
|
28
|
+
## Distinguish comparison subjects from distinguishing actions
|
|
29
|
+
|
|
30
|
+
For headings containing `区別`, establish whether the section explains a
|
|
31
|
+
difference between subjects or an action that tells them apart or treats them
|
|
32
|
+
separately. Compare `違い` or `相違` for differences in properties, behavior,
|
|
33
|
+
purposes or evaluation targets. Both are noun phrases; nominal headings do not
|
|
34
|
+
require `相違`. Follow the book's preferred tone instead of imposing the more
|
|
35
|
+
formal word on every book.
|
|
36
|
+
|
|
37
|
+
When the section explains source correspondence, compare `関係`; when it explains
|
|
38
|
+
what observations establish, name the supported confirmation scope. Recheck the
|
|
39
|
+
comparison subjects themselves against the body. Replacing only the final word
|
|
40
|
+
can preserve an inaccurate comparison. Retain `区別` when distinguishing or
|
|
41
|
+
separate treatment is the actual action, including an established technical term.
|
|
42
|
+
These comparisons do not ban `区別` or authorize uniform replacements in prose.
|
|
43
|
+
|
|
44
|
+
| Source heading | Contextual comparison and supporting section content |
|
|
45
|
+
| --- | --- |
|
|
46
|
+
| 修正案の提示と編集実行の区別 | 修正案の提示と編集実行の違い: the user applies a suggested edit, while a program checks permission and applies a requested edit. |
|
|
47
|
+
| 構成検証と作業品質の区別 | 構成検証と作業品質評価の違い: compare configuration checks with evaluation of the resulting artifact, making the second evaluation target explicit. |
|
|
48
|
+
| 共有知識と元の履歴の区別 | 共有知識と元の履歴の関係: the section explains an edited excerpt and its reference to the original message. |
|
|
49
|
+
| 観測形式と実行証拠の区別 | 観測情報から確認できる範囲: the section explains missing spans and the limits of inferring execution, test success or saved history from observations. |
|
|
50
|
+
| 証拠の欠落と新規測定の区別 | 評価処理の検証と新規測定の違い: compare tests using modified records with new task executions that measure artifacts and resource use. |
|
|
51
|
+
| 型タグによる正常値とエラー値の区別 | Retain when the section explains using a type tag to tell value variants apart; changing it to 型タグによる正常値とエラー値の違い would promise a different topic. |
|
|
52
|
+
| 停止要求と処理終了の違い | Keep the comparison when the body says a stop request does not establish termination. 停止要求による処理終了の保証 adds an unsupported guarantee. |
|
|
53
|
+
|
|
54
|
+
Record the actual alternative and body evidence even when no candidate is emitted.
|
|
55
|
+
Leave body text, tables, figures and alternative text unchanged in a heading-only
|
|
56
|
+
session; report any separately needed synchronization. These advisory examples
|
|
57
|
+
add no detector or automatic replacement rule. Saved sessions retain their original
|
|
58
|
+
heading criteria. Mechanical verification does not evaluate these comparisons
|
|
59
|
+
or measure AI proofreading quality.
|
|
60
|
+
|
|
28
61
|
## Compare headings with the same role
|
|
29
62
|
|
|
30
63
|
Read the complete outline and compare parent, sibling and child headings.
|
data/docs/configuration.md
CHANGED
|
@@ -28,7 +28,10 @@ Configuration paths are relative to the configuration file. Without configuratio
|
|
|
28
28
|
the base directory is the entrypoint's directory. Exclusion patterns match source
|
|
29
29
|
paths relative to the base directory; excluded files can still supply attributes
|
|
30
30
|
and are preserved by verification. The default style is `preserve`; explicit
|
|
31
|
-
alternatives are `desu-masu` and `dearu`.
|
|
31
|
+
alternatives are `desu-masu` and `dearu`. Version 1.3.0 also supports `en` with `preserve` style only.
|
|
32
|
+
English defaults to `english-lexical`; explicit `literal` is also supported.
|
|
33
|
+
Japanese keeps the MeCab default. Invalid language/backend combinations fail;
|
|
34
|
+
regional tags are not silently normalized. See [English review](english-review.md).
|
|
32
35
|
|
|
33
36
|
A glossary maps canonical terms to variant strings:
|
|
34
37
|
|
|
@@ -38,6 +41,10 @@ JavaScript:
|
|
|
38
41
|
- Java Script
|
|
39
42
|
```
|
|
40
43
|
|
|
44
|
+
For English, glossary matching is case-sensitive lexical phrase matching and
|
|
45
|
+
`allows` suppresses exact surfaces (and phrase-rule terms under their case policy).
|
|
46
|
+
Use lexical terms separated by whitespace; unsupported glossary syntax is rejected.
|
|
47
|
+
|
|
41
48
|
Variants are review candidates, not automatic replacement instructions. In MeCab
|
|
42
49
|
mode, `allows` can suppress a canonical dictionary form (all its inflections) or
|
|
43
50
|
an exact matched surface (that occurrence's form only). In literal mode it
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
# English regression and editorial evaluation
|
|
2
|
+
|
|
3
|
+
This development workflow is separate from the manuscript CLI. It never invokes
|
|
4
|
+
an AI CLI or network service. Its scripts, fixtures and baseline report are kept
|
|
5
|
+
in the repository rather than packaged in the gem.
|
|
6
|
+
|
|
7
|
+
## Detection corpus and score baseline
|
|
8
|
+
|
|
9
|
+
`test/fixtures/english_detection.json` contains 120 original agent-authored
|
|
10
|
+
technical paragraphs from 12 document groups. Six groups (60 paragraphs) are
|
|
11
|
+
assigned to development and six disjoint groups to a reserved evaluation
|
|
12
|
+
partition. Topics include APIs, procedures, architecture, failure analysis,
|
|
13
|
+
storage, deployment, networking, policy, observability, concurrency, import and
|
|
14
|
+
compatibility. Each expected finding has a rule ID, source character offset and
|
|
15
|
+
original matched text; negative examples have an empty list. These are lexical
|
|
16
|
+
candidate labels, not labels asserting that the sentence is defective.
|
|
17
|
+
|
|
18
|
+
The corpus has 59 expected candidates: 22 redundant-framing, 24 wordy-expression
|
|
19
|
+
and 13 repeated-word candidates. Exceptions and protected/identifier examples
|
|
20
|
+
are retained. In particular `is is` is deliberately exempt even when it might
|
|
21
|
+
be a typo; the detector does not resolve that grammatical ambiguity. Contextual
|
|
22
|
+
review must still read paragraphs without candidates.
|
|
23
|
+
|
|
24
|
+
The acceptance contract, recorded with the corpus before the initial run, is
|
|
25
|
+
at least 0.90 precision and recall per rule, and exact locations for matched
|
|
26
|
+
expected surfaces. Regression comparison also rejects any decrease from the
|
|
27
|
+
recorded baseline's per-rule precision, recall or F1 and overall location
|
|
28
|
+
accuracy. Counts, false positives per 1,000 lexical words and per-rule metrics
|
|
29
|
+
remain visible. Lexical words are tokens under `unicode-lexical-v1` after inline
|
|
30
|
+
masking; this is an evaluation denominator, not a new manuscript score unit.
|
|
31
|
+
|
|
32
|
+
```sh
|
|
33
|
+
bundle exec ruby benchmark/english.rb --baseline benchmark/baseline-english.json
|
|
34
|
+
bundle exec ruby benchmark/english.rb --split development
|
|
35
|
+
bundle exec ruby benchmark/english.rb --split held_out
|
|
36
|
+
bundle exec ruby benchmark/english.rb --output /tmp/new-english-report.json
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
The initial baseline has precision, recall, F1 and location accuracy of 1.0,
|
|
40
|
+
zero false positives, and candidate-density score 65.853 (59 candidates over
|
|
41
|
+
8,639 non-space unmasked Unicode characters). The score is obtained through the
|
|
42
|
+
actual `Score.run` path and is a within-configuration indicator. A candidate
|
|
43
|
+
score delta is reported but never used as proof of quality improvement. Removing
|
|
44
|
+
all detectors fails recall; wrong locations and duplicated findings fail the
|
|
45
|
+
regression checks even if a density score looks favorable.
|
|
46
|
+
|
|
47
|
+
The comparator requires the same corpus hash and split. Rule identity and
|
|
48
|
+
analysis identity are reported alongside the score; changes require review of
|
|
49
|
+
the exact metrics rather than cross-configuration score comparisons. Do not
|
|
50
|
+
regenerate the baseline merely to make a regression pass. A changed corpus needs
|
|
51
|
+
an explicit new baseline and review of the changed annotations. Existing output
|
|
52
|
+
paths are never overwritten. Exit 0 means selected checks passed, 1 means a
|
|
53
|
+
quality/regression gate failed, and 2 means invalid input or output failure.
|
|
54
|
+
|
|
55
|
+
The authoring agent could see both partitions. They prevent accidental document
|
|
56
|
+
mixing and support regression tracking, but this is not blind held-out testing
|
|
57
|
+
or independent human annotation. Perfect fixture results do not estimate
|
|
58
|
+
production precision or prove better writing. Before promoting these thresholds
|
|
59
|
+
to an editorial quality claim, independently annotate a technical-book sample,
|
|
60
|
+
use multiple reviewers on a calibration subset and adjudicate disagreements.
|
|
61
|
+
Keep the Japanese corpus and historical baseline unchanged.
|
|
62
|
+
|
|
63
|
+
## Revision calibration and imported judgments
|
|
64
|
+
|
|
65
|
+
`test/fixtures/english_revisions.json` contains 24 agent-authored revisions:
|
|
66
|
+
12 acceptable alternatives and 12 fluent but unacceptable alternatives. Cases
|
|
67
|
+
cover actors, permission, capability, negation, quantities, uncertainty, future
|
|
68
|
+
plans, justified passive voice, technical terms, measurement conditions,
|
|
69
|
+
acceptance versus completion, and framing. Each supplies explicit source facts,
|
|
70
|
+
expected fact-retention labels and an acceptance decision. These labels are
|
|
71
|
+
calibration proposals, not independent human judgments.
|
|
72
|
+
|
|
73
|
+
Generate an evaluator prompt without expected decisions or retention labels:
|
|
74
|
+
|
|
75
|
+
```sh
|
|
76
|
+
bundle exec ruby benchmark/english.rb --judge-prompt --output /tmp/english-judge.md
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Case IDs do not encode acceptance, and cases are ordered by opaque ID rather
|
|
80
|
+
than accept/reject blocks. The prompt asks for separate ordinal 1–3 sentence
|
|
81
|
+
clarity and paragraph coherence ratings, fact retention booleans, a decision and
|
|
82
|
+
reason. Any external evaluation must be explicitly arranged by the user; this
|
|
83
|
+
script does not send the prompt. Record the evaluator/model identity and retain
|
|
84
|
+
raw responses when performing such a trial. Repeated trials, order changes and
|
|
85
|
+
comparison with independent human labels are needed before claiming stability.
|
|
86
|
+
|
|
87
|
+
Import the resulting JSON, with every case ID exactly once:
|
|
88
|
+
|
|
89
|
+
```json
|
|
90
|
+
{
|
|
91
|
+
"evaluator": "reviewer or exact model/configuration identity",
|
|
92
|
+
"judgments": [
|
|
93
|
+
{
|
|
94
|
+
"id": "an exact case ID from the prompt",
|
|
95
|
+
"decision": "reject",
|
|
96
|
+
"sentence_clarity": 3,
|
|
97
|
+
"paragraph_coherence": 3,
|
|
98
|
+
"retained_facts": [true, false],
|
|
99
|
+
"reason": "The revision changes the stated condition."
|
|
100
|
+
}
|
|
101
|
+
]
|
|
102
|
+
}
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
The example shows one row's structure; actual input must include all 24 rows and
|
|
106
|
+
one boolean per supplied fact. An accept decision with a false fact-retention
|
|
107
|
+
judgment is invalid. Missing/duplicate IDs, out-of-range ratings and missing
|
|
108
|
+
reasons are rejected.
|
|
109
|
+
|
|
110
|
+
```sh
|
|
111
|
+
bundle exec ruby benchmark/english.rb --judgments /tmp/english-judgments.json \
|
|
112
|
+
--baseline benchmark/baseline-english.json --output /tmp/english-evaluation.json
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
The report includes decision accuracy, false accepts, fact-retention accuracy,
|
|
116
|
+
clarity/coherence, and corpus/rubric identities. Ratings map 1, 2, 3 to 0, 50,
|
|
117
|
+
100 as in the Japanese readability path, independently of fact retention.
|
|
118
|
+
Calibration gates require zero false accepts and at least 0.90 decision and
|
|
119
|
+
fact-retention accuracy. High readability cannot override lost facts.
|
|
120
|
+
|
|
121
|
+
Normal tests use synthetic responses only to verify this evaluator harness,
|
|
122
|
+
including an evaluator that incorrectly accepts every fluent revision. They do
|
|
123
|
+
not constitute model trials. Without imported judgments the semantic result is
|
|
124
|
+
`not_run`; even a passing imported evaluation keeps `meaning_verified: false`.
|
|
125
|
+
This evaluates the judge on fixed revisions, not an agent's ability to produce
|
|
126
|
+
better edits. Evaluating a real editing workflow additionally requires preserving
|
|
127
|
+
its actual before/after outputs, source facts, prompt/model versions, independent
|
|
128
|
+
judgments and comparable trials. No such experiment has been run here.
|
|
129
|
+
|
|
130
|
+
[English review](english-review.md) · [Scoring](scoring.md)
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
# English review support research and proposal
|
|
2
2
|
|
|
3
3
|
Research date: 2026-10-02. Repository inspected at `26cbb1e`, following release
|
|
4
|
-
0.8.1.
|
|
4
|
+
0.8.1. The original survey and proposal below describe that historical checkout.
|
|
5
|
+
English review is available in version 1.3.0; version 1.2.3 remains Japanese-only.
|
|
6
|
+
|
|
7
|
+
See the [implementation and book-skill assessment](#implementation-and-book-skill-assessment-2026-10-16)
|
|
8
|
+
for the current checkout assessment and proposed delivery sequence.
|
|
5
9
|
|
|
6
10
|
English review is a practical extension of the existing source-mapped review
|
|
7
11
|
workflow. The recommended first release combines conservative English phrase
|
|
@@ -9,6 +13,34 @@ and terminology candidates, contextual review prompts, and existing mechanical
|
|
|
9
13
|
verification. Grammar engines should remain optional until their accuracy,
|
|
10
14
|
source offsets, installation costs, and reproducibility have been evaluated.
|
|
11
15
|
|
|
16
|
+
## Implementation status (2026-10-16)
|
|
17
|
+
|
|
18
|
+
The initial implementation is documented in [English review](english-review.md)
|
|
19
|
+
and [English evaluation](english-evaluation.md). The historical proposal and
|
|
20
|
+
pre-implementation assessments below are retained as design context, not current
|
|
21
|
+
command references.
|
|
22
|
+
|
|
23
|
+
- Japanese defaults and schema 1 remain unchanged; English uses exact `en`,
|
|
24
|
+
`english-lexical` (or explicitly selected literal matching) and strict schema 2.
|
|
25
|
+
- English prose, heading, list, outline and writing workflows save English
|
|
26
|
+
criteria and retain mechanical preservation. Session schema 3 and exact tool
|
|
27
|
+
version checks remain in force. Replacement still rejects English.
|
|
28
|
+
- Both languages retain the same candidate-density formula, with explicit units
|
|
29
|
+
and no cross-language quality claim. The optional English readability rubric
|
|
30
|
+
is separate from detection and preservation.
|
|
31
|
+
- The initial 120-paragraph corpus has 59 expected lexical candidates across
|
|
32
|
+
disjoint development/evaluation document groups. Baseline precision, recall,
|
|
33
|
+
F1 and location accuracy are 1.0 on these authored fixtures; they are not blind
|
|
34
|
+
or independently human-reviewed evidence of production quality.
|
|
35
|
+
- Twenty-four revision cases and an imported-judgment evaluator test readability
|
|
36
|
+
separately from source-fact retention. Normal tests use synthetic judgments
|
|
37
|
+
to validate the harness. No actual model evaluation or measured editing
|
|
38
|
+
improvement is claimed.
|
|
39
|
+
- Grammar adapters and a cybergarage-pub English review skill remain subsequent
|
|
40
|
+
work. The existing translation skill's source-comparison guidance was updated
|
|
41
|
+
separately before implementation. This gem implementation does not change
|
|
42
|
+
manuscript files, translation states or publishing workflows.
|
|
43
|
+
|
|
12
44
|
## Scope and research method
|
|
13
45
|
|
|
14
46
|
The survey covers prose linters, grammar checkers, writing assistants, technical
|
|
@@ -125,8 +157,8 @@ regression coverage even if replacement is outside the English review scope.
|
|
|
125
157
|
|
|
126
158
|
## Proposed initial behavior
|
|
127
159
|
|
|
128
|
-
These commands illustrate the target interface
|
|
129
|
-
|
|
160
|
+
These commands illustrate the original target interface. They now work in the
|
|
161
|
+
English-capable version 1.3.0, but not in version 1.2.3:
|
|
130
162
|
|
|
131
163
|
```sh
|
|
132
164
|
asciidoc-pubkit review scan book.adoc --lang en
|
|
@@ -312,3 +344,279 @@ research. It does not change executable behavior or claim implementation
|
|
|
312
344
|
readiness from tests. Product benchmarking, external integration checks,
|
|
313
345
|
full-paper experimental reproduction, and dataset redistribution review remain
|
|
314
346
|
future work.
|
|
347
|
+
|
|
348
|
+
## Implementation and book-skill assessment (2026-10-16)
|
|
349
|
+
|
|
350
|
+
Status: implementation proposal, not delivered functionality. This assessment
|
|
351
|
+
inspected pubkit at `628eab8` (source version 1.2.2) and the existing
|
|
352
|
+
cybergarage-pub skill files at working-tree base `5bf99342c2`. The latter has
|
|
353
|
+
unrelated local changes; no book or skill was modified. Published gem contents
|
|
354
|
+
and the manuscript project's installed CLI were not verified. The original
|
|
355
|
+
external-tool survey was not repeated.
|
|
356
|
+
|
|
357
|
+
### Feasibility and changes since the original proposal
|
|
358
|
+
|
|
359
|
+
Implement the built-in lexical approach first. The existing mapped-source,
|
|
360
|
+
baseline, protected-content and verification workflow is reusable. English
|
|
361
|
+
requires language-specific analysis and criteria rather than a second document
|
|
362
|
+
parser. Adding a grammar service is not a prerequisite.
|
|
363
|
+
|
|
364
|
+
The present implementation adds requirements absent from the original plan:
|
|
365
|
+
|
|
366
|
+
- `Settings` supports `prose`, `headings` and `lists`. Full English book review
|
|
367
|
+
must include supported list items, using the same phase boundaries and
|
|
368
|
+
protection rules as Japanese review.
|
|
369
|
+
- Heading sessions save `outline_criteria`; `Writing.outline_criteria` reads
|
|
370
|
+
`data/writing/<language>/outline.md`. English needs this third criteria file,
|
|
371
|
+
including outline diagnosis, depth limits and read-only body evidence.
|
|
372
|
+
- Session schema is now 3 and loading checks both schema and exact tool version.
|
|
373
|
+
New work must preserve this contract rather than assume old sessions migrate.
|
|
374
|
+
- The bundled skill is Japanese-specific, including its description, `--lang ja`
|
|
375
|
+
commands and contextual terminology guidance. CLI support alone would not
|
|
376
|
+
make the current skill an English workflow.
|
|
377
|
+
- `Rules.mask` turns protected spans into spaces. An English phrase matcher
|
|
378
|
+
that treats every whitespace run as a separator could falsely join words
|
|
379
|
+
across masked code or links. Preserve exclusion intervals as matching barriers,
|
|
380
|
+
while allowing ordinary physical line wraps within an eligible paragraph.
|
|
381
|
+
- `Score.run` changes top-level `score` and `score_type` when `--agent` is used.
|
|
382
|
+
English tests must distinguish that readability result from the retained
|
|
383
|
+
candidate-density fields, including empty-input behavior.
|
|
384
|
+
|
|
385
|
+
Current rejection was checked with
|
|
386
|
+
`bundle exec ruby -Ilib exe/asciidoc-pubkit writing criteria --lang en`:
|
|
387
|
+
exit 2, `Unsupported writing language "en"; supported: ja.` This is a language
|
|
388
|
+
gate check, not an English implementation test.
|
|
389
|
+
|
|
390
|
+
### Recommended initial decisions
|
|
391
|
+
|
|
392
|
+
These are proposed decisions for implementation, not existing CLI contracts.
|
|
393
|
+
|
|
394
|
+
| Area | Proposed initial contract |
|
|
395
|
+
| --- | --- |
|
|
396
|
+
| Language | Support exact `en`; keep `ja` as the default. Reject `en-US` and `en-GB` explicitly until regional tags are deliberately supported. Do not infer language from prose. |
|
|
397
|
+
| Backend | Name the deterministic backend `english-lexical`; choose it by default for `en`. Preserve `ja` with MeCab and explicitly selected literal mode. Reject mismatched backend/language combinations before loading resources. |
|
|
398
|
+
| Literal mode | Keep explicit `en --tokenizer literal` as limited matching with documented case and boundary behavior, no grammatical analysis, and a distinct saved identity. It must not route into Japanese detectors. |
|
|
399
|
+
| Style | English initially accepts `preserve`; reject `desu-masu` and `dearu`, including inherited configuration. Regional spelling and capitalization preferences remain book-owned. |
|
|
400
|
+
| Headings | Default to mixed forms. Support lexical/glossary and exact sibling-duplicate candidates. Keep action/nominal classification as prompt guidance; reject unsupported English rule options rather than pretending Japanese morphology can implement them. |
|
|
401
|
+
| Rules | Preserve Japanese schema 1. Introduce an English schema 2 with explicit `language: en`, stable IDs, match kind, case/boundary policy, severity, question and exceptions. Dispatch by schema and validate against the selected language. Specify a separate compatible English heading schema as well. |
|
|
402
|
+
| Sessions | Aim to retain schema 3 only if saved settings and analysis identity fit its existing semantics and all validators can handle them. Otherwise bump the schema explicitly. Retain exact-version rejection and do not migrate baselines automatically. |
|
|
403
|
+
| Scoring | Preserve `candidate-density-v1` arithmetic and character denominator, explicitly label units and lack of English calibration. Compare only the same language, rule set and analysis identity. Do not introduce word-based penalties or claim Japanese/English comparability. |
|
|
404
|
+
| External engines | Defer grammar adapters and model-based scanning. Only explicit `review score --agent` may invoke a model CLI. |
|
|
405
|
+
|
|
406
|
+
The English schema should initially admit literal token/phrase rules and a
|
|
407
|
+
dedicated repeated-word rule, not unrestricted executable rules or a broad NLP
|
|
408
|
+
DSL. Define matching semantics before publishing the schema. Required examples
|
|
409
|
+
include `can` versus `can't`, ASCII versus curly apostrophes, `foo_bar`,
|
|
410
|
+
hyphenated terms, versions, mixed scripts, combining marks and emoji before a
|
|
411
|
+
match. Preserve source surfaces and Unicode character offsets. Avoid whole-text
|
|
412
|
+
normalization unless it provides an exact source-span map. Repeated words must
|
|
413
|
+
not match across punctuation, protected spans or paragraph boundaries; legitimate
|
|
414
|
+
sequences such as `had had` need explicit exceptions and context review.
|
|
415
|
+
|
|
416
|
+
Use `hint` for English lexical candidates, including glossary variants whose
|
|
417
|
+
concept identity requires judgment. Start with a small independently authored
|
|
418
|
+
phrase set. Treat vague degree, passive voice, pronouns and noun stacks as
|
|
419
|
+
prompt criteria until annotated evidence supports a useful detector.
|
|
420
|
+
|
|
421
|
+
### Implementation units and acceptance evidence
|
|
422
|
+
|
|
423
|
+
| Unit | Owning code and resources | Acceptance evidence |
|
|
424
|
+
| --- | --- | --- |
|
|
425
|
+
| 1. Language-neutral dispatch | `language.rb`, `settings.rb`, `morphology.rb`; new shared analysis factory; call sites in `session.rb`, `rules.rb`, `heading_rules.rb`, `score.rb` | Existing Japanese behavior and explicit literal mode pass real MeCab/IPADIC tests. Incomplete English workflows stay unavailable. |
|
|
426
|
+
| 2. English matching | New lexical backend and English rule validator/detectors; `rule_set.rb`; `data/review-rules.en.yml`, `data/heading-rules.en.yml` | Boundary, case, exceptions, inline barriers, line wraps, Unicode locations, custom-rule replacement and identity drift tests pass. |
|
|
427
|
+
| 3. Complete review workflows | `writing.rb`, `session.rb`, language-aware heading rules; `data/writing/en/{criteria,headings,outline}.md` | Prose, headings, lists, outline/full views, diagnose/revise modes, saved criteria, all-entry prompts and generated heading IDs work together. No Japanese-only instructions leak into English prompts. |
|
|
428
|
+
| 4. Scoring and public interface | `score.rb`, CLI help, configuration validation, gem metadata, README and command guides | English rubric, explicit units, zero eligible prose, custom rules, mock evaluator responses, and no implicit external invocation tests pass. Update language gates only with complete public paths. |
|
|
429
|
+
| 5. Regression and packaging | Existing review/morphology/replacement/skill tests plus English fixtures | Full suite with MeCab/IPADIC, gem build and archive inspection confirm all three English criteria files, rules and skill resources are included. Exercise `replace` shared settings without silently broadening its supported languages. |
|
|
430
|
+
| 6. Editorial evaluation | Independently authored technical corpus and manually reviewed pilot copies | Report per-rule useful-candidate precision, difficult negatives and exact location accuracy separately from preservation, fluency and translation fidelity. Do not claim measured quality from regression success. |
|
|
431
|
+
|
|
432
|
+
Keep these as focused implementation commits, with the public language gate
|
|
433
|
+
enabled only when the complete supported interface is ready. Session verification
|
|
434
|
+
must use the shared factory and engine-neutral drift diagnostics; the present
|
|
435
|
+
message assumes every drift is a MeCab version/dictionary change. Prompt creation
|
|
436
|
+
must remain independent of analyzer availability.
|
|
437
|
+
|
|
438
|
+
The initial technical corpus should include API descriptions, procedures,
|
|
439
|
+
architecture, limitations, headings and simple lists. Use document-level splits
|
|
440
|
+
and predeclare the useful-candidate threshold before tuning. The earlier 90%
|
|
441
|
+
precision target remains provisional; a small pilot cannot establish general
|
|
442
|
+
English review quality. Public gem fixtures should be independently authored;
|
|
443
|
+
book excerpts and private review artifacts stay in the manuscript project.
|
|
444
|
+
|
|
445
|
+
### Proposed cybergarage-pub English review skill
|
|
446
|
+
|
|
447
|
+
Add a project-owned
|
|
448
|
+
`.agents/skills/review-english-technical-book/SKILL.md` after an English-capable
|
|
449
|
+
CLI is available through the project's chosen invocation. Suggested description:
|
|
450
|
+
|
|
451
|
+
> Review and revise an existing English AsciiDoc technical book with
|
|
452
|
+
> asciidoc-pubkit in separate verified heading, prose, and list sessions. Use for
|
|
453
|
+
> English proofreading and outline diagnosis; translation fidelity and release
|
|
454
|
+
> readiness remain with the English-edition workflow.
|
|
455
|
+
|
|
456
|
+
Keep the entrypoint concise. Add `references/review-workflow.md` only for the
|
|
457
|
+
substantial phase/resumption and translation handoff details. Do not copy the
|
|
458
|
+
Japanese skill's term-specific examples or create another English criteria
|
|
459
|
+
library: canonical English prose, heading and outline criteria belong in pubkit
|
|
460
|
+
and are frozen in each generated session prompt. Book-specific US spelling,
|
|
461
|
+
glossary, technical evidence and records remain in the book.
|
|
462
|
+
|
|
463
|
+
The existing skills have distinct responsibilities:
|
|
464
|
+
|
|
465
|
+
| Owner | Responsibility after the addition |
|
|
466
|
+
| --- | --- |
|
|
467
|
+
| pubkit bundled `review-asciidoc-manuscript` | General mapped-source review workflow. Generalize its language selection and condition Japanese-specific guidance when English ships; preserve managed registration protections. |
|
|
468
|
+
| cybergarage-pub `review-japanese-technical-book` | Existing Japanese project workflow; do not redirect it to English or remove Japanese criteria routing. |
|
|
469
|
+
| New `review-english-technical-book` | English editorial review of existing manuscripts, with project state, scope and checks. Works for English originals as well as translations. |
|
|
470
|
+
| Existing `publish-english-edition` | Japanese source baseline, translation fidelity, reference localization, translated assets, edition state and release checks. Invoke the English review workflow only for the assigned editorial pass. |
|
|
471
|
+
|
|
472
|
+
The new workflow should:
|
|
473
|
+
|
|
474
|
+
1. Inspect the target's instructions, working tree, entrypoint, existing review
|
|
475
|
+
records and, for translated editions, manifest/glossary/style guide. Check the
|
|
476
|
+
exact installed CLI version and English capabilities. Do not silently use
|
|
477
|
+
`--lang ja`, substitute literal mode, install another tool or reset a session
|
|
478
|
+
when English support is missing; report the dependency limitation.
|
|
479
|
+
2. Default a full review to headings, prose, then supported lists. Honor focused
|
|
480
|
+
and diagnosis-only requests. For each phase, scan with `--lang en` into an
|
|
481
|
+
unused session, generate its prompt before editing, review every selected
|
|
482
|
+
entry with neighboring context, record decisions and verify before scanning
|
|
483
|
+
the next phase. Use explicit `--only` only for a limited assignment.
|
|
484
|
+
3. Preserve mapped spans, protected content and exact permitted heading anchors.
|
|
485
|
+
Record out-of-scope table, image, caption and complex-list concerns separately.
|
|
486
|
+
A full review of the supported scopes is not review of every visible artifact.
|
|
487
|
+
4. Preserve obligations, permission, uncertainty, negation, quantities and actors.
|
|
488
|
+
Record the actual alternative and reason for each assigned decision. Do not
|
|
489
|
+
ban passive voice or technical words and do not use lexical clues to infer
|
|
490
|
+
AI authorship. Keep unsupported factual corrections pending.
|
|
491
|
+
5. For translations, compare edited passages against the immutable Japanese
|
|
492
|
+
source through the existing translation workflow. A passing English baseline
|
|
493
|
+
does not establish fidelity to Japanese. Do not advance an artifact to
|
|
494
|
+
`reviewed` without the existing source-comparison and technical checks, or to
|
|
495
|
+
`complete`/`ready` without its applicable build and release checks. Reassess
|
|
496
|
+
affected prior evidence after edits without resetting unrelated records.
|
|
497
|
+
6. Report phase results, reviewed/pending IDs, applied and unapplied proposals,
|
|
498
|
+
scope exclusions, translation-check status and project checks separately.
|
|
499
|
+
Keep `meaning_verified: false`; do not claim publication readiness from it.
|
|
500
|
+
|
|
501
|
+
Two inspected English editions (`ai-codex-en` and `ai-agent-en`) declare
|
|
502
|
+
`:lang: en`, while their translation manifests declare `target_language: en-US`
|
|
503
|
+
and `epub_language: en`. The shared manifest template uses the same distinction.
|
|
504
|
+
Thus the proposed exact `en` CLI can serve these examples without rewriting
|
|
505
|
+
their US-English policy. This is not a repository-wide language audit. A target
|
|
506
|
+
actually declaring `:lang: en-US` needs explicit regional support or a separately
|
|
507
|
+
agreed metadata decision; do not override parser attributes to hide the mismatch.
|
|
508
|
+
|
|
509
|
+
When implementing the skill, update cybergarage-pub's root routing instructions,
|
|
510
|
+
human-facing README and the existing translation-review reference to distinguish
|
|
511
|
+
standalone English proofreading from translation/edition work. Do not make a
|
|
512
|
+
translation manifest mandatory for an English-original manuscript. The custom
|
|
513
|
+
project skill is not an editable copy of the gem-managed skill; do not overwrite
|
|
514
|
+
it with `skill install` or alter registration hashes.
|
|
515
|
+
|
|
516
|
+
Validate the new skill's frontmatter and reference links, then exercise diagnosis,
|
|
517
|
+
scoped revision, full three-phase review, unsupported CLI, existing-session
|
|
518
|
+
resumption and translated-edition handoff on isolated fixtures. Verify that
|
|
519
|
+
review success cannot promote translation or publication state by itself. Run a
|
|
520
|
+
small authorized book pilot only after the CLI/package checks pass; keep pilot
|
|
521
|
+
quality findings distinct from mechanical checks.
|
|
522
|
+
|
|
523
|
+
### Delivery recommendation and validation of this assessment
|
|
524
|
+
|
|
525
|
+
First consider the existing translation-skill improvements below; they do not
|
|
526
|
+
depend on English CLI support. Then settle the contracts above, implement and validate pubkit,
|
|
527
|
+
make the validated version available to the manuscript project, add the project
|
|
528
|
+
skill and routing, then evaluate a scoped English-book pilot. Avoid installing a
|
|
529
|
+
discoverable skill that advertises unsupported `--lang en` review. An interim
|
|
530
|
+
manual editorial pass, if requested, must be labeled as manual review without
|
|
531
|
+
pubkit's English baseline verification.
|
|
532
|
+
|
|
533
|
+
This assessment changes documentation only. Source inspection, the current
|
|
534
|
+
English-language rejection check and documentation checks do not validate future
|
|
535
|
+
English behavior. No implementation, skill installation, manuscript review,
|
|
536
|
+
grammar-engine evaluation, model evaluation, package release or publication was
|
|
537
|
+
performed.
|
|
538
|
+
|
|
539
|
+
## Earlier adoption in the existing translation skill (2026-10-16)
|
|
540
|
+
|
|
541
|
+
Recommendation: incorporate a small source-comparison procedure into
|
|
542
|
+
cybergarage-pub's existing `publish-english-edition` before implementing English
|
|
543
|
+
pubkit support or adding a standalone English review skill. This section assesses
|
|
544
|
+
that change; it does not apply it. The existing skill, translation/review and
|
|
545
|
+
setup references, style template, and translation/review prompt templates were
|
|
546
|
+
inspected. No changes to those skill files were present in the inspected diff.
|
|
547
|
+
|
|
548
|
+
The skill already requires source fidelity, retained confidence, natural US
|
|
549
|
+
English, terminology consistency, immutable Japanese baselines, and separate
|
|
550
|
+
review/build gates. Its principal gap is operational detail for comparing
|
|
551
|
+
English wording against those requirements. Supplement the existing review
|
|
552
|
+
procedure rather than introduce a second translation workflow or state model.
|
|
553
|
+
|
|
554
|
+
### What can be adopted now
|
|
555
|
+
|
|
556
|
+
| Research finding | Existing coverage and proposed addition |
|
|
557
|
+
| --- | --- |
|
|
558
|
+
| Clear actors and referents | Natural English is required, but actor selection is not explained. Compare the source actor, action, object and pronoun referents with the target. Supply an English subject only when the source or established context supports it; record ambiguity instead of inventing responsibility. |
|
|
559
|
+
| Conditions and modal force | Confidence and qualifications are already protected. Make comparison concrete: negation, condition scope, capability versus permission, obligation versus recommendation, quantified comparisons, units and uncertainty. Do not treat `can`, `may`, `must` and `should` as interchangeable stylistic choices or automatically introduce uppercase normative keywords. |
|
|
560
|
+
| Contextual voice and tense | Preserve justified passive voice when the actor is unknown, irrelevant or deliberately unstated. Prefer an explicit actor when supported and useful. Distinguish general behavior from a future plan without converting the latter into an existing capability. |
|
|
561
|
+
| Wordiness and nominalization | Compare a more direct alternative against the full source proposition. Remove framing only when it carries no qualification or discourse function. Keep established technical noun phrases; do not replace terminology merely because a shorter ordinary word exists. |
|
|
562
|
+
| Paragraph coherence | Read adjacent source and target paragraphs and headings. Check that connectors express the same causal, conditional or contrastive relationship. Do not insert a plausible causal explanation absent from the source. |
|
|
563
|
+
| Heading purpose | Compare a heading with its source and section body. Retain appropriate task and conceptual forms; use the book's capitalization policy. Do not impose imperative headings, a universal length limit, or sentence case across existing projects. |
|
|
564
|
+
| Evidence-based evaluation | Separate fluency, fidelity and structural findings. For a material proposed revision, record the source/target locations, supported alternative, reason and disposition in existing review evidence. A readable target can still omit a condition or strengthen a claim. |
|
|
565
|
+
|
|
566
|
+
Apply these checks to assigned prose, headings, list text, table text and
|
|
567
|
+
reader-visible labels where the translation assignment includes them. The
|
|
568
|
+
current translation workflow is not limited to pubkit's mapped prose scopes;
|
|
569
|
+
do not import those exclusions and accidentally leave translated tables or
|
|
570
|
+
diagrams unreviewed. Retain artifact-specific structure and diagram checks.
|
|
571
|
+
|
|
572
|
+
### Boundaries and conflicts to resolve
|
|
573
|
+
|
|
574
|
+
- Preserve the current paragraph-boundary and AsciiDoc-structure requirements.
|
|
575
|
+
Sentence-level wording can improve within those boundaries. Splitting or
|
|
576
|
+
merging paragraphs, moving sections and adding explanations require separately
|
|
577
|
+
assigned work; simplification research does not authorize such changes.
|
|
578
|
+
- Source comparison remains mandatory. Technical discrepancies continue through
|
|
579
|
+
the existing source-defect procedure; English polishing must not silently
|
|
580
|
+
repair the Japanese source or replace its claims with new implementation facts.
|
|
581
|
+
- Keep these as contextual review questions, not banned-word lists, mandatory
|
|
582
|
+
active-voice rules, automatic replacements or claims of AI authorship.
|
|
583
|
+
- Do not add `--lang en` commands, an English analyzer prerequisite, numeric
|
|
584
|
+
quality gates, or claims of pubkit verification before the implementation exists.
|
|
585
|
+
Grammar engines, readability scoring and research benchmark thresholds remain
|
|
586
|
+
outside this early skill update.
|
|
587
|
+
- Preserve existing `translated`, `reviewed`, `complete` and `ready` requirements.
|
|
588
|
+
No new status columns or automatic promotion follows from checking the added
|
|
589
|
+
editorial questions. Prompt instructions cannot establish publication readiness.
|
|
590
|
+
|
|
591
|
+
### Minimal change set for a subsequent implementation
|
|
592
|
+
|
|
593
|
+
| Existing skill file | Proposed change |
|
|
594
|
+
| --- | --- |
|
|
595
|
+
| `references/translation-and-review.md` | Own the concise source-to-target comparison procedure and contextual exceptions, next to the existing Review section. This is the main change. |
|
|
596
|
+
| `SKILL.md` | Add a short route to that procedure for translation and review; retain the current purpose, source ownership and completion model. |
|
|
597
|
+
| `assets/translate-adoc-prompt.md` | Route to the procedure for source-supported subjects, modality and connections. Replace the unqualified final demand for “publication-ready AsciiDoc” with valid translated AsciiDoc subject to the existing review/build gates. |
|
|
598
|
+
| `assets/review-adoc-prompt.md` | Route to the same procedure; request source/target evidence for material findings and distinguish fluency from fidelity and structural checks. |
|
|
599
|
+
| `assets/style-guide-template.md` | At most add a short reference to the common procedure. Keep locale, punctuation and book-owned style here; avoid copying the complete criteria. |
|
|
600
|
+
|
|
601
|
+
No change to release checks, the manifest schema, status template or discovery
|
|
602
|
+
metadata is needed for this limited addition. Template edits affect future
|
|
603
|
+
copies; do not overwrite customized prompts or style guides in existing books.
|
|
604
|
+
An existing book can use the revised shared procedure on its next assigned pass,
|
|
605
|
+
subject to that book's instructions. Earlier review results are not retroactively
|
|
606
|
+
validated by the new guidance.
|
|
607
|
+
|
|
608
|
+
Until pubkit supplies English criteria, keep this small translation-specific
|
|
609
|
+
procedure usable without installing pubkit or reading another repository by
|
|
610
|
+
absolute path. When English support ships, move general English wording criteria
|
|
611
|
+
to pubkit and retain translation fidelity, source-defect handling and edition
|
|
612
|
+
state in this skill. Audit the overlap then; do not copy the full research paper
|
|
613
|
+
survey or build a parallel general-purpose writing guide now.
|
|
614
|
+
|
|
615
|
+
Validate a subsequent update with skill frontmatter/reference checks and a small
|
|
616
|
+
set of independently authored bilingual cases: an omitted but recoverable actor,
|
|
617
|
+
an unknown actor requiring passive voice, permission versus capability, negated
|
|
618
|
+
conditions, future plans, legitimate technical noun phrases, and an apparently
|
|
619
|
+
fluent translation that omits a qualification. Include a request limited to one
|
|
620
|
+
file and a structural-change proposal to check scope handling. Judge actual
|
|
621
|
+
source/target decisions, not just whether prompt text contains these terms.
|
|
622
|
+
Do not claim a general translation-quality gain from this small calibration set.
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# English review
|
|
2
|
+
|
|
3
|
+
Version 1.3.0 supports English; version 1.2.3 and earlier do not. Run the
|
|
4
|
+
selected invocation's `--version` and help before using these commands.
|
|
5
|
+
|
|
6
|
+
```sh
|
|
7
|
+
asciidoc-pubkit writing criteria --lang en
|
|
8
|
+
asciidoc-pubkit review scan book.adoc --lang en --output .pubkit/en-prose --no-input
|
|
9
|
+
asciidoc-pubkit review prompt .pubkit/en-prose --lang en
|
|
10
|
+
asciidoc-pubkit review verify .pubkit/en-prose --lang en
|
|
11
|
+
asciidoc-pubkit review score book.adoc --lang en --json
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Use separate `--scope headings`, `prose` and `lists` sessions. Complete and
|
|
15
|
+
verify each phase before scanning the next phase's current sources. Heading
|
|
16
|
+
prompts support `--view outline`, `--mode diagnose` and selection by `--depth`.
|
|
17
|
+
Existing mapping, protected-source, generated-ID and baseline rules still apply.
|
|
18
|
+
Only exact saved heading anchor additions are permitted. Verification is
|
|
19
|
+
mechanical and always reports `meaning_verified: false`. English support does
|
|
20
|
+
not add translation fidelity checks or publication approval.
|
|
21
|
+
|
|
22
|
+
## Language and analysis
|
|
23
|
+
|
|
24
|
+
Exact `en` selects `english-lexical`; exact `ja` retains MeCab/IPADIC. Explicit
|
|
25
|
+
`literal` also supports English using the same bounded lexical matching in this
|
|
26
|
+
release, with a distinct identity. Neither English backend provides POS tagging,
|
|
27
|
+
grammar correction, sentence segmentation or automatic rewriting. No model CLI
|
|
28
|
+
or network service runs by default. Only `review score --agent` invokes a model.
|
|
29
|
+
Regional tags such as `en-US` and `en-GB` are rejected rather than normalized.
|
|
30
|
+
Keep spelling policy in book instructions. Explicit document language must match
|
|
31
|
+
the selected language. English accepts `preserve` style and mixed heading forms
|
|
32
|
+
only; Japanese prose styles and the MeCab backend are rejected for English.
|
|
33
|
+
Replacement remains Japanese-only, even when review supports English.
|
|
34
|
+
|
|
35
|
+
Tokens contain Unicode letters, combining marks, numbers and underscores.
|
|
36
|
+
Internal straight/curly apostrophes, hyphens (ASCII, U+2010, U+2011) and dots bind
|
|
37
|
+
parts into a token, protecting contractions, compounds, identifiers and versions
|
|
38
|
+
from substring matches. Matching never normalizes the source. Case-insensitive
|
|
39
|
+
rules compare downcased token surfaces while retaining original spans and text.
|
|
40
|
+
No Unicode composition normalization or apostrophe equivalence is performed.
|
|
41
|
+
Columns count Unicode characters, not bytes, UTF-16 units or grapheme clusters.
|
|
42
|
+
|
|
43
|
+
Phrases may cross whitespace and physical line wraps within one selected entry.
|
|
44
|
+
They cannot cross punctuation, paragraphs or protected inline spans, even where
|
|
45
|
+
masking would leave whitespace. Ordinary English quotation marks remain reviewable;
|
|
46
|
+
existing AsciiDoc protected spans and Japanese quoted spans retain their exclusions.
|
|
47
|
+
|
|
48
|
+
## English rule schema
|
|
49
|
+
|
|
50
|
+
Custom rules replace the complete default set. CLI `--rules` takes precedence
|
|
51
|
+
over `review.rules`, then packaged defaults; resolved rules are saved in sessions.
|
|
52
|
+
Japanese schema 1 remains valid for Japanese. English requires schema 2:
|
|
53
|
+
|
|
54
|
+
```yaml
|
|
55
|
+
schema_version: 2
|
|
56
|
+
language: en
|
|
57
|
+
rules:
|
|
58
|
+
- id: wordy-expression
|
|
59
|
+
match: phrase
|
|
60
|
+
terms: [due to the fact that]
|
|
61
|
+
case: insensitive
|
|
62
|
+
boundary: lexical
|
|
63
|
+
severity: hint
|
|
64
|
+
question: Compare a direct alternative without changing the causal claim.
|
|
65
|
+
exceptions: []
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Every shown key is required; unknown keys/versions are rejected. IDs must be
|
|
69
|
+
unique lowercase identifiers. `match` is `phrase` or `repeated-word`; the latter
|
|
70
|
+
requires empty `terms`. `case` is `sensitive` or `insensitive`; `boundary` is
|
|
71
|
+
`lexical`, and severity is `hint`. Terms and exceptions are nonempty lexical
|
|
72
|
+
phrases separated by whitespace. Exceptions suppress the exact token sequence
|
|
73
|
+
under the rule's case policy, not a surrounding context or regex. For repeated
|
|
74
|
+
words they can exempt sequences such as `had had` or `that that`. Default
|
|
75
|
+
repeated-word exceptions also include `is is` for metalinguistic use.
|
|
76
|
+
|
|
77
|
+
English heading rule sets use the same keys plus `fixed_titles` (exact strings),
|
|
78
|
+
`duplicate_siblings` (boolean), and `style: mixed`. Packaged heading rules flag
|
|
79
|
+
only exact sibling duplicates; contextual title/body judgment lives in criteria.
|
|
80
|
+
Glossary variants match case-sensitive lexical phrases; unsupported punctuation
|
|
81
|
+
in glossary phrases is rejected. Official literals can instead remain protected
|
|
82
|
+
inline code. An allow entry suppresses an exact surface or a phrase-rule term
|
|
83
|
+
under that rule's case policy. It does not grant edit permissions.
|
|
84
|
+
|
|
85
|
+
## Scores and preservation
|
|
86
|
+
|
|
87
|
+
Both languages use the existing character-based candidate-density formula. See
|
|
88
|
+
[scoring](scoring.md). Results are not calibrated measures of writing quality,
|
|
89
|
+
and cannot be compared across languages, rule sets or backends. English rubric
|
|
90
|
+
ratings keep sentence clarity and paragraph coherence separate. They do not
|
|
91
|
+
establish technical correctness or source-language fidelity.
|
|
92
|
+
|
|
93
|
+
Sessions retain schema 3 because settings, criteria and analysis identity fit
|
|
94
|
+
its existing representation. Exact tool versions still must match. The English
|
|
95
|
+
identity records engine, language, implementation version and boundary policy;
|
|
96
|
+
verification reports drift. Prompt generation uses saved criteria and findings
|
|
97
|
+
without constructing an analyzer. Retain old sessions with their original tool;
|
|
98
|
+
never rescan to hide a failed preservation check.
|
|
99
|
+
|
|
100
|
+
## Development quality checks
|
|
101
|
+
|
|
102
|
+
See [English evaluation](english-evaluation.md) for the 120-paragraph detection
|
|
103
|
+
corpus, score baseline, regression gates and 24 revision calibration cases.
|
|
104
|
+
Detection tests and evaluator-harness tests do not prove AI editing improvement.
|