Skip to content

Anonymize cases

As of: 2026-11-12

Anonymization (function_type_id = 11) is the scenario type for data donations from counselling. A scenario is a data donation, a case is a counselling thread: a sequence of e-mails or chat messages between a person seeking help and the counselling service.

This is how it works:

  1. You copy a thread from your mail program and paste it into LLARS. LLARS immediately shows which messages it found and who wrote what.
  2. In the background LLARS looks for names, places, phone numbers and other personal data, also in other spellings, and proposes an invented, consistent replacement for every value.
  3. You review the case, correct markings and replacements and sign it off. Depending on the setting one sign-off is enough, or two people are needed (four-eyes principle).
  4. Whoever manages the scenario finally downloads the anonymized text only.

The original stays in LLARS

All members of the scenario see the original text so that they can review it. The export never contains original text. Only add cases to scenarios whose members may see the originals.

What for — and what not

Archived since 12 Nov 2026

The tiles "Anonymization" (/Anonymize), "Anonymisierungs-Pipeline" (/anonymization) and "Anonymize cases" (/anonymization-cases) are archived. Use the anonymization scenario instead. Old links to /anonymization-cases/<number> open the scenario directly; the other addresses lead to the home page.

The anonymization scenario is the only way to anonymize counselling threads in LLARS. It knows cases with roles, shared review, sign-offs and the data-donation export.

How to get there

  • Tile "Evaluation": anyone invited to a scenario finds it there, without any special permission. One click opens the case overview (/scenarios/<number>/evaluate).
  • Tile "Scenario Manager": owners and editors open the scenario there.

Without an invitation the scenario does not appear anywhere. Ask the person who created it to invite you.

Create a scenario

Researchers or admins create a scenario in the scenario wizard (tile "Scenario Manager" → new scenario).

  1. Data: do not upload a file; click "Empty anonymization scenario" instead. The wizard preselects the anonymization type and skips the AI analysis. Cases are added later through "Paste case".
  2. Configuration: set the options from the table below.
  3. Team: invite the people who paste and review cases. They need the assessor role; read-only members get the viewer role. There are no LLM evaluators for this type.
  4. Create: the scenario starts empty.
Setting Meaning Default
Conversation format Emails, chat or transcribed conversation. Decides how pasted cases are split, what the roles are called and which time a turn shows. More under Conversation format. Emails
Sign-offs per case "One person" or "Two people (four-eyes principle)". A case is done when that many different people have signed off the same state. Can be changed later; the status adapts at once and no sign-off is lost. One person
Detection Offline: detection runs on the LLARS server only. Hybrid: a language model additionally checks every text. Offline
Language model Hybrid only, and then required. On saving, LLARS checks that the model is active and that the scenario owner may use it. —
Origin of replacement names Germany or one of the four Swiss language regions Germany
Members may paste cases Off: only owners and managers paste cases. On
Active categories Which kinds of data are marked (table under Categories) all 18
Organizations that are kept Names that are never replaced, e.g. a public agency. Confirm each entry with Enter. empty
Domains that are kept Web addresses on these domains stay, e.g. caritas.de; links to other domains become [URL]. empty
Default view of the cases List or Kanban Kanban
Replacement values Realistic, from lists: names, places, phone numbers, email addresses and identifiers get invented values with a valid structure. Placeholders such as [Telefon]: the previous behaviour. Applies to every new detection. More under Replacement values and suggestions. Realistic, from lists
Allow suggestions from the language model On: the review UI shows the button "Suggestions from the language model". On click, original values of names, places and addresses are sent to a language model together with short excerpts. Only turn this on if the data donation allows it. Off

Some public bodies always stay, even without an entry, for example Caritas, Diakonie, SKM, Telefonseelsorge, Nummer gegen Kummer, police, Jobcenter, Agentur für Arbeit, Jugendamt and platforms such as WhatsApp or Instagram. Health insurers, on the other hand, are replaced (for example by "BKK Lechner").

Hybrid mode: the plain text leaves the server

In hybrid mode the complete original text of every case is sent to the selected language model. Only use it if the data donation explicitly allows it. Board, paste dialog and configuration permanently show the notice "Hybrid mode: the plain text of the cases is sent to …".

A changed configuration applies to newly pasted cases and to "Detect again". Cases that are already detected keep their settings.

Conversation format

In the configuration you choose which kind of conversations the scenario collects. The choice can be changed later. It applies to the display and to newly pasted cases; cases already pasted keep the way they were split.

Format For Roles Time of a turn
Emails (default) Threads from a mail program Client · Counsellor Date and time of the email
Chat Chat logs, e.g. WhatsApp exports as for emails Date and time of the message
Transcribed conversation Interview transcripts Interviewer · Interviewee Time mark in the conversation, e.g. 00:13:22

