| nabu_searchA | Search nabu, a local corpus of ancient texts (polytonic Greek, Latin, Old Church Slavonic, Gothic, and more: literary editions, documentary papyri, gold treebanks, parallel English translations). Give EXACTLY ONE of: query — full-text FTS5 (words AND by default, "quoted phrase", prefix*; diacritics optional, μηνιν finds μῆνιν) — or lemma — exact dictionary form over the lemma index, every tier it holds: gold treebank annotation unlabeled, silver/equivalence hits labeled by a tier field (λέγω finds εἶπας, εἰπεῖν, every inflection; add morph — e.g. "case=dat,number=pl" — to keep only attestations with that morphology, each hit showing the decoded evidence). Add near for PROXIMITY — keep only hits where that term sits within window words (default 10, 0=adjacent) of query (or lemma, expanded to its surface forms) in the SAME passage, order-independent; both matched terms are bracketed in the snippet (near does not compose with morph). Hits are relevance-ranked and bounded (default 10, max 50) with an honest 'showing k' note; each carries urn, language, license_class, and source — PRESERVE the license fields when quoting. meter/meter_pattern (text search only) restrict hits to metrically SCANNED passages — the pedecerto (Latin) / hypotactic (Greek) meter enrichment layer; the note names that layer or explains an empty one. words (text search only) is the Tibetan word-grain filter: keep only hits whose match aligns with word boundaries per the nabu-data segmentation dataset (degrades honestly for non-Tibetan queries or an unsynced module). Four further LANES replace the ranked text search (each composes with the args its schema line names, nothing else): fuzzy: true — substring/fragment search over the documentary trigram index (]μηνιν αει[, the CLI's --fuzzy); translations: true — the query matched against the translations held in passage annotations, hits being the ORIGINAL passages with the matched layer (the CLI's --translations); annotations: true — the query matched against the DECLARED annotation layers (standardized/regularized spellings, readings, margin notes, footnotes, editors' notes), hits being the passages with the matched layer (the CLI's --annotations); sense — the word-sense desk (a DCS WordSem id or sense name → the passages whose tokens cite it, each with its citing tokens; the CLI's nabu sense). betacode: true reads query/lemma/near as TLG Beta Code (mh=nin → μῆνιν). Use nabu_show with a hit's urn for the full passage, nabu_status for what the corpus covers. |
| nabu_showA | Read the nabu corpus by urn: one passage, a whole document, an inclusive range, or a parallel-aligned translation. urn shapes — passage: urn:cts:greekLit:tlg0012.tlg001.perseus-grc2:1.1 · document: urn:cts:greekLit:tlg0012.tlg001.perseus-grc2 · range: :1.1-1.10 (inclusive slice) · papyrus: urn:nabu:ddbdp:aegyptus:89:240:b2:5 · treebank sentence: urn:nabu:proiel:afnik:194690. A shortened CITATION PREFIX between document and passage grain (…:avest020:Y.19.1 over passages Y.19.1.a/b) lists everything below it, boundary-exact — term-less browsing needs no search hit first. parallel: true aligns the same work's parallel_lang (default eng) edition line by line. Passage lists are bounded by max_passages (default 50, cap 200) with an honest truncation note. Every passage carries urn, language, and license_class — preserve them when quoting. Withdrawn/retired items appear, flagged. The owner's own notes on the urn ride along in notes (documents also count passage-note children) — useful curatorial context. A metrically scanned passage carries meter (code, foot pattern, producer); an epigraphic document whose parse-captured Pleiades findspot id resolves through the local gazetteer dump carries findspot (both keys absent otherwise — absence of the dump or of the enrichment, not a claimed absence of fact). segmented: true adds a word-segmented rendering of Tibetan (xct/bod/otb) passages as a present-only segmented key per passage record; a not-applicable call carries segmentation_note instead. senses: true adds each shown passage's token senses (DCS WordSem ids — the CLI's show --senses): a present-only senses list per passage record plus a sense_entries map resolving the ids against the sense shelf; a source with no ruled token senses answers senses_note instead. The findspot block carries the gazetteer's attribution (source, license, the place's upstream URI) — preserve it when quoting the place facts. |
| nabu_concordA | Concordance (KWIC — keyword-in-context) over the local nabu corpus: one row per hit as left context / matched keyword / right context, the keyword located in the PRISTINE edition text (accents intact). Give EXACTLY ONE of query (full-text, same syntax as nabu_search: words AND, "phrase", prefix*, diacritics optional) or lemma (exact dictionary form over the treebanks). Rows come in CORPUS order (urn/citation), not relevance — this is for scanning a word's usage, not ranking. Context is trimmed to width characters per side (default 40, max 120; … marks clipped context). Bounded (default 10, max 50) with an honest 'showing k' note; each row carries urn, language, license_class, and source — PRESERVE the license fields when quoting. Use nabu_show for a hit's full passage, nabu_search when you want ranked relevance rather than a scan. |
| nabu_alignA | 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. |
| nabu_defineA | Look up a lemma (dictionary form) in the dictionary shelves nabu holds locally — hundreds of lexica across many languages (LSJ, Lewis & Short, Bosworth-Toller, the Wiktionary extracts, and far more; the lang enum in this schema is the LIVE set of shelf languages, nabu_status counts the entries). The Wiktionary RECONSTRUCTION shelves (*-pro codes) are included: a LEADING ASTERISK scopes to reconstructions (*bogъ), whose entries also list their descendant reflexes with corpus attestation counts (nabu_etym walks the same crosswalk from an attested lemma). Diacritics optional (μηνις finds μῆνις); lang picks a shelf language when the spelling is ambiguous. Each entry carries headword, dictionary, license fields (PRESERVE them when quoting), a short gloss, the entry body as structured plain text (senses labeled; bounded at 6000 chars with an honest note — the CLI nabu define is unbounded), and the entry's citations: where the cited work is in the local catalog the citation carries a resolved passage urn (open it with nabu_show); otherwise resolved_urn is null and the display text stands. A PRINT citation of a reference work (a BDB page, a Wb volume/page/line, a Holder AcS volume/column) may carry scan: status (anchored/held/uncalibrated/out_of_range/not_held/unconfigured), urn (the held scan's page passage or document — null when not held), leaf, pointer. Entries may carry crossrefs — pointers to other entries, usually of the same dictionary, sometimes of another (the Strong shelf's BDB ids) (kind, label verbatim, resolved_urn of the target entry or null — open it with nabu_show). Bounded (default 3 entries, max 10; homographs are separate entries). The owner's own notes on an entry ride along in notes — useful curatorial context. |
| nabu_etymA | Walk the reconstruction crosswalk (the comparativist's join): give an ATTESTED lemma (богъ, guþ, deus) and get every reconstructed ancestor whose Wiktionary descendants name it — Proto-Slavic, PIE, Proto-Germanic, Proto-Balto-Slavic, Proto-West Germanic, Proto-Italic, Proto-Indo-Iranian (kaikki.org extracts, CC-BY-SA + GFDL; PRESERVE license fields when quoting). Each entry carries the *headword, gloss, the reflex that matched (matched_via, incl. its borrowed loan flag), its COGNATES across languages with corpus attestation counts (attested_count = gold-lemma passages in this catalog; null = not attested here, an absence not a zero) and per-edge borrowed flags, and nested ancestors — the full chain up the proto shelves (прьстъ→*pьrstъ→*pírštan→*per-), bounded because each shelf enters a walk once; a loan edge carries edge_borrowed: true. Romanization bridges scripts: guþ reaches *gudą through Gothic 𐌲𐌿𐌸. lang scopes the match to one attested language; a leading asterisk (*bogъ) looks a reconstruction up directly. A lemma with NO crosswalk path falls back to the dictionary shelf (nabu_define's own lookup): the reply then carries dictionary_entries (the nabu_define payload shape — a prose etymological article like Vasmer's still answers) plus an explanatory note; a genuine total miss enumerates the crosswalk's live shelves. Cognate lists are bounded (attested first, 20 shown) with honest totals; nabu etym (CLI) is unbounded. |
| nabu_parallelsA | 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). |
| nabu_cognatesA | Cognates-in-parallel over the local nabu corpus: verses of a registered alignment work where witnesses in TWO OR MORE languages use reflexes of the SAME reconstruction root — Gothic salt ~ OCS соль under PIE *sḗh₂l in the salt saying (Luke 14:34). The alignment hub (nabu_align) supplies the verse columns; the Wiktionary reconstruction crosswalk (nabu_etym) supplies the lemma→root closure over the shelf-visited multi-hop walk (got→*saltą→*sḗh₂l←*solь←chu). target is a work id (batch the work) or a citation/chapter/book ref; langs restricts to ≥2 named languages (e.g. ["got","chu"]). Each group carries the verse ref, the root (headword, SHELF language, gloss, license — PRESERVE license fields when quoting), and per-language witness words (lemma, attested surface forms, attesting documents with licenses, and a borrowed flag: true = the crosswalk marks this witness's descent a loan — hlaifs ~ хлѣбъ(borrowed:true) at *hlaibaz; null = not yet flagged either way). READ THE SHELF for unflagged edges: a meet at gem-pro involving a Slavic witness is very possibly a BORROWING, not common descent; ine-pro meets are the inheritance signal. Corpus-common words are suppressed with an honest count (all lifts; frequency is a coarse proxy and some common words survive). Recall is bounded by Wiktionary coverage (~1/3 of Gothic, ~1/5 of OCS gold lemma types reach any proto entry) and by gold lemmatization (~10% of the corpus): no hit is absence of evidence, not evidence of unrelatedness. Bounded (default 10 groups, max 50) with honest totals. |
| nabu_linksA | Batch-mined cross-reference edges touching a passage/document urn — the links journal (kind=parallel from nabu parallels --batch; kind=formula from formulas --batch, a star per refrain whose detail carries the gram and score its count; kind=cognate from cognates --batch, cross-language witness pairs whose detail carries the meet: ref · root [shelf] — a gem-pro shelf under a Slavic witness suggests a borrowing; kind=reuse from the KITAB text-reuse import, UPSTREAM-computed pairwise Arabic alignments whose detail carries the milestone/offset spans verbatim). READS ONLY what a batch run already persisted: for on-the-fly discovery use nabu_parallels; an empty result means no batch has covered this urn, NOT that no parallel exists. Edges come back grouped by kind, both directions (direction=out: this urn's anchor probe discovered the counterpart; in: another anchor found this urn), each counterpart resolved to document title/language/license_class/source (null when no longer in the catalog — edges are urn-keyed and outlive rebuilds). runs cites the producer run(s): producer, scope, params, code_version, date — every edge's provenance. Bounded per kind (default 20, max 100) with an honest note; PRESERVE the license fields when quoting. |
| nabu_charA | The sign/character desk card (P65/P68): ONE glyph or sign identity in, the full held identity out — the same frozen contracts as nabu char --json. Dispatch by input: a CUNEIFORM glyph (𒊬, compounds included) or sign name/value/list number (SAR · szesz · idx — trailing x reads as ₓ · MZL535 · bare 852 across every held list) serves the Oracc Sign List card: name, @aka, MZL/LAK/ABZL/HZL/ŠL concordances, values by language, CDLI meaning glosses, Wiktionary senses, variant forms, corpus counts; an ambiguous value lists ALL candidate signs, never one silently. An EGYPTIAN HIEROGLYPH (𓅃) or Gardiner-style code (G5, N35) serves the Unikemet card: catalog code, description, function, phonetic value, JSesh/Hieroglyphica/IFAO concordances, aes attestation. The Han character card is CLI-only for now — answered with a note (nabu_define serves Han dictionary entries meanwhile). Absent data is null/[], never a placeholder. Every card names its reference spine — source, license_class, license (OSL CC0, Unikemet Unicode License) — and attribution lists every contributing dataset; PRESERVE them when quoting. |
| nabu_placeA | The place desk (P44-2; v2 P66-2): one ancient place — resolved through the LOCAL Pleiades gazetteer dump or the derived multi-gazetteer place index — plus the library's holdings AT that place, per source. query is a Pleiades numeric id, a pleiades.stoa.org/places URL, a NAMESPACED ref (tm:2810, cigs:GIR — the tm/cigs gazetteers), or an EXACT place title (case-insensitive; "Segesta" works, "Seges" does not — no fuzzy matching anywhere, by design; homonym titles return one card each). Holdings count live documents whose parsers captured that upstream-asserted Pleiades id (the epigraphic sources: isicily, edh, iip, itant) — aggregate counts only; read the texts with nabu_search/nabu_show. An honest labelled unlinked tail counts id-LESS documents whose captured findspot TEXT mentions the name (exact substring) — never merged into the id-matched holdings. Degrades honestly when the gazetteer dump is not on this box: a numeric id still counts holdings (the catalog side needs no dump, the card is just fact-less); a NAME lookup needs the dump and says so. Coordinates are display facts — no maps, no coordinate math. A card serving gazetteer facts carries attribution (the gazetteer's source slug, license_class, verbatim license, and the place's upstream uri) — PRESERVE it when quoting the facts (Pleiades is CC BY 3.0). |
| nabu_signsA | The cuneiform sign desk (P53-2): ATF transliteration resolved token by token through the local Oracc Sign List into sign identities — value → sign name → Unicode codepoint(s). Give EXACTLY ONE of: urn — a passage or document urn from the ATF corpora (cdli/oracc/ebl/etcsl; e.g. urn:nabu:cdli:p469841 — language read from the row, the catalog opened read-only) — or text — raw ATF transliteration (lang optional). C-ATF ASCII folds apply (sz→š, s,→ṣ, t,→ṭ, u2→u₂); dialect: "etcsl" adds the ETCSL romanization (c→š, j→ŋ), auto-selected for etcsl urns. Every token carries ONE honest status: deterministic · qualified (valueₓ(SIGN), the explicit sign resolved) · ambiguous (ALL candidate signs listed, never one silently) · no-codepoint (sign resolved, honestly unencoded upstream) · broken (x, [...]) · unknown (not in the OSL — said plainly). Determinatives are unbraced and flagged. The sign list adds IDENTITY, not curriculum. Bounded (default 40 lines, max 200); the restricted-exclusion stance applies to urn mode. sign_list carries the OSL license envelope; urn mode also carries the text's license_class. |
| nabu_clarifyA | The reference normalizer: give a partial, misspelled, or half-remembered work or passage reference — a title prefix ("Ilia"), a misspelling ("Illiad"), a title plus citation ("Iliad 1.1"), or a full/partial urn — and get an honest reading of it: is_ref (does it name held text: a urn, or an EXACT document title [+ citation]), resolved_urn ONLY when it parses UNIQUELY (open it with nabu_show), ref (passage · document · citation_prefix · range, with license fields), structure (what a deeper citation looks like there: passage count, first/last citation, depth, an example urn and a range example), and completions — typed CANDIDATES {title, key, type: document|source|lemma|place, is_primary (the matched name is the primary title, not an alias), match: exact|prefix|token|fuzzy (a misspelling guess, said so), source, language, license_class; present-only detail, ref_urn}. Never a silent guess: two editions sharing a title, or a citation several hold, resolve to NOTHING and list every reading (ref_urn each). Diacritics optional (οδυσσεια finds Ὀδύσσεια). Backed by a precompiled title index; when it is not built the note says so and urn input still resolves. Bounded (default 10, max 50). |
| nabu_statusA | Coverage of the local nabu corpus: per-source document/passage counts and last-sync recency, passage counts by language and by license class, index state, and what is excluded by default (research_private/restricted). Call this to interpret an empty search — is the language, source, or period even ingested here? — before concluding a text is unattested. Takes no arguments. |