Gage Intelligence

Library API

Live API serving 6 layers of knowledge analysis. Every response cites primary sources.

https://library.gagegreengroup.com

Layer 1 — Raw Text

GET /api/v1/ask Search primary source passages

Returns chronological primary source passages matching your query. Not generated summaries — real text from real books.

Parameters

q (string, required) — search query
Example: /api/v1/ask?q=fiduciary+duty

Response

{
  "query": "fiduciary duty",
  "passages": [
    {
      "text": "Fiduciary duties are duties enforced by law...",
      "source": "Pomeroy Equity Jurisprudence",
      "department": "equity trusts",
      "relevance": 0.94
    }
  ],
  "total": 12
}
Loading...
GET /api/v1/catalog List all texts by department

Returns the full catalog. Optionally filter by department.

Parameters

department (string, optional) — filter by department name

Layer 2 — Linguistic DNA

GET /api/v1/etymology/{term} 5 dictionaries + etymology chain

Compares definitions across 5 dictionaries spanning 1828–1995. Traces the linguistic origin through languages (English → Old English → Norse → Proto-Germanic).

Response

{
  "term": "trust",
  "found": true,
  "dictionaries": {
    "Webster's 1828": "Confidence; reliance...",
    "Bouvier's 1856": "An obligation on a person...",
    "Webster's 1913": "Assured reliance on the character...",
    "Black's 1968": "A right of property, real or personal..."
  },
  "chain": [
    {"form": "trust", "language": "English"},
    {"form": "trost", "language": "Middle English"},
    {"form": "traust", "language": "Old Norse"},
    {"form": "trausti", "language": "Proto-Germanic"}
  ]
}
Loading...
GET /api/v1/drift/{term} Definition evolution over time

Tracks how a legal or philosophical term's meaning changed across centuries. The delta between definitions reveals when and how meaning was altered.

Loading...

Layer 3 — Temporal Forensics

GET /api/v1/timeline Temporal coverage across centuries

Master timeline of all dated texts in the library. 380 BCE to 2026 CE. Identifies temporal gaps where knowledge may be missing or suppressed.

GET /api/v1/time-traveler/{concept} Concept evolution across centuries

Traces how a concept appears across centuries. Shows which eras discussed it most and where it disappears.

Loading...

Layer 4 — Knowledge Genome

GET /api/v1/genome/{concept} 10 computable properties, scored 0-100

Computes 10 knowledge properties: frequency, tradition spread, era range, polarity, citation depth, suppression index, bridge score, convergence count, rhythm period, gender ratio. Returns a composite genome score 0-100.

Loading...

Layer 5 — Suppression Detection

GET /api/v1/suppression 91 authors tracked, 26 gaps detected

Identifies authors frequently cited by texts in the library whose own works are absent. A text referenced hundreds of times but missing from every repository is a signal worth investigating.

GET /api/v1/contradictions/{concept} Conflicting claims across sources

Searches all texts for a concept, extracts claims, and identifies where sources from different departments or eras disagree.

Loading...
GET /api/v1/power-structure/{doctrine} Who it protects vs constrains

For any legal or philosophical doctrine, maps protective language ("grants", "empowers", "rights of") vs restrictive language ("prohibits", "subject to", "liable"). Reveals whose interests each doctrine serves.

Loading...

Layer 6 — Knowledge Patterns

GET /api/v1/bridge Cross-department bridge network

Returns the 78 irreplaceable bridge authors — nodes that, if removed, break entire knowledge chains between departments. Also returns the strongest cross-department citation links.

GET /api/v1/predictions Gap predictions from graph analysis

Returns all gap predictions generated from citation graph asymmetries. Each prediction identifies missing knowledge — texts that should exist based on the patterns in the graph.

Core

GET /api/v1/status Library statistics

Returns current library statistics: text count, departments, graph nodes/edges, dictionaries cached, prediction count, endpoints.

Loading...
GET /api/v1/acquisitions Self-expanding library log

Lists texts automatically acquired from Archive.org when user queries reveal gaps. The library grows from every question asked.

GET /api/v1/graph/download Full citation graph JSON

Downloads the complete citation graph used by the Knowledge Map visualization.

All endpoints return JSON. No authentication required for read access. Rate limit: 60 requests/minute.

Questions? library@gagegreengroup.com