From ab160b4abd8de2395e98b386ea1351823ea4584a Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Fri, 5 Dec 2025 08:34:13 -0500 Subject: [PATCH] Filter word studies to important theological terms only MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Limit word study sidenotes to ~40 key theological terms like god, lord, salvation, grace, covenant, etc. Excludes common words like walk, call, dwell, bread that don't warrant study annotations on every occurrence. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- kjvstudy_org/routes/commentary.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/kjvstudy_org/routes/commentary.py b/kjvstudy_org/routes/commentary.py index 7d5a0c6..467719c 100644 --- a/kjvstudy_org/routes/commentary.py +++ b/kjvstudy_org/routes/commentary.py @@ -327,6 +327,22 @@ def generate_word_study_sidenotes(verse_text, book, chapter, verse_num, shown_wo # Load word studies from JSON file word_studies = _load_word_studies() + # Only show important theological terms (not common words like 'walk', 'call') + priority_words = { + 'god', 'lord', 'spirit', 'holy', 'christ', 'messiah', + 'salvation', 'save', 'redeem', 'atonement', 'propitiation', 'reconcile', + 'grace', 'mercy', 'faith', 'hope', 'love', 'truth', + 'sin', 'iniquity', 'transgression', 'wrath', 'judgment', 'forgive', + 'covenant', 'law', 'gospel', 'word', + 'heaven', 'kingdom', 'eternal', 'resurrection', 'glory', + 'blood', 'sacrifice', 'lamb', 'altar', 'priest', + 'righteous', 'justify', 'sanctify', 'holy', + 'angel', 'prophet', 'apostle', + 'baptize', 'repent', 'believe', 'confess', + 'born again', 'adoption', 'elect', 'predestine', + } + word_studies = {k: v for k, v in word_studies.items() if k in priority_words} + # Get interlinear data for this verse to cross-reference Strong's numbers interlinear = get_interlinear_data(book, chapter, verse_num) verse_strongs = set()