Data engineering

The 170M Judgments Problem: How to Structure PRC Court Data for AI

China has published the largest body of court decisions in the world — more than 170 million judgments, and still growing. For a legal AI team building China coverage, that number reads like an asset. In practice, raw volume is closer to a liability. A pile of 170 million heterogeneous documents is not a corpus; it is a sourcing problem, a cleaning problem, and a retrieval problem stacked on top of each other. The hard part of Chinese legal AI was never getting the text. It is turning the text into something a model can retrieve, filter, and cite without lying.

This piece walks through what actually stands between a raw judgment dump and an AI-ready corpus: the shape of the source material, why scale makes every cleaning decision harder, the structuring pipeline, the fields that matter, and what to demand from any vendor that claims to have done the work.

What a raw Chinese judgment actually looks like

Chinese judgments have one enormous advantage and several practical traps. The advantage: they are highly formatted. Courts draft to standardized conventions — a caption with the parties and case number, procedural history, findings of fact, reasoning, the operative holding, and the bench. That regularity is exactly why the corpus is so amenable to structured extraction; it is the single biggest reason Chinese case law is more tractable at scale than free-form text from many other jurisdictions.

The traps sit underneath that regularity:

Why volume makes everything harder, not easier

It is tempting to treat 170 million as a marketing number. For an engineering team it is a constraint. Three things break at that scale that would be trivial at 170 thousand:

In other words: the more documents you have, the more the value depends on structure, because the cost of disorder scales with the pile.

The structuring pipeline, layer by layer

Turning raw judgments into an AI-ready corpus is a pipeline, not a single step. Each layer makes the next one possible.

LayerWhat it doesWhat breaks without it
1. NormalizationClean text, fix encoding, standardize layout, strip boilerplate, repair OCR artifactsDownstream extraction trips on noise; retrieval matches garbage
2. Field extractionPull case number, court, date, document type, cause of action, parties, statutes cited, outcome out of the prose into fieldsYou can't filter, facet, or cite — only full-text search blindly
3. De-duplication & versioningCollapse reposts, link instances of the same matter, keep the authoritative versionInflated counts, contradictory results, skewed training distributions
4. Taxonomy normalizationMap the cause-of-action (an-you) vocabulary to a controlled, consistent scheme; classify document types"Same" cases scatter under variant labels; slicing by issue is unreliable
5. Citation & linkingResolve statutory references and stable IDs; keep a link back to the source documentNo grounding — retrieved passages can't be traced or verified
6. Cross-lingual layerEnglish query, English summaries and field labels mapped to the Chinese sourceEnglish-native teams can't search or read; the corpus stays locked behind language

None of these layers is glamorous, and that is the point. The differentiator in Chinese legal data is not who can crawl the most pages; it is who has done layers 2 through 6 correctly across the whole corpus. That is the same engineering problem we frame from the buyer's side in Building China Coverage Into Your Legal AI.

The schema: fields an AI corpus has to expose

A judgment is useful to a model only when the things a lawyer would filter on become things a query can filter on. At minimum, a structured PRC corpus should expose:

Expose those fields cleanly at 170M scale and the corpus stops being a search box and becomes infrastructure: you can facet by court and year, isolate a cause of action, weight by authority, and ground every answer. We go deeper on the field model and integration patterns in our Chinese case law API structure walkthrough.

Citation grounding is the whole point

For legal AI, the difference between a usable system and a dangerous one is whether every surfaced fact resolves to a real document. A retrieval-augmented system that can show case number, court, date for each passage is defensible; one that paraphrases plausible-sounding Chinese law from model weights is a liability waiting for a malpractice question.

Grounding is not a feature you bolt on at the end — it is a property of the data. It requires clean full text (layer 1), stable IDs (layer 2), and a preserved link back to the original judgment (layer 5). If those are missing, no amount of prompt engineering will make the answers traceable. This is why "we have the documents" and "we have a corpus your AI can cite from" are entirely different claims.

