Home › Blog › Anonymize legal briefs

Anonymize legal briefs before ChatGPT: the lawyer's checklist

To anonymize legal briefs (French written submissions, or conclusions) before ChatGPT, replace the names of the parties, opposing counsel, witnesses and experts with stable labels, along with their contact details, then mask the docket number, the amounts and anything that places the case, and proofread the copy, list of exhibits and metadata included. The guide of the Conseil national des barreaux (CNB, the French national bar council) takes this very example: “The solution lies in pseudonymizing or anonymizing the data” (p. 16, our translation).

Published · Updated · 11 min read

Why anonymize legal briefs before ChatGPT?

Written submissions concentrate the most identifying parts of a file: the client's name and the opposing party's, the facts, the strategy. Under Article 66-5 of the Law of December 31, 1971, “all documents in the file” are covered by professional secrecy. The Règlement intérieur national (RIN, the national internal rules of the bar) also includes “the names of clients” (RIN, art. 2.2). Yet every request sent to a generative AI transmits data to the company that runs it (CNB guide, p. 14).

The practical guide of the Conseil national des barreaux (CNB, the French national bar council), “La déontologie et l'intelligence artificielle,” adopted in March 2026 (1st edition, April 2026), takes written submissions as its very example. To ask an AI to “draft part of the submissions,” it answers: “The solution lies in pseudonymizing or anonymizing the data.” (p. 16, our translation). Its summary of good practices is clear: “Systematically pseudonymize or anonymize data before any use of a generative AI tool.” (p. 18). Its other recommendations are detailed in the CNB guide on AI, point by point.

For written submissions, pseudonymization is the most practical. Each name becomes a stable label: [PERSONNE_1] for the client, [ORGANISATION_1] for the opposing company. The AI keeps track of who does what, and you keep what you need to restore the real names. The guide points out that it is not irreversible, “unlike anonymization” (p. 16). See the difference between anonymization and pseudonymization.

The opposing party's submissions are handled the same way: they also name your client. The guide specifies that the lawyer does not hold the rights to them. The lawyer must therefore check that the AI's terms of use do not allow the provider to appropriate or reuse them (p. 29).

What should you mask in a brief before ChatGPT? The checklist

For each item: where to find it in written submissions, and whether AnonymFiles spots it on its own or whether it is masked by hand, in one click, during review.

Detected automatically, to be checked during review:

To check specifically or mask by hand:

ItemWhere, in written submissionsIn AnonymFiles
Docket number (RG)Header, first page, sometimes every pageTo check, and mask in one click: masked once, it is masked across the whole file
CourtHeader, “May it please the court,” procedural historyTo check: if it places the case, mask at least the city, in one click
Hearing datesHeader, procedural historyTo check; mask in one click if they identify the case
AmountsFacts, claims, operative partBy hand, in one click: no automatic detection
Exhibit referencesCross-references (“exhibit No. 12”), titles in the list of exhibitsNames detected; invoice, contract or claim numbers to check, and mask in one click
Highly identifying factsRare occupation, locally known event, project nameBy hand: it is up to you to spot them

This list and this table describe the detection, not a guarantee: no automatic detection is perfect, and every document is reviewed side by side with the original. Watch for variants of the same name: “Mrs. Durand,” “DURAND” in the heading, “née Martin,” initials. All must get the same label, in every document.

Keep, on the other hand, what the AI needs to reason: the statutes and published case law you cite, the sequence of facts, their legal characterization. An earlier decision handed down between the same parties, however, is masked like the docket number.

Cross-referencing remains. The CNB guide's summary points it out: “Be alert to the risk of indirect identification by cross-referencing data.” (p. 18). It cites amounts and internal project names (p. 20). The docket number (RG), for its part, leads straight to the parties: it is the case's registration number in the general register of the court registry, which also records “the names of the parties” (Code of Civil Procedure, Art. 726). A simple test: would a colleague at the same bar recognize the case by reading the copy?

AnonymFiles, French document anonymization software, is a desktop app coming soon for Apple silicon Macs and Windows: it handles the automatic part of this list, on your computer. It reads text and scanned PDFs (local OCR), Word files (.docx), e-mails (.eml, .msg), spreadsheets (.xlsx, .csv), presentations (.pptx), images, .txt and .md. It spots names of people, organizations, addresses, e-mails, French-format phone numbers, IBANs from nine European countries, private dates and ID numbers. It replaces them with stable labels: the same person keeps the same label across every document. A passage selected during review, such as a docket number or an amount, is masked across the whole file, and nothing is exported without your approval. The mapping table stays on the computer, never in the export. The workflow is detailed, with fictitious submissions as an example, in how AnonymFiles works for a law firm. See also our anonymization software for lawyers, the published detection benchmark and the comparison of anonymization software.

What can ChatGPT do with anonymized briefs?

On a pseudonymized, proofread copy, ChatGPT helps sort, structure and proofread; it replaces neither case-law research nor strategy. A few requests, once the instruction is pasted:

What not to ask it: to set out the strategy of the case, which the CNB guide lists among what a request may not contain (p. 15), or to cite case law without checking: the guide reports 2025 and 2026 decisions pointing to references that could not be found (pp. 28-29). More examples in ChatGPT for lawyers: the 5-step method.

Which areas do people forget? Headers, exhibit list, metadata

How to anonymize the exhibits, scans included?