In a transcript every turn starts at the beginning of a line with a speaker code and a colon. I, I1 to I9, Int, IV or Interviewer stand for the interviewer; B, B1 to B9, P, IP, Befragte, Patient or Proband for the interviewee. Upper and lower case do not matter. Lines without a code belong to the current turn, and text before the first code (such as the recording ID) does not become part of the case. LLARS reads time marks such as #00:13:22-3# as the time of the turn and removes them from the text; signs such as (.), (unv.) or // stay. A code other than I or B, such as I2, appears as a small code next to the role.

I: How are you today? #00:00:12-3#
B: Quite well (.) actually. #00:13:22-3#
I2: May I ask a quick question? #00:13:25-4#

This becomes three turns: "Interviewer" at 00:00:12, "Interviewee" at 00:13:22 and "Interviewer" with the code I2 at 00:13:25. In the export the time mark of each message is in the column time_offset (e.g. 00:13:22.3). If a turn has no time, its header shows no time in any format.

Paste a case

Open the case overview and click "Paste case". Scenario managers find the same button in the Scenario Manager under the Data tab.

Copy from the mail program

Open the newest message of the thread. The older messages are quoted below the reply. Select the whole message with Cmd+A (Mac) or Ctrl+A (Windows), copy with Cmd+C or Ctrl+C and paste into the dialog with Cmd+V or Ctrl+V.

  • Apple Mail and Thunderbird: quotes start with a line like Am 20.10.2026 um 13:28 schrieb Beratungsteam <team@beratung.example.org>:.
  • Outlook: every older message starts with a header block of Von:/From:, Gesendet:/Sent:, An:/To: and Betreff:/Subject:. If Outlook collapses the older thread, expand it before copying.
  • Gmail: quotes start with Am Mo., 12. Mai 2025 um 13:27 Uhr schrieb …. Expand trimmed quotes (the three dots) first.
  • English mail programs: On … wrote: and From:/Sent: are recognised as well.
  • Chat exports: lines such as [2025-05-12 13:27] Tom: … and WhatsApp exports such as 21.08.24, 20:05 - Tom: ….
  • Transcripts with roles: lines starting with Klient:, Ratsuchende:, Berater:, Client:, Counselor: and the like. Interview transcripts with codes such as I:/B: and time marks belong in a scenario with the format Transcribed conversation.

This is what a pasted Outlook thread looks like (all names invented):

Danke, ich melde mich wieder.

-----Ursprüngliche Nachricht-----
Von: Beratungsteam <team@beratung.example.org>
Gesendet: Mo 12.05.2025 13:27
An: Max Beispiel <max.beispiel@example.com>
Betreff: AW: Stress am Arbeitsplatz

Hallo Herr Beispiel,
danke für Ihre Nachricht. Gern beraten wir Sie.

-----Ursprüngliche Nachricht-----
Von: Max Beispiel <max.beispiel@example.com>
Gesendet: So 11.05.2025 18:00
An: Beratungsteam <team@beratung.example.org>
Betreff: Stress am Arbeitsplatz

Guten Abend, ich weiß bei der Arbeit nicht mehr weiter.

LLARS turns this into three messages in chronological order: first Max Beispiel's question, then the counselling reply, finally the "Danke". The header lines no longer appear in the case; the subject becomes "Stress am Arbeitsplatz" (without AW:).

File instead of pasting

Instead of pasting you can drop or choose a file: TXT, PDF, DOCX or JSON, at most 10 MB, one case per file. A PDF needs a text layer (scanned pages without text cannot be read). LLARS removes page numbers from PDF printouts ("Seite 2 von 5"). The file itself is not stored, only its text. Several files at once are processed one after another ("Case 2/5").

A JSON file holds exactly one thread, either as a list of messages or as an object with messages. Each message needs a text (content, text, body or message), optionally a role (role, sender, …) and a time (timestamp, date, …):

{"subject": "Stress at work",
 "messages": [
   {"role": "client", "timestamp": "2025-05-11T18:00:00", "content": "Good evening, …"},
   {"role": "counselor", "timestamp": "2025-05-12T13:27:00", "content": "Hello Mr Example, …"}
 ]}

LLARS rejects a file with several threads ("The file contains several cases. Please paste them one by one.").

Check preview and roles

