Legal assistant: case review with personal data masked before any external model

A lawyer gets a structured review of court materials. Personal data is checked before any text leaves the lawyer's computer.

Legal practice

  • Next.js
  • FastAPI
  • SQLite
  • Local data masking
Demo mockup of text redaction: the original contract dispute text on the left, the masked version on the right, the mask list and a send button.

Case No. 2026-014

Contract dispute · equipment supply

Original text

On 14 March 2026, sole trader Igor Kovalev and Northern Store-7 LLC signed supply contract No. 17/03. The supplier did not deliver the equipment on time. The buyer sent a claim to +7 (900) 000-00-00 and asked for the advance back within ten days. The representative, Irina Sokolova, acts under a power of attorney; her passport is 1234 No. 000000.

Redacted text

On 14 March 2026, sole trader [NAME_1] and Northern Store-7 LLC signed supply contract No. 17/03. The supplier did not deliver the equipment on time. The buyer sent a claim to [PHONE_1] and asked for the advance back within ten days. The representative, [NAME_2], acts under a power of attorney; her passport is [DOC_1].

Replaced: 4

Only the redacted text goes to the AI.

Send for analysis

Problem

A lawyer has to read a court decision and the case file, match the facts to the court’s findings, and look for grounds for appeal. The documents are full of personal data about the client and third parties. They cannot go to an external service as they are, and removing that data by hand is slow and easy to get wrong.

Solution

  • The case is stored on the lawyer’s computer. Text-based PDF and DOCX files are accepted.
  • Before any request to a model, the system finds personal data and shows every fragment for review.
  • The lawyer fixes missed items and false alarms, then confirms this exact version of the text.
  • Only the confirmed, masked text goes to the external model. The mapping table stays with the lawyer.
  • The result can be exported to DOCX: the case summary, possible arguments and references to fragments of the decision.

Outcome

The lawyer gets a draft analytical document grounded in the text. Conclusions and any appeal remain the lawyer’s work. The system does not replace a legal opinion and does not write a complaint ready to file. This case describes the process and how the system is built. It does not claim results on real cases.

Want the same?

We will look at your task and tell you what is worth automating. The first review is free.

Start a project