Projects BibleWeb Interlinear Strong's lexicon with KJV usage
In Progress

Strong's lexicon with KJV usage

Area: Interlinear Milestone: v2

Context

Problem: Strong's definitions alone are often terse. The KJV usage data shows how a Greek/Hebrew word was actually translated across the King James Bible — providing practical, real-world translation context.

Solution: Integrate KJV usage data into the interlinear popup, powering both the gloss extraction and the "Translated as" frequency explorer.

Not included: A standalone KJV concordance view. This is integrated into the interlinear popup.

Functional

KJV usage data powers two parts of the interlinear popup:

  1. Gloss extraction: extractGreekGloss() and extractGreekMeanings() parse the kjv_usage string to generate short glosses and meaning chip alternatives
  2. "Translated as" explorer: Frequency-sorted list showing how many times the word was translated each way, with example verse drill-down

Current state: Fully functional for Greek. Hebrew drill-down not yet implemented.

UX & Design

Already integrated into the interlinear expanded word card UI. No separate view.

Technical

Data: strongs_greek.kjv_usage and strongs_hebrew.kjv_usage columns — text strings like "love(86), beloved(47), charity(27)"

Usage in code:

  • extractGreekGloss(kjv_usage) → picks the most common translation as short gloss
  • extractGreekMeanings(kjv_usage) → parses up to 12 alternatives for meaning chips
  • "Translated as" API groups actual verse occurrences by BSB/SV gloss

Files:

  • apps/web/src/lib/utils/text.ts — parsing functions
  • apps/web/src/routes/api/interlinear/translations/[strongsNumber]/+server.ts

Status

Current: IN_PROGRESS Milestone: v2

What's done:

  • KJV usage parsing for gloss extraction (Greek + Hebrew)
  • "Translated as" frequency explorer (Greek only)
  • Concordance search by Strong's number

What remains:

  • No dedicated raw KJV usage display (formatted lexicon entry)
  • Hebrew drill-down not implemented (API rejects H-prefixed numbers)
  • No standalone lexicon view

Dependencies:

  • Requires: Strong's data (DONE), interlinear popup (DONE)