The preview appears at once on the right of the dialog: messages of the person seeking help on the left, counselling messages on the right, each with sender and time. Above it you see the recognised format ("Format: Outlook") and the number of messages.

  • Swap role: if a message sits on the wrong side, click "Swap role" on that message. LLARS flags uncertain assignments with "Role uncertain — please check".
  • As a single message: if LLARS finds no sensible boundaries or splits a text wrongly, switch on "As a single message". The whole text then becomes one message of the person seeking help.
  • Notices below the format tell you what stood out, e.g. "Some messages have no timestamp" or "The timestamps were out of order; the thread was sorted chronologically".

LLARS already removes signatures with contact details, disclaimers ("This e-mail may contain confidential …"), lines like "Sent from my iPhone" and quote markers (>) while reading. Greeting and name line stay in the text.

Click "Import". The message reads "Case added. Detection runs in the background." "Paste another case" lets you continue straight away.

If the same thread is already in the scenario, LLARS reports "This thread is already in the scenario." Several people therefore cannot paste the same case twice by accident.

Detection in the background

After pasting, the case sits in the column "Detecting". LLARS processes all waiting cases of all scenarios one after another, oldest first.

  • While a case waits, the card shows its place in the queue and a rough estimate ("Position 3 in the queue · approx. 30 s"). LLARS assumes about 10 seconds per case in offline mode and 25 seconds in hybrid mode.
  • While detection runs, the card shows a bar ("Message 3 of 8").
  • "Waiting for detection" means the detection service is not running right now. The case stays in the queue and is processed as soon as the service is back.
  • "Failed": after three unsuccessful attempts or an error of the language model LLARS stops. Open the case and choose "Detect again" from the menu (⋮).

A single row sits above the cases: on the left Back, "Paste case" and the switch between list and Kanban, on the right the counters per status and at the far right the name of the scenario. The green dot in front of it shows that the case overview updates live, also when other people paste or sign off cases. On a phone the buttons come first, the name below them and the counters in a row you can swipe sideways. You can view it as a list or as Kanban with the columns "Detecting", "To review", "Editing", "Partially signed off", "Done" and "Failed". A case moves to "Editing" as soon as someone changes it after detection and nobody has signed off the current state yet. The overview counts "To review", "Editing" and "Partially signed off" together as open cases.

How detection works

LLARS looks for personal data with several methods at once and takes everything any of them finds (union):

  1. Rules for everything with a fixed shape: phone numbers, email addresses, IBAN, health-insurance and pension-insurance numbers, postcodes, streets, dates. They also match lower-case writing ("breslauer straße 112", "de77 …").
  2. Flair (ner-german-large), a German model for names of people, places and organizations.
  3. GLiNER nobody-pii-de, a model for personal data in German texts: names and nicknames, addresses, identifiers, ages.
  4. GLiNER gliner_multi_pii-v1, for organizations and schools only. Single everyday words such as "Schule" or "Arbeitgeber" do not count as an organization.

Once LLARS has detected a name in one place, it searches for it throughout the case, also in other spellings. All methods run on the LLARS server; in offline mode no text leaves the server. In hybrid mode the selected language model checks in addition.

Measurement (2026-11-02): on six real counselling threads with 211 personal-data occurrences the combination found 210 (previously, with rules and Flair alone, 202). In 18 deliberately disturbed versions of the same threads (typos, lower case, missing punctuation; 633 occurrences) it found 625 (previously 591). It added 50 false alarms not counting dates and times, almost all of them names of institutions. One thread took about 4 seconds on the CPU.

"fuzzy match"

People do not always write names the same way: "Sven", "sven", "Sv-en", "S v e n" or the typo "Svne". LLARS searches every detected person name in such forms as well:

  • the same letters after simplification (upper/lower case, ä/ae, ß/ss, hyphens, dots and spaces between letters, doubled letters) and
  • one or two typos in longer names (one from five letters, two from eight). Ordinary German words are skipped so that "Reiner" does not turn "einer" into a name.

Such matches are underlined with a dashed line in the thread, and their popover carries the label "fuzzy match". In the measurement this search found 163 of 213 disturbed name occurrences that an exact search would have missed, without a single wrong match. It has not yet been measured on larger amounts of text, so take a brief look at fuzzy matches.

Name parts and spellings

Name parts. If a case contains a full name such as "Mila Sommer" and elsewhere only "Mila", then "Mila" is a part of the full name. In the values panel the part is indented under the full name under "Name parts" and carries the note "Part of Mila Sommer"; its popover says the same. The part keeps its own replacement and its own randomize button, but the two are linked: randomize "Mila" to "Lea" and "Mila Sommer" becomes "Lea Winter" everywhere instead of keeping an unrelated first name. Conversely, when you change the full name, the part takes over the matching first name. A replacement you typed by hand is never changed this way. If "Mila" is in fact a different person, click "Not part of this name" in the popover; the part then gets its own replacement.

