PubIDPubID

Library

API reference

allPartsNorm

buildArtifact

checkCase

Corpus

flavors

CorpusBackedIdentifier

fromHash(hash)

Deserialize the canonical hash; the idempotency gate relies on it.

render()

The corpus row’s canonical human spelling — toString() delegates here.

toHash()

The canonical serialized form - compared byte-exactly against the corpus identifier record.

toHuman()

The canonical human spelling.

toString()

String coercion of the identifier — the canonical human spelling.

toUrn()

The URN; undefined when the flavor emits none.

CorpusCase

expect

id

identifier

input

Debt/negative rows carry the raw input instead of representations.

nonNormalizedAliases

notes

render_unreparseable

The rendered human does not re-parse in the reference (canonical-nil):

representations

review

Contract-linked expectation flag (tests/_contracts.yaml); never gated.

roundtrip

Present only on exception (a documented round-trip failure).

style

corpusModeImplementation

ErrorExpectation

code

Neutral rejection code - never an implementation class.

exactMatch

Expectation

error

FlavorImplementation

parse(input)

Parse a canonical human form; must throw on a bad input.

parseUrn(urn)

Inverse of toUrn for flavors whose reference implements a URN

FlavorPayloads

cases

Non-underscore payload files: canonical cases + aliases.

debt

tests/{flavor}/_debt.yaml - pass lines the reference cannot parse.

negatives

tests/{flavor}/_negative.yaml - fail fixtures decoded by the exporter.

status

FlavorStatus

clean

knownMismatches

knownSchemaErrors

notes

grammarImplementation

Identifier

equals(other)

Ruby ==: canonical equality skipping equalityIgnored attributes

fromHash(hash)

Deserialize the canonical hash; the idempotency gate relies on it.

render()

The renderer body every flavor writes; toString() delegates here.

toHash()

The canonical serialized form - compared byte-exactly against the corpus identifier record.

toHuman()

The canonical human spelling.

toPubidUrn()

The pubid-scheme URN (urn:pubid:…) from the flavor schema table; BaseIdentifier provides it.

toString()

String coercion of the identifier — the canonical human spelling.

toUrn()

The URN; undefined when the flavor emits none.

isErrorCase

isQuarantined

isReview

laneKeys

LaneKeys

all_parts

The all-parts lane: the parsed part (and subpart) stripped from the

dated

The dated lane: the normalized canonical (uppercased, de-spaced).

undated

The undated lane: every colon-year not followed by a dash is gone

laneKeysFrom

laneKeysOf

LaneKeySource

toHash()

The canonical component record (the wire shape).

toHuman()

The canonical human render.

loadBundledCorpus

loadCorpus

norm

parse

parseArtifact

ParseError

flavor

The flavor the parse ran under, when one was named.

input

The rejected input.

parseOk

ParseResult

canonical

The canonical human spelling (the normalized render).

components

The structured components — the reference’s own canonical toHash

flavor

The flavor the parse ran under.

input

The input as given.

keys

The dated / undated / all_parts lane keys.

part

The structural part: the identifier’s own part facet, else the

urn

The URN; undefined when the flavor emits none.

year

The year facet, string-normalized; undefined when undated.

PendingRegistry

has(id)

static load(path)

render

Representations

human

The canonical spelling AND the canonical parse input.

urn

Emitted URN, absent when the reference emits none.

runCorpus

runFlavor

Spelling

rounds

Render/parse rounds the spelling needs to reach the canonical human;

spelling

style

structuralPart

subsetMatch

undatedNorm

valueMatch