Intertext parallels
nabu_parallelsFind passages that quote or echo a given passage URN across the local Nabu corpus, enabling intertextual reception discovery rather than translation alignment.
Instructions
Passage-anchored intertext over the local nabu corpus: give ONE passage urn and get the passages that QUOTE or ECHO it — reception discovery, not translation alignment (that is nabu_align). Query-time over the same FTS index as nabu_search: the anchor is folded, cut into overlapping 4-word grams, each probed as an exact phrase; passages sharing grams are ranked by shared-gram count WEIGHTED BY RARITY (a rare shared phrase outweighs common function-word grams). Elision is folded across editions (SBLGNT ἐπʼ ≡ Swete ἐπ’), which is what lets Matthew 4:4 find LXX Deuteronomy 8:3. Each hits entry is one DOCUMENT (duplicate witnesses grouped; loci = how many of its passages matched) with its best passage urn, score, shared_grams, and the shared PHRASE spans (diacritic-folded — WHAT matched; nabu_show gives pristine text). Only the anchor's OWN document is excluded; translations self-exclude (no shared folded tokens). When the anchor carries gold treebank lemmas, lemma_echoes adds passages sharing ≥2 of its RARE lemmas (re-inflected/reordered allusion verbatim grams miss). Bounded (default 10, max 50) with an honest note; every hit carries urn, language, license_class, and source — PRESERVE the license fields when quoting. lang/license scope candidates. explain: true adds each hit's per-gram score decomposition (gram → df → weight → contribution; rows sum to the score exactly, non-contributing grams as zero rows).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| urn | Yes | The anchor passage urn (from a nabu_search/nabu_show hit) whose quotations and echoes to find. | |
| lang | No | ISO-639-3 passage language filter on the CANDIDATES: grc, lat, chu, … | |
| lect | No | Lect filter on the candidates (P59-3, nabu-lects module): keep only hits whose resolution is this lect id or a more specific one under it — the same prefix semantics as nabu_search's lect (lect: "grc:koi" keeps Koine candidates, drops Classical and bare-grc ones). Errors if the module is not synced on this box. | |
| limit | No | Maximum hits per signal (surface parallels and lemma echoes). | |
| explain | No | Attach each hit's score decomposition as `explain`: one row per distinct anchor gram — gram, position, positions (anchor occurrences), df (probe document frequency), weight (1/df), contribution, status (shared · not_shared · too_common · stop). Contributions sum to the hit's score EXACTLY; grams adding nothing are explicit zero rows. | |
| license | No | Exact effective license class filter on the candidates. | |
| 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. |