Spellings. A different spelling forms its own group that is linked to the original name. In the values panel it is indented under the name under "Spellings", and its popover says "different spelling of “Sven”". It gets the same replacement in its own form: if "Sven" becomes "Jonas", "sven" becomes "jonas" and "S v e n" becomes "J o n a s". When you change the replacement of the original name, the spellings follow unless you set their replacement by hand.

The same applies to organizations and places that differ only in upper and lower case or hyphens: "GEMCo" and "GemCo" are grouped as spellings and get the same replacement.

If the spelling is in fact a different person, click "Not the same person" in the popover. The link is removed and the group gets its own replacement. For organizations, places and other values the button reads "Not the same spelling"; the group then gets its own list suggestion. If it is not a name at all, "Not PII" helps as always.

"Detection without additional models"

The operators have to load the two GLiNER models onto the server once (see Operations). If they are missing or a model failed, LLARS continues with rules and Flair and adds the notice "Detection without additional models" to the case. The case is valid, but detection is weaker, especially for nicknames, addresses and organizations. Review it with extra care, or choose "Detect again" once the models are back. If the operators have deliberately switched the additional models off, the notice does not appear.

Review a case

Click a card. The thread is on the left, the panel "Detected values" on the right. Its header shows how many occurrences are marked and, on the right, the switch between "Original" and "Anonymized" and the menu (⋯) with "Detect again" and "Delete case". On a phone there are two tabs, "Thread" and "Values"; the switch and the menu sit in a slim bar above them. The client writes in pastel green bubbles, the counsellor in beige ones, already in the preview when pasting.

Markings

Every detected value is highlighted in colour in the thread. Each value has its own colour, and the same one everywhere: in the thread, in the "Detected values" panel, in the popover on the marking and among the leaks. The client's names are orange, the counsellor's purple; further names and then places, numbers and all other values get the next colours in the order in which they occur in the thread. First name, full name and another spelling of the same person share the colour. A small category tag follows each value, e.g. "Anna NAME" or "15 years AGE". The tag is not part of the text: it is neither included in a text selection nor in the export. Clicking a marking opens a small popover in the colour of the value:

  • Change the category, e.g. from location to organization. Each category has its own icon.
  • Edit the replacement: it applies to the same value throughout the case. Change the replacement for "Lena" in one place and it changes in every message.
  • Randomize: for people, locations and ages LLARS proposes a different replacement. Dates cannot be randomized (see below).
  • "Not PII": the value is not personal data and stays, e.g. an everyday word that detection took for a name. "Replace again" undoes this.
  • "fuzzy match" and "Not the same person" appear for other spellings of a name (see How detection works).
  • "Part of …" and "Not part of this name" appear for a first or last name that belongs to a full name (see Name parts and spellings).
  • "Merge with previous mark" and "Merge with next mark" appear when a marking directly borders another one (see Merge markings).

Dashed markings are suggestions that LLARS does not replace, such as the category "Miscellaneous" or allow-listed organizations. One click and "Replace again" activates them.

New marking

If LLARS missed something, select the text with the mouse in the "Original" view and choose the category. If the same value occurs elsewhere, those places show up as leaks; "Mark all occurrences" fixes them in one step.

If you select text that already contains marked values, the popover says how many markings the selection covers. Choosing a category then replaces them with one new marking over the whole selection. Without choosing a category nothing changes.

Merge markings

Sometimes a value falls apart into two markings, e.g. "Technische Hochschule Nü" and "rnberg", or "Hans" and "Peter" in "Hans-Peter". Click one of the two markings and choose "Merge with next mark" or "Merge with previous mark". Both become one marking over the whole value with the category of the marking you clicked, and it gets a new replacement. The buttons only appear when no letter or digit and at most one space stands between the markings; a list such as "Berlin, Hamburg" stays separate. If the same broken spot occurs several times in the case, "Merge all identical spots" merges them in one step.

A common reason for broken words were umlauts that macOS splits into two characters when copying (a "u" plus two dots above it). Since version 1.55 LLARS joins such umlauts back into one character when pasting; for older cases, merging helps.

Values panel

The panel on the right groups equal values: colour of the value, icon and name of the category, original value, how often it occurs and the replacement that applies everywhere. From here you can change the replacement, randomize it or discard a whole group with "Not PII". A click jumps to the place in the thread. Discarded suggestions are listed at the bottom. Other spellings of a name are indented under "Spellings", first and last names of a full name under "Name parts" with the note "Part of …"; each part has its own replacement and randomize button. At the top of the panel, "New list suggestions" and, if allowed, "Suggestions from the language model" fetch new replacement values (see Replacement values and suggestions). A small icon on the row shows whether a replacement came from the list or from the language model.

