Batch ws-1-4-god-s-creation-and-human-creativity — REVIEW
Content-cleanup variant per ADR-0009. Stage-2 cleanup of WS-II Chapter 4 (“God’s Creation and Human Creativity”), Part 1 (“God and the Creation”). Third Phase B chapter.
What changed
- New (9 files):
resources/WorldScripture/Part1/Chapter04-god-s-creation-and-human-creativity/ws-{NN-subtheme-slug}.md. Per-sub-theme files; line counts 78–276. - Intermediate (1 file, staging-only):
staging/ws-1-4-god-s-creation-and-human-creativity/resources/WorldScripture/Part1/ws-1-4-god-s-creation-and-human-creativity.md. Includes a manual fix for the mashed SMM line on raw line 1083 (see “Manual fix” below). - Modified:
scripts/clean_ws_chapter.py— extended to handle three Ch4-specific Marker artifacts (see below).
Sub-theme files produced
| File | Lines | Sub-sub-themes | SMM blocks | Footnotes used |
|---|---|---|---|---|
ws-01-the-sanctity-of-nature.md | 276 | 3 | 3 | (none) |
ws-02-reverence-for-life.md | 179 | 3 | 3 | 1–4 |
ws-03-nature-as-teacher.md | 78 | 0 | 1 | 5 |
ws-04-microcosm-and-macrocosm.md | 134 | 0 | 1 | 6–10 |
ws-05-the-lord-of-creation.md | 198 | 3 | 3 | 11 |
ws-06-stewardship.md | 218 | 3 | 3 | 12–14 |
ws-07-beauty.md | 156 | 2 | 2 | (none) |
ws-08-creativity-and-art.md | 206 | 4 | 4 | (none) |
ws-09-health-and-disease.md | 159 | 4 | 4 | 15–16 |
16 inline footnote markers converted (= Ch4’s full back-matter count in ws-notes.md). Per-file footnote refs == defs in every sub-theme file (total: 4+1+5+1+3+2 = 16).
Cleanup decisions (script-applied)
Same set of base transformations as Ch2/Ch3 (heading re-leveling, italics strip, SMM rename, blockquote unwrap, footnote-marker conversion, word-break fixes, frontmatter). Three new patterns Ch4 surfaced — scripts/clean_ws_chapter.py extended in this batch:
## Chapter Nartifact line at top of file. Marker preserved a redundant## Chapter 4heading on line 1, immediately followed by the real## God's Creation and Human Creativityon line 3. Without the patch the cleaner would have takenChapter 4as the chapter title and demoted the real title into the first sub-theme. AddedCHAPTER_ARTIFACT_REplus a discard-with-flag branch intransform()before the chapter-title detection block. Ch19 will hit the same pattern per the bulk-processing handoff; the script-side fix is reusable.- Ellipsis (
…, U+2026) before bare-digit footnote marker. Raw line 505:subtle matter of the five elements…6. The lookbehind char class inINLINE_FOOTNOTE_REdidn’t include…, so footnote[^6]was skipped — and since the converter only advancesexpected_footnoteon a successful match, the entire footnote chain after[^5]broke (only 5 of 16 were detected on the first run). Added…to the lookbehind class. Once[^6]matches, the rest of the chain converts via the existing primary/fallback regexes. - SMM marker mashed into a body line. Raw line 1083:
1 Peter 3.3-4 Boethius *Teachings of Sun Myung Moon*— Marker concatenated two scripture attributions and the SMM heading marker onto a single line, between two unrelated passages. Pre-existingSMM_REonly matches lines that are only the marker, so without intervention the script silently dropped the SMM heading for “2. The Beauty of Human Beings”. Added a non-anchoredSMM_INLINE_REthat flags any body line containing*Teachings of Sun Myung Moon*after all heading detectors have run, so future occurrences surface as flags rather than being silently dropped. Auto-splitting isn’t safe (don’t know where each attribution belongs) — this remains flag-don’t-fix per feedback_script_vs_ai_split.
Ch2 and Ch3 regression-tested after these script changes — output unchanged (footnote counts 1..23 and 1..15 respectively; no new flags introduced on either chapter).
Manual fix (staging-only edit)
Line 1083’s mash was split by hand in the staging file (the SMM-inline flag identified the location):
Before: After:
...Let not yours be the outward adorning...
1 Peter 3.3-4
...When anyone, having the right kind of love...
Plato, Symposium *(Hellenism)*
...Now one comes to understand the music...
1 Peter 3.3-4 Boethius Boethius
*Teachings of Sun Myung Moon*
## SMM — 2. The Beauty of Human Beings
1 Peter 3.3-4re-attributed to the “Let not yours be the outward adorning…” passage two paragraphs earlier.Boethiusattached to the music-theory passage immediately above (“musica mundana / humana / instrumentis”).## SMM — 2. The Beauty of Human Beingsheading inserted before the SMM body text “People appear beautiful when they receive God’s grace…“.
Flagged for human review
-
Manual SMM split decision above — confirm the attribution placements match how the printed Word Scripture II book lays them out. (Best signal: the Ch4 PDF original. The split is the most plausible reading from context but isn’t deterministic.)
-
## Chapter Ndiscard flagged at line 1. Documents the silent-discard event so it’s visible to review. -
Orphan-space footnote conversion at line 527 (
gave him a form. 7→[^7]). One occurrence in this chapter — matches the Ch2/Ch3 pattern handled byINLINE_FOOTNOTE_RE_FALLBACK. -
Blockquote strips (3 in this chapter, vs 10 in Ch3, vs 4 in Ch2). All three (Tung Chung-Shu / Baha’u’llah / Yanomami) are attribution lines Marker wrapped in
>. Consistent with prior chapters. -
SMM number-prefix convention preserved per the feedback_smm_prefix decision.
-
Tradition-tag italics kept as-extracted per pilot convention.
Verification
# Frontmatter validates.
head -16 resources/WorldScripture/Part1/Chapter04-god-s-creation-and-human-creativity/ws-01-the-sanctity-of-nature.md
# Per-file footnote ref/def match.
for f in resources/WorldScripture/Part1/Chapter04-god-s-creation-and-human-creativity/ws-*.md; do
refs=$(awk 'BEGIN{p=1} /^## Footnotes/{p=0} p' "$f" | grep -oE '\[\^[0-9]+\]' | sort -u | wc -l)
defs=$(awk '/^## Footnotes/,0' "$f" | grep -cE '^\[\^')
echo "$(basename $f): refs=$refs defs=$defs"
done
# Ch2/Ch3 regression-check (script changes shouldn't alter prior outputs).
uv run scripts/clean_ws_chapter.py \
--input resources-raw/WorldScripture/extracted/01-god-and-creation/chapter-2-truth-and-universal-law.md \
--output /tmp/ch2-recheck.md --part 1 --part-title "God and the Creation" --chapter 2
uv run scripts/clean_ws_chapter.py \
--input resources-raw/WorldScripture/extracted/01-god-and-creation/chapter-3-the-purpose-of-human-life.md \
--output /tmp/ch3-recheck.md --part 1 --part-title "God and the Creation" --chapter 3
# Both should report "Footnote markers converted: 1..23" and "1..15" respectively.Finalize plan
When user approves:
cp staging/ws-1-4-god-s-creation-and-human-creativity/REVIEW.md _meta/batch-reviews/ws-1-4-god-s-creation-and-human-creativity.mdmkdir -p resources/WorldScripture/Part1/Chapter04-god-s-creation-and-human-creativity && mv staging/.../Chapter04-.../ws-*.md resources/WorldScripture/Part1/Chapter04-god-s-creation-and-human-creativity/- Delete staging dir per 9c5d7a3 convention.
- Commit; Ch5 follows.
Out of scope
- Chapters 5–22 (18 batches remaining).
- Front/back-matter (Phase C).
- Atomization (stage-3).