Cross-source alignment
nabu_alignAligns a citation, chapter, or verse range across every registered witness in the local corpus, showing each language's rendering and license, with optional witness-diff collation.
Instructions
Cross-source alignment over the local nabu corpus: one citation of a registered work rendered across EVERY witness the alignment registry names — e.g. the same New Testament verse in Greek, Latin, Gothic, Classical Armenian, and Old Church Slavonic at once. ref is a citation in the work's scheme ("MARK 2.3"; case/spacing/chapter:verse colons normalize) or a passage urn to pivot from a search/show hit. work picks the registry work when several exist (optional with one). Witnesses come in registry order; each carries its language and license_class (the NT witnesses are nc — PRESERVE the license fields when quoting), and every sentence row carries urn + language + license_class + source. Sentence≠verse: a sentence spanning a verse boundary lists every ref it covers. Honest absence: a witness lacking the verse reads status no_match; a registered-but-unsynced witness reads not_synced. ref may also be a whole CHAPTER ("JON 1") or an inclusive same-book verse RANGE ("JON 1.1-1.16"): the reply is a refs array, one entry per ref in document order (each with the same witness columns), capped at 200 with an honest truncation note. Witnesses absent from EVERY ref of a range are summarized once in absent_witnesses (reason not_attested|not_synced) and omitted from the per-ref columns, so a chapter stays readable. collate: true returns a witness DIFF instead: a raw-token apparatus per (language, script) cell (base reading + each witness's divergences), with cross-script witnesses rendered undiffed and labelled honestly — the fold cannot bridge e.g. the Cyrillic Marianus and the Helsinki-ASCII CCMH codices.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Citation in the work's scheme (e.g. "MARK 2.3"), a whole chapter ("JON 1"), an inclusive same-book verse range ("JON 1.1-1.16"), or a passage urn to pivot from. | |
| base | No | With collate: the base witness (label or document urn) each cell diffs against (default: the first witness in registry order). | |
| work | No | Alignment work id from the registry (optional when exactly one work is registered). | |
| collate | No | Diff the witnesses instead of listing them: a raw-token apparatus per (language, script) cell — base reading plus each witness's divergences only; cross-script witnesses rendered undiffed and labelled honestly (the fold cannot bridge e.g. the Cyrillic Marianus and the Helsinki-ASCII CCMH codices). | |
| include_restricted | No | Also serve research_private/restricted material. Default false and deliberately so: this surface must never leak private or license-restricted texts casually. Set true only when the requester understands and will honor the restriction. |