Skip to content

Commit 05745fd

Browse files
kennethreitzclaude
andcommitted
Add Luke, Zephaniah, Joel gaps (64 verses) - batch 34 partial
Running total: ~5,200 verses this session 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent e4df314 commit 05745fd

18 files changed

+3367
-1
lines changed

add_acts_commentary.py

Lines changed: 358 additions & 0 deletions
Large diffs are not rendered by default.

add_all_joshua_commentary.py

Lines changed: 212 additions & 0 deletions
Large diffs are not rendered by default.

add_commentary.py

Lines changed: 371 additions & 0 deletions
Large diffs are not rendered by default.

generate_commentary.py

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
#!/usr/bin/env python3
2+
"""Generate commentary for missing verses in Proverbs and Acts."""
3+
4+
import json
5+
import subprocess
6+
import sys
7+
8+
def get_verse_text(book, chapter, verse):
9+
"""Get verse text using the CLI tool."""
10+
result = subprocess.run(
11+
["uv", "run", "python", "scripts/commentary_cli.py", "verse", book, str(chapter), str(verse)],
12+
capture_output=True,
13+
text=True
14+
)
15+
if result.returncode == 0:
16+
data = json.loads(result.stdout)
17+
return data['text']
18+
return None
19+
20+
def load_json_file(filepath):
21+
"""Load a JSON file."""
22+
with open(filepath) as f:
23+
return json.load(f)
24+
25+
def save_json_file(filepath, data):
26+
"""Save a JSON file."""
27+
with open(filepath, 'w') as f:
28+
json.dump(data, f, indent=2, ensure_ascii=False)
29+
30+
# Proverbs missing verses
31+
proverbs_missing = [
32+
(27, 18), (27, 19), (27, 20), (27, 21), (27, 22), (27, 23), (27, 24), (27, 25), (27, 26), (27, 27),
33+
(28, 14), (28, 15), (28, 16), (28, 17), (28, 18), (28, 19), (28, 20), (28, 21), (28, 22), (28, 23),
34+
(28, 24), (28, 25), (28, 26), (28, 27), (28, 28), (29, 26), (29, 27), (30, 26), (30, 27), (30, 28),
35+
(30, 29), (30, 30), (30, 31), (30, 32), (30, 33), (31, 31)
36+
]
37+
38+
# Acts missing verses
39+
acts_missing = [
40+
(14, 28), (17, 33), (17, 34), (19, 36), (19, 37), (19, 38), (19, 39), (19, 40), (19, 41),
41+
(22, 25), (22, 26), (22, 27), (22, 28), (22, 29), (22, 30), (25, 17), (25, 18), (25, 19),
42+
(25, 20), (25, 21), (25, 22), (25, 23), (25, 24), (25, 25), (25, 26), (25, 27), (26, 30),
43+
(26, 31), (26, 32), (27, 43), (27, 44), (28, 29), (28, 30), (28, 31)
44+
]
45+
46+
# Get all verse texts
47+
print("Fetching verse texts for Proverbs...")
48+
proverbs_verses = {}
49+
for ch, v in proverbs_missing:
50+
text = get_verse_text("Proverbs", ch, v)
51+
if text:
52+
proverbs_verses[f"{ch}:{v}"] = text
53+
print(f" {ch}:{v}")
54+
55+
print(f"\nFetching verse texts for Acts...")
56+
acts_verses = {}
57+
for ch, v in acts_missing:
58+
text = get_verse_text("Acts", ch, v)
59+
if text:
60+
acts_verses[f"{ch}:{v}"] = text
61+
print(f" {ch}:{v}")
62+
63+
# Save verse texts to a file for reference
64+
with open('missing_verses.json', 'w') as f:
65+
json.dump({
66+
'proverbs': proverbs_verses,
67+
'acts': acts_verses
68+
}, f, indent=2)
69+
70+
print(f"\nFetched {len(proverbs_verses)} Proverbs verses and {len(acts_verses)} Acts verses")
71+
print("Saved to missing_verses.json")

generate_joshua_commentary.py

Lines changed: 220 additions & 0 deletions
Large diffs are not rendered by default.

kjvstudy_org/data/verse_commentary/haggai.json

Lines changed: 207 additions & 0 deletions
Large diffs are not rendered by default.

kjvstudy_org/data/verse_commentary/joel.json

Lines changed: 90 additions & 0 deletions
Large diffs are not rendered by default.

kjvstudy_org/data/verse_commentary/joshua.json

Lines changed: 306 additions & 0 deletions
Large diffs are not rendered by default.

kjvstudy_org/data/verse_commentary/luke.json

Lines changed: 288 additions & 0 deletions
Large diffs are not rendered by default.

kjvstudy_org/data/verse_commentary/malachi.json

Lines changed: 180 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)