Reference normalizer
nabu_clarifyNormalize partial, misspelled, or half-remembered work and passage references into honest candidates and unique URNs, flagging ambiguous matches instead of guessing.
Instructions
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).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum candidates returned. | |
| query | Yes | The reference to normalize: a title (or its prefix/misspelling), a title plus citation ("Iliad 1.1"), a source name/slug, a dictionary headword, a place name, or a full/partial urn. | |
| 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. |