Exhibits follow the same rule as the submissions: same labels, same checks, and only those the AI needs. A contract filed as an exhibit is handled with our checklist to anonymize a contract before ChatGPT, also written for in-house counsel; an e-mail produced as an exhibit, with the guide to anonymize an e-mail (.msg, .eml).

The exhibits exchanged are often scans: handwritten statements, signed letters, official reports. AnonymFiles reads them through local OCR and erases the pixels of the detected areas; review them side by side, because a stamp or handwritten signature that the OCR cannot read is masked in one click. For your own submissions, start from the Word file or the PDF produced by your word processor: the copy keeps its layout.

For these documents, three options. Do not attach them, if the task does not need them: the CNB guide limits the context to the “data strictly necessary to carry out the task” (p. 16). Retype only the useful passage, then handle it like the rest. Or anonymize the scanned document by hand. The judgment under appeal is handled like the submissions if it is a text PDF: see anonymizing a judgment or procedural documents.

How to check the copy before sending it to ChatGPT?

Check the copy that will be sent, not the original, and in full:

  1. Read the copy on its own. In AnonymFiles, the “copie seule” (copy only) view lets you reread each document in full, as the AI will receive it.
  2. Search for your test words. Run a search (Ctrl+F or Cmd+F) for the client's name and the opposing party's, the city, the street, the docket number, a maiden name. No result should come up.
  3. Test a PDF with copy and paste. If you redacted a PDF yourself, select a blacked-out area, copy it, then paste it into a text editor. If the text reappears, it was only covered: see why a black box leaves text readable.
  4. Do the colleague test. Would a lawyer at the same bar recognize the case? If so, mask more: a date, a place, an occupation.

Which instruction to give the AI, and how to put the real names back?

At the start of the conversation, before the submissions, paste an instruction that protects the labels. For example:

Names and identifying data have been replaced by labels in square brackets, such as [PERSONNE_1] or [ORGANISATION_1]. Keep each label exactly as it is, without changing it, translating it or trying to find out who it refers to. Do not invent any new label.

In AnonymFiles, the “Copier la consigne IA” (copy the AI instruction) button provides these instructions after export. They also ask the AI to restate the file reference in its answer, in the form [DOSSIER_…]. To help the AI write, give a label the name of its role: in AnonymFiles, [PERSONNE_1] can become [PERSONNE_CLIENTE]. Never put real initials in a label.

Once the answer is in, the real names are put back on your computer, never in the conversation. By hand, it is a Find and Replace, label by label. In AnonymFiles, “Réinjecter un résultat” (re-inject a result) accepts the pasted answer or a .txt, .md, .docx or .pdf file, and shows a preview before saving. A Word file is restored in its layout, and grammar is not adjusted: check agreement.

The substantive check remains. The CNB guide asks lawyers to “reread, check and validate every generated content” before sending it to a court (p. 28). Every case-law reference is checked at the source, every fact compared with its exhibit. The AI may also have attributed a fact to the wrong label. For the tasks it can handle on a pseudonymized copy, see ChatGPT and the lawyer's professional secrecy.

Frequently asked questions

How do you anonymize legal briefs before ChatGPT?

On your computer, before sending: replace the names of the parties, opposing counsel, witnesses and experts with stable labels such as [PERSONNE_1], mask their contact details, the docket number, the amounts and anything that places the case, then proofread the whole copy, headers, exhibit list and metadata included. Keep the mapping table at the firm to put the real names back into the answer.

Can you use ChatGPT to draft legal submissions?

For part of them, yes, on a pseudonymized copy: the CNB guide takes the very example of drafting part of the submissions and answers that the solution lies in pseudonymizing or anonymizing the data (p. 16). The lawyer must then reread, check and validate every generated piece of content before sending it to a court (p. 28).

Should briefs be pseudonymized or anonymized before ChatGPT?

The CNB guide allows both. For written submissions, pseudonymization is the most practical: stable labels keep the logic of the file. The mapping table, kept at the firm, then lets you put the real names back into the answer. Anonymization, by contrast, is irreversible.

Can briefs that have already been served go into an AI in plain text?

No. The CNB guide provides no exception: the lawyer may not attach to their request “any file containing all or part of a case file and containing the client's name” (p. 15). Pseudonymize them like a draft.

Should the docket number (RG) be masked?

Generally, yes. The general register kept by the court registry records each case's registration number and the names of the parties (Code of Civil Procedure, Art. 726). Together with the court, this number therefore leads to the case. In AnonymFiles, check it during review: one click masks it across the whole file.

Can you ask ChatGPT to anonymize the briefs itself?

No: you would first have to send them in plain text. The CNB guide sets the opposite principle: “never communicate data relating to one's files or clients” to a generative AI (p. 15). Pseudonymization happens beforehand, on your computer.

How do you put the real names back into the text written by the AI?

On your computer, never in the conversation. By hand, replace each label with the name it hides. In AnonymFiles, “Réinjecter un résultat” (re-inject a result) does this on the AI's answer, pasted in or as a .txt, .md, .docx or .pdf file, with a preview before saving.

Which software can anonymize briefs and exhibits?

Software that runs on the firm's own computer, so no document reaches a third party before it is anonymized. AnonymFiles, French document anonymization software, processes submissions and exhibits together (Word, PDF, scans, e-mails) with the same labels across the whole file, then puts the real names back into the AI's answer. Our comparison of anonymization software also covers the alternatives.