Subject

The subject appears once, as the first line above the thread. In the original, names in the subject are marked like in the rest of the text; the "Anonymized" view shows their replacement.

With the pencil on the right of the subject line you can edit the subject by hand, e.g. if even the anonymized subject reveals too much about the case. The field is prefilled with the current anonymized subject. Enter or a click elsewhere applies the text, Esc discards it. The edited subject replaces the automatically anonymized one in the export and carries the label "edited" in the line. "Reset to automatic" in the open field removes the edit again. Like every change, this one lifts the sign-offs.

Original and anonymized

On the right of the "Detected values" header you switch between "Original" and "Anonymized". The selected view is filled in colour. The anonymized view shows exactly the text that will later be in the export. Read the case once more completely in this view at the end.

Leaks

A leak is a place where a detected value still appears in plain text, for instance because "Lena" is marked in one message but not in another. A replacement that contains the original value also counts as a leak.

The "Leaks" box lists every open place:

  • "Go to" jumps there.
  • "Mark all occurrences" marks every place with the group's replacement.
  • "Not PII" discards the whole group if it was a false alarm.

If an original value appears in the edited subject, the box reports it as a separate row ("Edited subject contains "Anna""). The "Edit subject" button then opens the subject field; "Mark all occurrences" is not offered for it, because the edited subject is not original text.

As long as leaks are open, the case cannot be signed off ("Open leaks block the sign-off."). This is intentional: a single overlooked name is enough to recognise a person.

LLARS checks very short values (fewer than four characters) and short numbers only at their own position; otherwise the age "16" would flag every date containing "16.".

Saving

LLARS saves every change by itself after a short pause ("Saving …", "Saved"). There is no save button.

Sign off

Below the thread is the sign-off bar with the current state, e.g. "1/2 sign-offs", who signed off and whether your last change has been saved.

  1. Review the case in the "Anonymized" view.
  2. Click "Done". You sign off exactly the state you are looking at.
  3. With one sign-off per case the case is now done. With two sign-offs it stays "Partially signed off" until a second person signs off.

"Withdraw sign-off" takes your own sign-off back.

Every change removes all sign-offs

If anyone changes the case after a sign-off — a marking, a replacement or a category — all sign-offs lapse and the case is back in "Editing". The second person thus always reviews exactly the state the first one signed off. Merely looking without changing anything removes nothing.

Editing at the same time: all members see and edit the same state. If two people open the same case, LLARS shows "… is editing this case right now." If the other person saves first, you see "… changed the case in the meantime. Your last change was discarded." with the button "Reload". Your last change was not saved; reload and make it again.

Detect again (menu ⋮) runs detection again with the current configuration. Manual changes and sign-offs are lost; LLARS asks first.

Delete case (menu ⋮) removes the case with all its messages for good. The person who pasted it may do so as long as nobody has signed off; scenario managers may always do so.

Categories and replacements

Which replacement a value gets depends on the setting Replacement values. What the list values are exactly is explained under Replacement values and suggestions.