Compliance note: published Chinese judgments retain party names while redacting personal identifiers, and cross-border use is structured around the Personal Information Protection Law and the Data Security Law. This is informational background, not legal advice — structure any licensing arrangement with qualified counsel.

What to demand from a structured corpus

If a vendor offers you Chinese case law, volume is the least interesting thing they can tell you. These are the questions that separate a data pile from an AI-ready corpus:

  1. Which fields are extracted, and how accurate are they? Ask for the schema and a measured accuracy figure on case number, court, cause of action, and outcome — not a claim, a number.
  2. How is de-duplication and versioning handled? Same matter across instances should be linked, not double-counted.
  3. Is the cause-of-action taxonomy normalized? You should be able to isolate a practice area without chasing label variants.
  4. Does every record link back to the source? Grounding is non-negotiable for legal use.
  5. What does the English layer cover — query, summaries, fields, or all three? Translation of a few thousand documents is not coverage.
  6. How is the corpus delivered and updated? Bulk to seed, API to serve, incremental sync to keep it fresh.

The bottom line

The 170M number is real, and it matters — no other jurisdiction publishes case law at this scale. But the number is the raw material, not the product. The asset is what survives normalization, extraction, de-duplication, taxonomy, citation linking, and a cross-lingual layer, measured and maintained across the whole pile. That is the work behind a corpus an AI team can actually build on, and it is the work behind SinoVerdict: a structured, machine-readable corpus of more than 170 million Chinese judgments, with English query and summaries, structured fields, and cited links back to the original documents — delivered as a bulk dataset, a REST API, and an MCP server.

See the structure, not just the size

Request a trial API key and a corpus coverage report — including the field schema and a sample of structured records — to evaluate the corpus against your own retrieval and grounding tests.

Request trial access & coverage report

Or email chenjiaxin@wenshucha.com · See how delivery works

Frequently asked questions

Why isn't a large volume of Chinese judgments enough for legal AI?

Volume is necessary but not sufficient. Raw text arrives as heterogeneous documents with inconsistent layouts, duplicates and amended versions, redaction artifacts, and metadata buried in prose. An AI system can't reliably retrieve, filter, or cite over that without a structuring layer that normalizes the text, extracts stable fields (case number, court, date, cause of action, outcome), removes duplicates, and links each record back to its source. At 170M documents these problems compound — so the engineering of structure is what turns a pile of files into an AI-ready corpus.

What fields should a structured Chinese case law corpus expose?

At minimum: a stable record ID and the official case number (an-hao), the deciding court and its level, the document type (judgment, ruling, mediation, enforcement), the date, the cause of action (an-you), de-identified parties, the procedural posture, the statutes and articles cited, and the operative outcome — plus full clean text segmented into facts, reasoning, and holding, and a citation field that resolves to the original document.

Why is structuring Chinese judgments harder than US or EU case law?

Scale: a public corpus over 170M documents means every cleaning rule must hold across enormous heterogeneity. Sourcing: documents come from many courts and publication batches with differing formats and some OCR or encoding noise. Language and taxonomy: the cause-of-action system is a controlled Chinese vocabulary that must be normalized and mapped to English, and SPC redaction rules change how entities resolve. None of it is insurmountable — it's why structure, not access, is the real bottleneck.

What is citation grounding and why does it matter?

Grounding means every fact or passage a model surfaces resolves to a specific source document with a stable identifier such as case number, court, and date. For legal AI it's the difference between a defensible answer and a hallucination. A structured corpus supports it by keeping clean full text, stable IDs, and a link back to the original judgment, so a retrieval-augmented system can show its work and a lawyer can verify it.

What does SinoVerdict provide?

A structured, machine-readable corpus of more than 170 million Chinese court judgments, with English-language query and summaries, structured case fields, and cited links back to the original judgments. Delivery is a bulk dataset, a REST API, and an MCP server for Claude, ChatGPT, and Cursor, with daily updates available. A trial API key and corpus coverage report are available on request. Clients include LexisNexis and China's leading legal databases. Informational background, not legal advice.