Harvard NeuroLaw Library Engineering

Brain science shows up in courtrooms all the time now, but it's written for journals, not for the people who have to act on it. The CLBB NeuroLaw Library is thousands of peer-reviewed articles, amicus briefs, court cases, and expert affidavits on neuroscience and law, open to anyone with no account or paywall. When a document is published, the platform uses Google Gemini to write four more versions of it at different reading levels. Anyone can move one slider and read the same source at the depth they need, with the original always one click away.

Metrics

5

reading levels per document. The original plus four Gemini rewrites, behind one slider.

Thousands

of resources. Articles, amicus briefs, cases, and expert affidavits, each made multi-level automatically.

5

citation formats for every resource (APA · AMA · MLA · NLM · Bluebook).

Free

and fully public. No account, no paywall, no restriction.

Read it at your level

Open a document and you get a Comprehension Slider. Drag it and the same text re-renders at a different reading level, from the original down to plain 5th-grade language. Every level is generated ahead of time and stored at publish, so switching is instant. The original sits at the end of the slider, so the text you'd actually quote is always one drag away.

Original:
"Petitioner contends that the adolescent prefrontal cortex, being incompletely myelinated, materially impairs executive function and impulse control relevant to culpability."

Simplified:

"The teenage brain is still growing. The part that handles planning and self-control isn't finished yet, and that matters when deciding how responsible a young person is."

Sector

  • Education
  • Research
  • Legal
  • AI

Scopes

  • Branding
  • UI/UX
  • Front-end
  • Back-end
  • LLM integration
  • Search

Technologies

  • Next.js
  • React
  • Contentful
  • GraphQL
  • Typesense
  • Google Gemini
  • Vercel
Case study image 0

The problem it removes

Neurolaw research shapes sentencing, competency rulings, and appeals, but almost nobody it affects can read it. The audience is wide: defense attorneys, prosecutors, judges, advocates, clinicians, families, incarcerated people. The writing is narrow: dense, citation-heavy, one expert reading level. The old options were both bad. Publish the original and lose most readers, or hand-write simpler versions that don't scale and go stale on the next edit. The content was also split across document types with different metadata, so searching it meant knowing what each thing was called. The goal: every document readable at the reader's level, the whole library searchable from one box.

Case study image 0

How it works

Two phases, kept apart on purpose. The slow AI work runs once at publish. Reading is fast.

Generation (at publish). An editor flips a generate flag and publishes. A webhook fires, the document body is converted to clean Markdown, and Gemini 2.5 Flash rewrites it at four reading levels under fixed rules: third person, no citations, keep the structure, about five paragraphs. A second pass pulls keywords. Each version is written back to Contentful as Rich Text, the original untouched, and the flag turns itself off so the job is safe to repeat. A separate webhook syncs the document into Typesense.

Reading (at request). Pages are static. The slider swaps pre-stored text with no model calls. One search covers every document type, with typo tolerance and synonyms. Filters cover type, state, court, circuit, jurisdiction, year, and topic. Every resource has citations in five formats, plus highlighting, notes, and print.

Case study image 0

Can you trust the answer

The original is never replaced. The AI versions help people understand a document, they don't stand in for it. The original is always on the slider, and the quote and citation tools point back to it. You read the simple version, you cite the original.

Editors stay in control. Nothing generates automatically. An editor opts each document in, reviews the output in Contentful before it ships, and the rewriting rules live in an editable prompt, not in model weights.

Why we built it this way

Reading needs to feel instant, and documents are read far more than they're edited. Generating once keeps reading free, cost predictable, and output reviewable.

Case study image 0

The hard part, stitching the journey

The hard part wasn't calling a model. It was making four kinds of documents act like one library, without damaging the source.

Articles, briefs, cases, and affidavits carry different metadata. They had to fit one model that a single search, one filter set, and one citation tool could serve, while keeping the details lawyers filter on. That mapping is what makes "every Ninth Circuit case since 2018, in plain language, with a Bluebook citation" a single click.

The rewriting adds its own problem. Each document moves from Rich Text to Markdown to Gemini and back, and has to come out with its structure intact. Assets are stripped before the model sees them, headers are locked down, and the result is written to its own field so the original is never overwritten.

Why it worked

The model was the easy part. The real work was getting thousands of documents into one place and making each one readable at any level. The library now adjusts to whoever opens it, the original and a citation always within reach, and the team keeps full control. Because the heavy work runs once at publish and the rules live in editable prompts, it keeps growing without re-engineering.

Case study image 1

"Monogram was integral to designing the CLBB NeuroLaw Library. They are the best of the best." [GET REAL QUOTE]

Stephanie TabashneckFounding Director, CLBB NeuroLaw Library