orthotomeo

v0.1.0
io.github.jrainsberger/orthotomeo Checked 17 hours ago Published 4 months ago

Read-only scripture-study engine: complete-or-fail concordance over Greek NT, Hebrew OT, LXX.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

attestation Manuscript attestation

Returns the WHNT-style Type/Editions manuscript-tradition columns as neutral text-critical data (e.g. Mark 16:9-20 = Type KO) - which editions carry a word, with no argument for or against a variant.

ParameterTypeDescription
book *stringUSFM book code (e.g. GEN, PSA, MAT, REV) or the full English book name, any case (e.g. Genesis, matthew)
chapter *integerchapter number
corpus *stringword-tagged corpus: TAGNT, TAHOT, Swete, OSS-LXX-lemma
verse *integerverse number
wordnull | integer1-based word_no within the verse; omit for every word in the verse

cite Format citation

Renders Citations (from any of the above tools) as quoted, fully-attributed Markdown bullets - the only sanctioned bridge from a query result to pastable study-document text.

ParameterTypeDescription
citations *arrayCitations previously returned by another tool call, to render as a pastable reference block

concord_lemma Search concordance (lemma)

Complete-or-fail concordance: every words row in corpus whose lemma, dStrong, or (with by="surface") exact inflected surface form matches query. Route lemma/Strong's-number/surface-word lookups here, never by writing SQL or guessing occurrences from memory. This deployment caps one concordance result at 2000 occurrences and refuses anything broader, reporting the exact match count in the error. Call count first when a query might be broad - count is never capped.

ParameterTypeDescription
corpus *stringword-tagged corpus to search: TAGNT (Greek NT), TAHOT (Hebrew OT), Swete (LXX surface), OSS-LXX-lemma (LXX lemma)
query *stringa lemma (e.g. ἄφεσις), a disambiguated Strong's number (e.g. G0859, H7225G), or (with by="surface") the exact inflected word as it appears in the verse
bystringoptional match column override: lemma, dstrong, or surface. Omit for auto-detect (dStrong shape, else lemma) - surface must always be requested explicitly, it is never guessed

concord_phrase Search concordance (phrase)

Complete-or-fail multi-word concordance: every occurrence, within one verse, of tokens (lemma strings) appearing in order within window intervening words of each other (window=0 = strictly adjacent). This is the tool for a phrase query like εἰς ἄφεσιν. This deployment caps one concordance result at 2000 occurrences and refuses anything broader, reporting the exact match count in the error. Call count first when a query might be broad - count is never capped.

ParameterTypeDescription
corpus *stringword-tagged corpus to search: TAGNT, TAHOT, Swete, OSS-LXX-lemma
tokens *arrayordered lemma strings to find co-occurring within one verse, e.g. ["εἰς","ἄφεσις"]
window *integermax words allowed between consecutive tokens; 0 = strictly adjacent

count Count occurrences

Occurrence tally (total + per-book breakdown) for the identical query concord_lemma would match. count.Total always equals len(concord_lemma(...)) - use this to sanity-check a concordance result, or when only the number matters.

ParameterTypeDescription
corpus *stringword-tagged corpus: TAGNT, TAHOT, Swete, OSS-LXX-lemma
query *stringa lemma, dStrong, or (with by="surface") exact inflected word, same as concord_lemma
bystringoptional match column override: lemma, dstrong, or surface, same as concord_lemma

get_passage Get passage text

Returns get_verse's result for every canonical verse in a contiguous, single-book range, in order - verse boundaries preserved, never concatenated into one blob.

ParameterTypeDescription
book *stringUSFM book code (e.g. GEN, PSA, MAT, REV) or the full English book name, any case (e.g. Genesis, matthew)
editions *arrayverse-text editions to fetch verbatim text from: KJV, ASV, WEB, BSB, Brenton
end_chapter *integerlast chapter of the range, inclusive
end_verse *integerlast verse of the range, inclusive
start_chapter *integerfirst chapter of the range, inclusive
start_verse *integerfirst verse of the range, inclusive

get_verse Get verse text

Returns verbatim verse text with provenance for one canonical reference, one Citation per requested edition (KJV, ASV, WEB, BSB, Brenton).

ParameterTypeDescription
book *stringUSFM book code (e.g. GEN, PSA, MAT, REV) or the full English book name, any case (e.g. Genesis, matthew)
chapter *integerchapter number
editions *arrayverse-text editions to fetch verbatim text from: KJV, ASV, WEB, BSB, Brenton
verse *integerverse number

interlinear Interlinear reading view

Returns a row-aligned reading view for every word in a verse (or one word, if word is given): original text, transliteration, gloss (via lexicon_lookup), grammar, and manuscript attestation stacked per word - the composed display shape for a study reading view, built on parse and lexicon_lookup rather than any new query. This is the most complete per-word view; use parse or attestation when you want only one of those facets.

ParameterTypeDescription
book *stringUSFM book code (e.g. GEN, PSA, MAT, REV) or the full English book name, any case (e.g. Genesis, matthew)
chapter *integerchapter number
corpus *stringword-tagged corpus: TAGNT, TAHOT, Swete, OSS-LXX-lemma
verse *integerverse number
wordnull | integer1-based word_no within the verse; omit for every word in the verse

lemmatize List lemmas

Returns the ordered lemma list for a verse (words with no lemma are omitted, not fabricated).

ParameterTypeDescription
book *stringUSFM book code (e.g. GEN, PSA, MAT, REV) or the full English book name, any case (e.g. Genesis, matthew)
chapter *integerchapter number
corpus *stringword-tagged corpus: TAGNT, TAHOT, Swete, OSS-LXX-lemma
verse *integerverse number

lexicon_lookup Lexicon lookup

Resolves a disambiguated Strong's number (dStrong) to its lexicon entry: lemma, transliteration, gloss, and - for a Greek entry only - a fuller definition (Abbott-Smith 1922, Public Domain). A Hebrew entry's definition field is always omitted: it is abridged BDB via Online Bible, which requires permission not yet obtained, so only its gloss is ever returned. Not to be confused with the get_verse/get_passage tools, which resolve a Ref to translated verse text, not a dStrong to a dictionary entry.

ParameterTypeDescription
dstrong *stringa disambiguated Strong's number, e.g. G0859, H7225G

parse Parse morphology

Returns dStrong + expanded morphology (via the T6 morph_codes table) for every word in a verse, or one word if word is given. LXX corpora (Swete, OSS-LXX-lemma) are always Flagged - neither carries morphology.

ParameterTypeDescription
book *stringUSFM book code (e.g. GEN, PSA, MAT, REV) or the full English book name, any case (e.g. Genesis, matthew)
chapter *integerchapter number
corpus *stringword-tagged corpus: TAGNT, TAHOT, Swete, OSS-LXX-lemma
verse *integerverse number
wordnull | integer1-based word_no within the verse; omit for every word in the verse

resolve_ref Resolve reference

Reports, for every per-verse content edition (KJV, ASV, WEB, BSB, Brenton, TAGNT, TAHOT, Swete, OSS-LXX-lemma), whether a canonical reference has a counterpart there and where. Cross-edition divergence (a T4b merge/renumber/divide, or a reference simply missing from an edition) is reported as Caveats - never a silent shift.

ParameterTypeDescription
book *stringUSFM book code (e.g. GEN, PSA, MAT, REV) or the full English book name, any case (e.g. Genesis, matthew)
chapter *integerchapter number
verse *integerverse number