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

FileLinesSub-sub-themesSMM blocksFootnotes used
ws-01-the-sanctity-of-nature.md27633(none)
ws-02-reverence-for-life.md179331–4
ws-03-nature-as-teacher.md78015
ws-04-microcosm-and-macrocosm.md134016–10
ws-05-the-lord-of-creation.md1983311
ws-06-stewardship.md2183312–14
ws-07-beauty.md15622(none)
ws-08-creativity-and-art.md20644(none)
ws-09-health-and-disease.md1594415–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 N artifact line at top of file. Marker preserved a redundant ## Chapter 4 heading on line 1, immediately followed by the real ## God's Creation and Human Creativity on line 3. Without the patch the cleaner would have taken Chapter 4 as the chapter title and demoted the real title into the first sub-theme. Added CHAPTER_ARTIFACT_RE plus a discard-with-flag branch in transform() 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 in INLINE_FOOTNOTE_RE didn’t include , so footnote [^6] was skipped — and since the converter only advances expected_footnote on 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-existing SMM_RE only 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-anchored SMM_INLINE_RE that 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-4 re-attributed to the “Let not yours be the outward adorning…” passage two paragraphs earlier.
  • Boethius attached to the music-theory passage immediately above (“musica mundana / humana / instrumentis”).
  • ## SMM — 2. The Beauty of Human Beings heading inserted before the SMM body text “People appear beautiful when they receive God’s grace…“.

Flagged for human review

  1. 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.)

  2. ## Chapter N discard flagged at line 1. Documents the silent-discard event so it’s visible to review.

  3. Orphan-space footnote conversion at line 527 (gave him a form. 7[^7]). One occurrence in this chapter — matches the Ch2/Ch3 pattern handled by INLINE_FOOTNOTE_RE_FALLBACK.

  4. 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.

  5. SMM number-prefix convention preserved per the feedback_smm_prefix decision.

  6. 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:

  1. 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.md
  2. mkdir -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/
  3. Delete staging dir per 9c5d7a3 convention.
  4. Commit; Ch5 follows.

Out of scope

  • Chapters 5–22 (18 batches remaining).
  • Front/back-matter (Phase C).
  • Atomization (stage-3).