Home / Projects / LexViz Explorer

My doctoral research system

LexViz Explorer

A web application that generates maps of legal processes in England and Wales. A user describes a legal problem in plain language. The system identifies the applicable legal process and presents the legal steps as a map that shows who acts, in what order, and by which deadline.

Status
In active development, live at lexvizexplorer.com
Since
August 2025
My role
Research, design and development
Built with
React and TypeScript, three.js, Node.js and Express, PostgreSQL, OpenAI models; tested with Jest and Playwright
Three photos pinned to a cork board: the legal steps of a PIP appeal on the LexViz map, Court 1 in the LexViz town, and chapter 8 of the story at the court door.
Design

Four design commitments

Each decision below addresses one or more of the sixteen design requirements I derived from the literature and from earlier studies.

Progressive disclosure

The map opens on the user's current step, and the Full journey view displays the complete process. Diamonds represent decision points. Deadlines are shown in red with the label "Deadline", so that colour is not the only cue.

Traceable legal sources

Each statement of law links to the official source on which the statement is based. Every 24 hours, the system compares each quoted provision with the official text, character by character, and retains every version when the law changes.

Human approval of legal content

Only a person can approve a statement of law. An approval counts as independent only when two different reviewers have approved the same version.

Accessibility

Every step can be read aloud, and the application is available in four languages.

A second mode

A 3D game in the browser

Since autumn 2026, LexViz Explorer has also offered a second mode: a 3D game that runs in a browser. Users walk or drive to the places where legal problems are resolved, including a Housing Centre, a Rights Library, a post office and a court building with nine courtrooms. I developed nine story chapters in the game that are based on common types of legal problems, such as a parking ticket, a damp flat, unpaid wages, and a small claim that proceeds to a county court hearing. In each chapter, users read the documents, decide what a character should do next, and see why each choice is or is not supported by the law. Chapters can also be played together with friends.

Court 1, a county court room in the LexViz town, seen from the public benches
Court 1, in the LexViz town
Engineering

The codebase

The source code remains in a private repository while the research is ongoing. The figure below summarises the codebase.

What LexViz Explorer is made of, measured on 26 November 2026: 384,043 lines of TypeScript, 146,547 of JavaScript, 2,398 of Python and 989 of HTML and CSS; 1,371 commits since August 2025, 395 test files and 207 design notes.
Open questions

Questions I study with LexViz Explorer

  • How should complex legal pathways be represented without creating false certainty?
  • Which explanations help non-experts understand why a route is available or unavailable?
  • How can process templates be validated, compared and reused across areas of law?
  • Where should AI assist, and where should deterministic rules and human review remain in control?
Next

Evaluation

The next stage of the research is a co-design study and an evaluation with lay users, advisers and legal experts. Both studies are awaiting ethics approval.

The research questions and methods