The Legal Taxonomy Field Guide
HAQQ Legal AI · public edition

Turn with the arrow keys, a swipe, or the page corners.

HAQQ Legal AI · a field guide

The LegalTaxonomy

Legal concepts, the law beneath them, and the machine that keeps them honest

HAQQ Labs · public edition · October 2026

How to read this book

Every chapter is one spread. The left page tells the story. The right page is a plate: a drawing that assembles itself when you turn to it.

Labels on every figure

illustrative shows a shape, not a fact from the graph   reported how other systems describe themselves

Public edition

This is the public edition of an internal HAQQ field guide. It keeps the chapters on method. The graph's own data stays closed, so no figure here is a count read from it.

The graph is a research project. Most concepts still carry an open review flag, and each country's entries need sign-off from a lawyer there before anyone relies on them. It is not legal advice.

HAQQ Legal AI

The Legal Taxonomy

A field guide to how HAQQ classifies the law, in nine plates

HAQQ Labs

Beirut · October 2026

Contents

IThe unit is a concept5
IIAnatomy of a concept7
IIIThe relations9
IVAcross borders11
VA children's curriculum, filled with law13
VIHow a concept is verified15
VIIThe radar17
VIIIBedrock: the law layer19
IXNeighbouring species21
Glossary · Sources23

About this edition

The taxonomy is a graph of legal concepts. Each one is a single teachable idea, linked to what you must learn first, to its counterpart in other countries, and to the official text behind it.

This book explains how that graph is built and checked. It leaves out what stays inside HAQQ: the graph's figures, its coverage, and the working record of the team that builds it.

Read it in order

Plates I to IV describe the graph. V gives its ancestry. VI to VIII show how it is checked against the law and kept current. IX sets it beside other ways of classifying law.

Plate I

The unit is a concept

Biology classifies species. Westlaw classifies headnotes. Libraries classify shelves. The HAQQ Legal Graph classifies concepts: one teachable legal idea, such as consideration, promissory estoppel or the UAE end-of-service gratuity.

Each concept is a node. It links to what you must understand first, to how it relates to other concepts, to its equivalent in other countries, and to the authority behind it.

Concept types: doctrine, rule, standard, procedure, skill, instrument.

What it is for

Grounding. When HAQQ answers a legal question, the graph says which concepts are involved, what the user must know first, the equivalent rule elsewhere and which law backs it.

RANK, BROAD TO NARROW Jurisdiction scopea country or zone Legal areacontract, labour Clusterformation Conceptone idea Authoritythe law

Fig. 1. The ranks are a browsing tree. The working structure is a graph: a concept links sideways across areas and countries. illustrative

Plate II

Anatomy of a concept

Language-model agents drafted the concepts in parallel, one agent per area or country. Every record carries the same fields, so a second judge can test it.

  • Description and a worked hypothetical.
  • A reasoning prompt: the question that proves you hold the idea.
  • Prerequisites, each hard or soft, with a one-line reason.
  • Authorities, with a "link verified" mark.
  • Provenance: authored, normalized or mined, with evidence.
  • Review flags, the concept's own warnings.
Rule from the method guide

Make the unit one teachable idea, give every relation a reason and a strength, give every term a source, and run a validation script on every change.

Promissory estoppel England and Wales contract · doctrine DESCRIPTIONA relied-on promise can bindwithout consideration HYPOTHETICALLandlord halves the rent,then sues for the rest PREREQUISITE · HARDConsiderationreason: it is the rule it relaxes AUTHORITYThe leading cases, each witha link-verified mark flag: national-lawyer-review-required PROVENANCE: status, basis, dateREASONING PROMPT

Fig. 2. The shape of one record. Values are written for this plate, not read from the graph. illustrative

Plate III

The relations

Prerequisites say what to learn first. They are checked to contain no cycles, so every concept has a learning path back to first principles.

Typed relations say how two concepts stand to each other: refines, contrasts-with, exception-to, commonly-confused-with, and the largest family by far, equivalent-to across borders.

Why prerequisites matter

They turn the graph into learning paths. "What do I need before specific performance?" becomes a walk along the prerequisite links.

consideration promissory estoppel variation contrasts-with equivalent-to
RelationSays
prerequisitelearn this first
equivalent-tosame rule, other country
refinesa narrower case of
contrasts-witheasily set against
exception-tocarves out of
commonly-confused-withoften mistaken for

Fig. 3. An illustrative neighbourhood, and the six kinds of link. illustrative

Plate IV

Across borders

Every equivalent-to link crosses a jurisdiction boundary. Concepts stay native to their country and are linked, never merged or translated.

Lebanon's notice period (مهلة الإنذار) is linked to Oman's, not translated into it. The two rules play the same role, and each keeps its own wording, conditions and authority.

Scope

A scope is any system with its own law: a country, a sub-national system such as a US state, or a free zone such as DIFC, ADGM or QFC.

End-of-servicegratuity · UAE QA SA DIFC OM E&W equivalent-to contrasts-with:redundancy pay

Fig. 4. The shape of the layer, drawn for this plate. illustrative

Plate V

A children's curriculum, filled with law