Category Example Replacement with "Realistic, from lists" (default) Replacement with "Placeholders such as [Telefon]"
Person Lena Hofmann name of the substitute person ("Mia Becker"); parts match ("Lena" and "Lena Hofmann" get the same first name), nicknames get a harmless nickname another name of the configured origin and the same gender, parts and nicknames likewise
Location Fürth municipality of similar size municipality of similar size
Street Breslauer Straße 112 generic street name with a house number in the same form ("Lindenweg 37") [Adresse]
Postcode 90762 postcode of the substitute municipality [PLZ]
Phone 0911 2345-67 number from the range the Federal Network Agency keeps free for film and TV; mobile stays mobile [Telefon]
Email f.reuter@web.de pattern of the original with the substitute name ("m.becker@example.org") [E-Mail]
IBAN, insurance no., social security no. DE89 3704 … invented number with a valid check digit, grouped like the original [IBAN], [Versichertennr.], [SV-Nr.]
URL www.praxis-beispiel.de example link in the same form, a different one per link (www.example.net, https://www.example.org/profil42; allow-listed domains stay) [URL] (allow list stays)
Organization Lindenhain-Gymnasium invented name of the same kind: "Gymnasium am Park", "BKK Lechner", "Steffens Logistik GmbH" … (see Replacement values and suggestions) placeholder of its kind: [Schule], [Krankenkasse], [Klinik], [Beratungsstelle], [Behörde], [Verein], [Unternehmen], otherwise [Organisation]
Age 15 Jahre matches the birth date of the substitute person if LLARS can assign the person; otherwise another number in the same form another number in the same form ("16 Jahre")
School grade 9. Klasse grade ±1 grade ±1
Date 04.10.2019 shifted date in the same format (see below) likewise
AHV no., secret 756.1234… [AHV-Nr.], [Geheimnis] likewise
Time 13:27 stays (a time of day identifies nobody) likewise
Miscellaneous WhatsApp suggestion only, stays until you activate it (then [Sonstiges]) likewise

The placeholders are German because the donated texts are German.

Dates: per case LLARS draws one shift between one day and about five years into the past and applies it to every date and timestamp of the case. The intervals between messages are thus preserved, the weekday is recomputed and the format stays ("4. Oktober 2019" stays spelled out). The shift itself never appears in the export.

With "Placeholders" and when randomizing, replacement names come from German name lists (Wikidata, CC0) as long as "Germany" is selected. The list values of "Realistic, from lists" are always German; there the setting Origin of replacement names only affects randomizing. Places that are not in the German municipality list (very small places, places abroad) become a German municipality with "Realistic, from lists"; with "Placeholders" and when randomizing they may get a Swiss place name. Check places with particular care.

Replacement values and suggestions

One substitute person per person

With "Realistic, from lists", LLARS invents one substitute person for every person in the case, with gender, birth date, first and last name, home town with postcode, street, mobile and landline number. All values of that person come from it so that the text stays consistent: "Mia Becker, 15, mia.b@gmx.de" becomes, for example, "Lena Wagner, 16, lena.w@example.org", and phone number and place fit.

  • The first name fits the birth decade of the substitute person (a 15-year-old is not called "Irmgard"). LLARS estimates the age from an age mentioned nearby or a birth date, otherwise from the role (counsellor older, person seeking help younger). The gender comes from forms of address such as "Frau" or "Lieber", otherwise from the first name.
  • The same last name gets the same substitute last name throughout the case, so a family stays a family.
  • No replacement contains an original value of the case. Two people never get the same full name, and two different numbers or addresses never get the same replacement.
  • "Detect again" yields the same replacement values. The substitute person depends only on the case and on a secret key of the server; without that key it cannot be computed back from the original.

LLARS never overwrites replacements set by hand or randomized.

What "from the list" means

The lists are part of the LLARS code and come from open sources: first names per birth decade (Wikidata plus the newborn statistics of Cologne and Bonn), last names and municipalities with postcodes (Wikidata), generic street names such as "Lindenweg" (own list). LLARS does not query any source at runtime.

These values are invented but structurally valid:

  • Phone numbers come only from the blocks the Federal Network Agency (Bundesnetzagentur) reserves for film and TV ("drama numbers", e.g. 030 23125 xxx, 0176 040690 xx). They never belong to a real line.
  • Email addresses end in example.org (a second address of the same person in example.net), domains that exist for examples.
  • IBAN, health-insurance number and pension-insurance number have a valid check digit. The IBAN uses a bank code that no bank has; insurance number and pension-insurance number match the name and birth date of the substitute person.
  • Organizations get an invented name of the same kind (since 2026-11-03). Legal form, sector, school type or type of authority stay, everything else is replaced:
Original (example) Replacement (example)
Kerner Logistik GmbH Schubert Logistik GmbH
AOK Bayern BKK Suhr
Grundschule Nord Grundschule Reilingen or Grundschule am Park
Technische Hochschule Nürnberg Hochschule Güstrow
Jugendamt Nürnberg Jugendamt Gudensberg
Erziehungsberatung Fürth Erziehungsberatung Gudensberg
Sportverein Eintracht Sportverein Gudensberg e. V.

The place in the name is the substitute home town of the person seeking help, so that "Jugendamt" and home town match. Two schools of one case never get the same name, and no word of the original except legal form, sector and kind appears in the replacement. The names are invented; LLARS cannot check offline whether a company or school of that name really exists. - Links become example links (https://www.example.net/profil42), each link a different one, with https:// and www. as in the original. - Postcodes belong to the substitute town. If two postcodes stand at the same town, the second gets a different postcode of the same federal state. - Places that are not in the municipality list (a district, a landscape) become a municipality from the list.

Placeholder means: instead of an invented value the category stands in square brackets ([Telefon]). That is the setting "Placeholders such as [Telefon]". With "Realistic, from lists" a placeholder only appears when no free name was found for an organization after six attempts (then numbered: [Schule 1], [Schule 2]), and for categories without a list.

New list suggestions

"New list suggestions" at the top of the values panel draws new values from the lists for all groups. The suggestions appear as small chips on each group; "Apply" sets one, "Apply all" sets all, "Discard" hides them. Only what you apply is saved. Like every change, applying removes all sign-offs.

Suggestions from the language model

Whoever manages the scenario can turn on "Allow suggestions from the language model" in the configuration. The values panel then shows the button "Suggestions from the language model". A language model can find replacements that fit the text better, such as a nickname in the same tone or a place with fitting surroundings.

  • On click or automatically. The default is the click: only a click and the confirmation in the dialog send anything. The dialog names the model: "Original values and short excerpts are sent to …". Whoever manages the scenario can additionally turn on fetching suggestions automatically after each detection (since 2026-11-03). LLARS then fetches suggestions once after each detection of a case, without another click, and applies the ones that pass right away (origin "language model"); at most 40 groups per case are sent to the model. Values set by hand or randomized stay. If the suggestions do not arrive, the case shows the note that the language-model suggestions did not arrive and the list values apply, and detection is still complete.
  • What is sent to the model: only groups of the categories person, location, street and organization; per group the original value, its spellings, hints such as gender, role, town size or, for organizations, kind, legal form and sector, and at most three short excerpts (about 60 characters left and right). Other detected values in the excerpts are replaced by [PER_3], [LOC_1] and so on. Phone numbers, email addresses and identifiers are never sent to the model; they always get list suggestions.
  • Which model: the language model of hybrid mode if one is set, otherwise the default model chosen by the operators (on the production server a Mistral model). It must be active, and you yourself must be allowed to use it. OpenAI models are excluded for counselling content ("This language model is not approved for counselling content.").
  • Verification: LLARS checks every suggestion before it appears: not the original, not too similar, not already taken, the same form (lower case, number of digits) and the same kind (a place is in the municipality list, a street ends in "-straße", "-weg" …). An organization keeps its legal form and kind ("… GmbH", "…gymnasium"), has at most six words and contains no word of the original except legal form, sector and kind.
  • Fallback: if a suggestion fails or the model does not answer, the group gets a list suggestion with the note "from the list because the model suggestion did not fit".
  • Apply works as with list suggestions, one by one or all. Nothing is saved before you apply.

Both buttons together allow at most 10 requests per person and minute ("Too many requests — please wait a moment.").

Export

Scenario managers download the export: Scenario Manager → Data tab → "Export". The options are:

  • Done cases only or All detected cases (including those not yet signed off; cases still detecting or failed are always left out),
  • JSON or CSV.

The export contains anonymized text only: never the original text, never the original values, never the date shift, no sender names and no signatures.

JSON (llars-anonymization-export-v1):

{
  "schema": "llars-anonymization-export-v1",
  "scenario_id": 42,
  "exported_at": "2026-11-02T20:15:00Z",
  "status_filter": "done",
  "required_reviews": 2,
  "case_count": 1,
  "cases": [{
    "case_id": 1501,
    "case_status": "done",
    "subject": "Stress am Arbeitsplatz",
    "message_count": 3,
    "messages": [
      {"index": 0, "role": "client", "timestamp_shifted": "2023-08-14T18:00:00",
       "content_anonymized": "Guten Abend, …"}
    ],
    "entities_summary": {"total": 9, "dismissed": 1, "by_label": {"ORG": 3, "PER": 5}},
    "signoffs": [{"username": "counsellor_a", "signed_at": "2026-11-02T19:40:12"}]
  }]
}

role is client (person seeking help) or counselor (counselling service). entities_summary counts all markings (total), the discarded ones (dismissed) and the active ones per category (by_label). signoffs lists the valid sign-offs.

CSV: UTF-8 with BOM (opens correctly in Excel), separator ;, one row per message with the columns case_id;case_status;message_index;role;timestamp_shifted;subject;content_anonymized.

Scripts fetch the same export through the v1 API.

Permissions

Who May
Assessors of the scenario paste cases (if the setting allows), see and review all cases, sign off, delete their own cases without sign-off
Viewers read all cases, change nothing ("Read only")
Owner, editor, admin additionally always paste cases, delete any case, change the configuration, export

Unlike other types there is no blinding: all members see all cases, who pasted them and who signed off. This is intentional: everyone works on one shared data set, and under the four-eyes principle the second person reviews exactly the state of the first.

Limits

  • Sizes: per case at most 200,000 characters and 400 messages, per message about 60,000 characters, per file 10 MB, per case 5,000 markings, per replacement 200 characters.
  • What detection misses: rare or foreign names, nicknames unrelated to the real name, names of institutions that look like ordinary words, and details that identify only in context (a rare profession, a particular illness, an event from the news, an unusual family situation). LLARS does not mark these by itself.
  • Residual risk from context: even a fully replaced text can give a person away if someone with background knowledge searches deliberately (the "motivated intruder" in data protection). Ask yourself while reviewing: could a colleague, a neighbour or the person themselves recognise the case? Then mark the revealing passages by hand or leave the case out of the donation.
  • Age and date: dates are shifted. With "Realistic, from lists" ages follow the birth date of the substitute person if LLARS can assign them to a person, otherwise they are randomized. Either way they do not necessarily match the shifted date.
  • Fuzzy matches: the search for other spellings has been measured on a few threads only. It can miss a real name that deviates too much and rarely hit a similar word.
  • One case per paste: several threads in one text or file are not split. LLARS does not read .eml or .msg files; copy the text from the mail program.
  • No splitting or merging of messages in the preview. If a boundary is wrong, use "As a single message".
  • No agreement measures: since everyone edits the same state, LLARS computes no agreement between people. The statistics show progress only.

Data protection

  • Originals stay stored. Original text, detected original values and senders stay in LLARS and are visible to all scenario members. Deleting the originals after completion is not built yet.
  • Members only. People outside the scenario see no case. The live updates of the overview transmit only numbers and counters, never text.
  • Hybrid mode sends the plain text to the selected language model. Offline mode stays on the LLARS server, also with Flair and the two GLiNER models.
  • Suggestions from the language model are off until someone with management rights allows them in the configuration. Even then, something is sent to the model only on click and after confirmation: original values of people, places and streets with short excerpts, never the whole case, never to OpenAI.
  • List values are invented. Drama numbers, example.org and unassigned bank codes never hit a real line, a real address or a real account.
  • The export contains anonymized text only. Still spot-check it before passing it on.

Operations

This section is for the operators of the LLARS server.

Where the models run. Flair and the two GLiNER models run only in the NER process of the worker container (llars_worker_service, on production one per colour as llars_worker_<colour>). The web container and the case loop ask it over Redis; they never load a model themselves. The NER process loads the GLiNER models only from local storage (HF_HOME, default /app/storage/models in the volume rag_storage), never from the network.

Preload the models (once per server, ≈ 2.2 GB download):

docker exec -u flaskuser -w /app llars_worker_service python -c "from services.anonymize.gliner_detection import preload; print(preload())"

After that the running NER process loads them within 600 s at the latest; immediately with docker restart llars_worker_service. The output lists ready, not_cached, disabled or error:<class> per model. The command also loads both models itself as a test, so for its run time it needs memory on top of the running NER process.

Memory. Flair-large needs up to 5.9 GB, each GLiNER model about 1–1.5 GB on top; the NER process thus reaches about 8–9 GB. The worker container has a limit of 12 GB for all its processes. Switch the ensemble on only after a measurement with docker stats llars_worker_service (models preloaded, one case detected). More than one NER process (ANONYMIZE_NER_WORKER_PROCESSES, default 1) doubles the need.

Environment variables (in .env, read by the web and worker containers):

Variable Meaning Default
ANONYMIZE_ENSEMBLE_ENABLED Use the GLiNER models in addition to Flair. Off: rules + Flair, without a notice on the case. code and dev template true, prod template false
ANONYMIZE_GLINER_MODEL / …_REVISION personal-data model and pinned revision naeyn/nobody-pii-de / 1987552…
ANONYMIZE_GLINER_ORG_MODEL / …_REVISION organization model; empty = without (saves memory, weaker for organizations) urchade/gliner_multi_pii-v1 / 1fcf13e…
HF_HOME model storage /app/storage/models
ANONYMIZE_SEED_SECRET secret of the substitute person (changing it = different replacements on "Detect again") empty → JWT_SECRET_KEY
ANONYMIZE_SUGGEST_LLM_MODEL model for language-model suggestions if the scenario names none. The automatic suggestions after detection check the access of the person who owns the scenario. empty → default language model

A changed .env only takes effect in newly created containers (docker compose up -d, not docker restart). GET /api/anonymize/health?mode=full reports the state in the field ensemble ({enabled, models: {pii_de, multi_org}, source}). The full runbook including blue-green is under Production Deployment › Preload GLiNER models.

Rebuild the replacement lists. scripts/anonymize/build_de_data.py rebuilds the lists from their sources (--all, needs network) or only checks their minimum sizes (--check, offline). Sources, retrieval date and licences are in app/services/anonymize/data/README.md.

Repeat the measurement. The measurement and its instructions are in the repo under scripts/anonymize/bench/ (README.md): a separate environment with the measured versions, results outside the repo (LLARS_BENCH_OUT). A regression check with frozen model results runs in the normal test suite.

See also