Developer API ยท v1.1

Structured Evidence

Structured evidence is a machine-readable explanation of a verdict. Instead of only a prose message, you get the exact cited-vs-found comparisons the engine performed.

The shape

"evidence": {
  "comparisons": [
    {
      "attribute": "year",   // the legal attribute compared
      "cited":     "2001",   // the value as cited (string | null)
      "found":     "1999",   // the value in the resolved authority (string | null)
      "match":     false     // whether the two agree
    }
  ]
}

Iterate comparisons to render an “expected vs. found” view. The mismatches are simply comparisons.filter(c => !c.match).

Which attributes can appear

AttributeCompares
yearCited decision year vs. the authority’s.
courtCited court vs. the deciding court.
caseNameCited case name vs. the resolved name.
pageCited start page vs. the authority’s start page.
reporterCited reporter vs. the resolved reporter (federal-reporter citations).
pinpointPinpoint (pin-cite) mismatch, when recorded.

attribute is an open vocabulary, so tolerate unknown values, as new attributes may be added additively over time.

The one rule that matters: absence ≠ mismatch

A missing comparison does not mean the values disagree. It means the engine did not perform that deterministic comparison on this citation’s verification path. Never infer a mismatch (or agreement) from an attribute that is absent.

Concretely, an attribute is omitted when there was no clean, deterministic comparison to report, for example:

So: read match: false as “the engine compared these and they disagree.” Read no comparison as “the engine did not compare this attribute here,” nothing more.

Why volume is intentionally absent

You will never see attribute: "volume". The engine performs no deterministic volume comparison: a volume never diverges on a resolved record because the lookup is keyed on the full citation. Rather than fabricate a comparison the engine never runs, GhostCite omits it. This is a deliberate contract decision, not a gap.

How to consume comparisons

evidence is optional: it is omitted entirely when no comparison underlies a verdict (for example, a citation that resolved to nothing). Its absence means “no structured comparison available,” never “withheld.”