The shape comes from education. The Marble Skill Taxonomy is an open dataset of what children aged 6 to 12 learn: micro-topics linked by prerequisite edges, each hard or soft, with a reason, aligned to school curricula.

The legal graph kept that edge shape and swapped curriculum standards for official law as ground truth.

What carried over

The shape of a prerequisite: what to learn first, how strongly, and why. Everything a concept says about the law comes from the law.

MarbleLegal Graph
UnitMicro-topicConcept
GroupingSubjects and clustersAreas and clusters
EdgesPrerequisites, hard or soft, with reasonSame, plus typed relations and cross-border equivalents
MasteryEvidence and assessment promptHypothetical and reasoning prompt
TruthCurriculum standardsOfficial law, quote-checked by code
Marble Official law Legal Graph structurecontent

Fig. 5. What came from the classroom, and what came from the law. illustrative

Plate VI

How a concept is verified

Every change must quote the official text it rests on. Plain code must find that quote on the page. A judging model must agree the text supports the change. A refuter agent must fail to break it. Then strict merge gates run.

A change that fails goes to a fixer, which rewrites it from the law and sends it through the same checks again. A concept rejected three times goes to a person.

Why a quote, checked by code

A model can be wrong about what a law says. A quote either is on the official page or it is not, and plain code can tell the difference every time.

1 Checker agentquotes the official text 2 Quote checkplain code: on the page? 3 Judge modeldoes the text support it? 4 Refuter agenttries to prove it wrong 5 Strict mergebuild, validate, health, tests Fixerrewrites from law same checks again 3 rejections: a person

Fig. 6. The verification loop, step by step. illustrative

Plate VII

The radar

Law changes. Every week, one plain-code reader per official gazette looks for new and amended laws, with no agents involved. A heartbeat alert fires if a reader goes quiet.

  • A catch. A gazette publishes a law that amends a labour code. The concepts that rest on the amended articles are checked again through the loop in Plate VI.
  • Commencement. When a law comes into force, the concepts that rest on it are re-checked on that date.

Weekly today; daily is the goal.

amendment new law

Fig. 7. One sweep of the weekly radar. Positions are decorative. illustrative

Plate VIII

Bedrock: the law layer

Under the concepts sits the law itself. Each market's official list of laws is read, every text is fetched, scans are run through OCR, and each law is split into articles.

A concept is grounded in the article it rests on, with a pinpoint and a quote. Repealed or superseded law is kept and flagged, and it never answers.

Sources rule

Only official texts: legislature, gazette, ministry, regulator, court. Aggregators can help find a law but never prove it. Bot challenges and logins are never bypassed.

Conceptone legal idea GROUNDED_INpinpoint + quote Provisionan article Passage HAS_PROVISION Instrumentlaw, decree, judgment AMENDS · REPEALS · REPLACESIMPLEMENTS · CITES, each with evidence Issuer

Fig. 8. The law layer's data model. Every edge carries a trust level, and every passage a source tier, from official to finder. illustrative

Plate IX

Neighbouring species

Westlaw files headnotes under Key Numbers, written by attorney-editors. Lexis tags headnotes with algorithmic topics. The Library of Congress shelves books by jurisdiction. HAQQ classifies concepts and grounds them in official text.

Hard rule

Never ingest another publisher's headnotes, key numbers, topics or citator signals into the graph. Its ground truth is the official text alone.

Open standards to map to: ELI, Akoma Ntoso and ECLI for legislation and case law, and SKOS for linking concepts across schemes.

WestlawLexisHAQQ graph
UnitHeadnoteHeadnoteConcept
Built byEditorsAlgorithmAgents vs official text
BordersUS-wide topicsSameLinked across countries
CurrencyKeyCiteShepard'sWeekly radar
headnote topic concept wording

Fig. 9. What each system treats as its unit. reported

Glossary

ConceptOne teachable legal idea: rule, doctrine, standard, procedure, skill or instrument.
ScopeThe jurisdiction a concept belongs to, free zones included.
PrerequisiteWhat to understand first. Hard or soft, with a reason.
Equivalent-toThe matching rule in another scope. Linked, never merged.
GroundingA verified quote tying a concept to the exact article.
Judge modelA pinned model that checks a change against the text. It judges form, not truth.
RefuterAn agent whose job is to prove a change wrong.
RadarWeekly gazette readers for new and amended laws.
WordingOne dated version of an article.
TierHow far a source can be trusted, 1 to 4.
BitemporalTwo timelines: when the law applied, when we believed it.

Sources

  • The HAQQ field guide to the Legal Taxonomy, internal edition, October 2026. This book is its public edition.
  • The Marble Skill Taxonomy, an open dataset of primary-school skills and their prerequisites.
  • W3C, SKOS Simple Knowledge Organization System, for linking concepts across schemes.
  • European Legislation Identifier (ELI), Akoma Ntoso (OASIS LegalDocML) and the European Case Law Identifier (ECLI).
  • Public descriptions of the Westlaw Key Number System, Lexis topics and the Library of Congress classification for law.

The graph's data, counts and coverage stay inside HAQQ. Nothing in this edition is legal advice.

One teachable idea at a time, each tied to the law it rests on.

HAQQ Legal AI · public edition