AnonyMate: A Toolkit for Anonymizing Unstructured Chat Data
Paper · 2019 · Allison Adams, Eric Aili, Daniel Aioanei et al.
Summary
Chat logs can be useful for improving language technology while also recording the names, addresses and other identifying details of the people who use it. AnonyMate addresses this practical conflict: how can an organization retain useful conversational material while removing information that points to individuals or corporate clients? The paper presents a toolkit for processing human–computer conversations, together with the annotation effort and recognition experiments behind it. Its central contribution is an integrated workflow rather than a single detection algorithm.
The authors organize recognition around a tag set containing 24 entity types. Some describe personal identifying information, or PII; others describe corporate identifying information, or CII. A further group covers entities that are useful to recognize but are not ordinarily selected for removal. This distinction lets the same named entity recognition component support both privacy protection and other conversational tasks. The project includes annotated material in English, French, German, Italian, Spanish and Swedish, with shared annotation principles adapted to the languages.
AnonyMate processes an input through cleaning and tokenization, language identification, entity recognition, session-level reference tracking and a configurable replacement stage. The language check helps prevent an input from reaching a recognizer intended for another language. The reference-tracking component preserves distinctions between people mentioned during a conversation: recurring mentions receive consistent anonymous identifiers, while a different person receives a different identifier. Users can choose which entity categories to transform and whether to suppress their text, replace it with a category label or substitute a predetermined expression.
The recognition experiments compare dictionary-style baselines with conditional random fields and a bidirectional recurrent architecture using a structured decoding layer. On the English test set, the frequency baseline achieves F1 of 57.5, the CRFSuite system reaches 74.1, adding clusters derived from word representations yields 76.0, and the bidirectional system reaches 79.2. The clustered CRFSuite system also exceeds both lexical baselines across the other development languages. Separately, the language detector covers 45 languages and obtains F1 of 93.01% on its held-out evaluation.
These results establish useful entity-recognition performance and describe an operational approach to anonymizing chat data. They do not establish that every identifying detail disappears from every processed conversation. The paper evaluates recognition at the entity-chunk level, reports the language detector separately and describes the remaining pipeline components without an end-to-end privacy measurement. Its most reusable lesson is therefore architectural: sensitive-data processing requires decisions about annotation, language, entity identity and replacement policy as well as a capable recognizer.
Interesting ideas
Separate recognition from action. An entity’s category and the decision to remove it answer different questions. AnonyMate recognizes a broader range of entities than it ordinarily anonymizes, then applies a configurable policy. This allows a recognition layer to support several applications without making its labels permanently encode a particular downstream decision. The same separation helps document processing, content review and information extraction, where identifying something does not automatically determine what should happen to it.
Choose annotation targets deliberately. When relevant examples are sparse, unrestricted sampling can consume substantial human attention on uninformative material. The authors use lexical resources and rules to identify inputs likely to contain entities and to suggest initial labels. The general idea is to spend review effort where the desired phenomenon is more likely to occur. It can help build linguistic resources, but the selection procedure must remain visible because an efficient annotation sample need not represent ordinary traffic.
Turn disagreement into guidance. Annotator training includes a shared exercise, discussion of conflicting decisions and revision of problematic guidelines. The annotation interface also exposes previous decisions for a word while allowing reviewers to inspect their contexts. This combines explicit rules with concrete examples of ambiguity. Similar practices can improve semantic labeling, dictionary work and grammar annotation, especially when a category boundary depends on interpretation instead of spelling alone.
Use compact distributional evidence. The CRFSuite system can use cluster membership derived from word representations rather than carrying the complete representation resource into the recognizer. Words occurring in related contexts can thereby contribute a shared signal. The transferable principle is to compress a rich external resource into a feature that a smaller, inspectable decision system can consume. Whether that compression helps must be tested against the same system without it.
Assign predictable forms to explicit rules. The authors eventually handle IP addresses through regular expressions because their annotated material provides little evidence for that category. This illustrates a practical division of labor: contextual recognition handles variable language, while explicit patterns handle constrained forms. The approach applies to document identifiers and other structured strings, provided the pattern’s coverage and errors are evaluated rather than assumed.
Preserve relationships during replacement. Removing names need not erase the distinction between the people in a conversation. Session-consistent anonymous identifiers retain some relational information while replacing the identifying surface forms. This is useful whenever later analysis needs to follow participants, events or references. The preservation has to match the intended scope: consistency within a conversation is a different requirement from consistency across an entire archive.
Evaluate the component and the purpose separately. Exact entity recognition is measurable, but its score does not directly describe the privacy of the transformed conversation. The paper’s discussion of partially recognized entities exposes this distinction. A reusable evaluation design should examine both recognition quality and what remains after the chosen action. In other applications, the equivalent question is whether success on an intermediate label actually produces the intended final behavior.
Deep dive: AnonyMate: A Toolkit for Anonymizing Unstructured Chat Data
AnonyMate combines multilingual entity recognition, language checks and consistent replacements to protect identities in chat data. · about 39 minutes to read
How Mova uses it
Mova is a small language system written in Rust, with explicit language rules, structured representations and bounded operational capabilities. The proposals below connect AnonyMate’s design to mechanisms described in Mova’s architecture and tools. They are transfer hypotheses, not reported applications of AnonyMate. The status marks describe the closest known overlap; a mark of novelty remains provisional where Mova’s broader implementation is unknown. No privacy-specific improvement is established by these connections.
Idea: Separate entity interpretation from transformation policy. Where: Tag set and annotation; pipeline description accompanying Figure 4. Area: data architecture. Mova: частково є (prag, world and the configured operational layer). Mova already separates structured interpretation from admitted actions. A privacy component could likewise emit typed entity observations before a separate policy chooses suppression or substitution. Why Mova: this would let the same linguistic evidence support several permitted tasks without embedding a destructive action in recognition itself.
Idea: Select likely examples before human review. Where: Data selection and pre-annotation. Area: annotation efficiency. Mova: частково є (tools/dictindex and Nautilus frequency-queue evidence retrieval). Existing tools retrieve corpus witnesses and statistical candidates for review. AnonyMate suggests adding explicit selectors for rare annotation targets while retaining the selection rule and source identity. Why Mova: reviewers could spend more attention on relevant evidence, while later measurements could still distinguish selected material from an ordinary corpus sample.
Idea: Treat initial labels as proposals. Where: Data selection and pre-annotation. Area: annotation workflow. Mova: вже є (treeagree, the teacher loop and tools/enrich). Mova already keeps machine-prepared annotations separate from reviewed supervision and admitted knowledge. The useful connection is to preserve that boundary for any proposed privacy tags. Why Mova: a convenient pre-annotation should help a reviewer locate evidence without acquiring the authority of an accepted annotation.
Idea: Convert annotation disagreements into revised rules. Where: Annotation guidelines and training. Area: linguistic annotation. Mova: частково є (treeagree disagreements and reviewed training workflows). Mova retains conflicting parser observations and can submit disagreements for review. A corresponding guideline process could classify recurring privacy-label disputes and turn the resolved category boundary into an explicit rule. Why Mova: repeated uncertainty would produce reusable guidance rather than isolated corrections that later workers cannot explain.
Idea: Show label history together with contextual witnesses. Where: Annotation tool; Figure 1. Area: lexicography and review interfaces. Mova: частково є (tools/dictindex label history and source-bound examples). The existing index supplies versioned labels and exact corpus evidence. A review interface could place these together when a word has several plausible entity roles. Why Mova: reviewers would see both previous decisions and the contexts that justify them, reducing pressure to impose one label on every occurrence.
Idea: Compress distributional information into discrete features. Where: Named entity recognition for anonymization. Area: statistical features. Mova: нове. A separately evaluated experiment could derive a compact word-group feature from an admissible corpus and expose it to a transparent statistical component. AnonyMate’s clustering result motivates testing this representation, without requiring Mova to adopt its neural recognizer. Why Mova: a small categorical feature might capture useful contextual similarity while keeping runtime decisions inspectable.
Idea: Give constrained identifiers an explicit recognizer. Where: NER performance, discussion of IP addresses. Area: rules and data processing. Mova: частково є (en/src/ud.rs numeric shapes and closed formal rules elsewhere in the language core). These mechanisms classify forms, but they do not establish a privacy detector. A dedicated identifier recognizer could state its accepted formats and abstention behavior. Why Mova: precise patterns may cover structured strings that ordinary linguistic training scarcely represents.
Idea: Preserve participant distinctions with local aliases. Where: Coreference resolution. Area: discourse and privacy. Mova: частково є (coref and world entity state). Mova already links references and tracks entities, but a session-scoped anonymous replacement mechanism is not established. A proposed adapter could assign stable aliases to admitted entity identities. Why Mova: transformed conversations could retain who acted and who was mentioned without carrying the original names into downstream analysis.
Idea: Measure recognition and residual disclosure separately. Where: NER performance, discussion of chunk-level scoring and partial recognition. Area: evaluation. Mova: частково є (source-bound checks and task-specific assessment controls). Mova’s existing evaluation discipline supports separating an intermediate decision from its intended effect. A privacy experiment would need both entity scores and inspection of remaining identifying text. Why Mova: a favorable tagging result should not be mistaken for evidence that a released conversation is safe.
Idea: Make personal and corporate information separate policy categories. Where: Tag set; Table 1. Area: data policy. Mova: нове. A proposed privacy schema could distinguish entities identifying people from those identifying organizations, while permitting different handling rules for each. This is a proposed extension rather than an existing Mova taxonomy. Why Mova: source processing can involve organizational confidentiality as well as individual identity, and the applicable action may differ.
Idea: Retain useful entities outside the removal set. Where: Tag set; Table 1. Area: semantic representation. Mova: частково є (prag frames, world entities and compiled concept knowledge). Mova already represents information for interpretation rather than automatic deletion. A privacy layer could recognize a broad semantic range while transforming only selected categories. Why Mova: unnecessary removal could destroy quantities, language references or other information needed by its readers.
Idea: Classify ambiguous names from their occurrence context. Where: Annotation guidelines and training. Area: lexical semantics. Mova: частково є (global sense selection and frame-based interpretation). The paper distinguishes uses of the same expression as a product or organization. Mova could evaluate equivalent occurrence-level decisions against its structured context. Why Mova: its free dictionary and transparent readers benefit from separating a word’s possible meanings from the meaning supported in a particular sentence.
Idea: Specify entity boundaries by language. Where: Annotation guidelines and training, compound examples. Area: morphology and tokenization. Mova: частково є (en tokenization and morphology; experimental language-specific rules). Privacy annotations would need their own boundary conventions rather than borrowing English word separation unquestioningly. Why Mova: a component can identify the right referent yet disagree with an annotation because the language packages that referent inside a compound.
Idea: Distinguish ordinary function words from name-internal material. Where: Annotation guidelines and training, determiner guidance. Area: syntax and entity spans. Mova: частково є (en dependency trees and grammatical features). A proposed span rule could consult structure while allowing an official name to include material normally excluded from a label. Why Mova: this would make boundary decisions explainable and avoid treating every determiner as either always included or always removable.
Idea: Give subjective categories explicit decision guidance. Where: Annotation guidelines and training, Known Figure and Work of Art discussion. Area: annotation design. Mova: частково є (global declarative concepts and source-bound dictionary review). Mova could attach written category criteria and unresolved cases to a proposed annotation scheme. Why Mova: categories involving judgment require visible conventions, especially when later statistics might otherwise make an unstable human distinction look objective.
Idea: Preserve hard examples for later review. Where: Annotation tool. Area: review workflow. Mova: частково є (tools/enrich staged states and workers that retain uncertain outcomes). A review interface could let an annotator defer a difficult entity without discarding the source or silently accepting a default. Why Mova: uncertainty would remain actionable, and incomplete work would not appear to be a completed annotation pass.
Idea: Use disagreement statistics at the relevant grouping level. Where: Annotation guidelines and training; Table 3. Area: statistics. Mova: частково є (treeagree pairwise and pooled agreement reporting). Mova already distinguishes agreement summaries for parser labels. Human privacy annotation could similarly report agreement by language and retain which category caused disagreement. Why Mova: an overall figure can conceal a category boundary that needs better instructions or a separate review path.
Idea: Maintain shared principles with language-specific details. Where: Annotation guidelines and training. Area: multilingual data design. Mova: частково є (English core and experimental French rule work). A proposed multilingual annotation contract could share category meanings while explicitly documenting different compound and span conventions. Why Mova: this supports comparison across languages without forcing their surface forms into identical annotation decisions.
Idea: Record the sampling mechanism alongside natural frequencies. Where: Data selection and pre-annotation; discussion following Figure 2. Area: corpus statistics. Mova: частково є (tools/dictindex source configurations and occurrence counts). Mova could preserve whether an annotation set was enriched for entities even when its internal category frequencies were left unchanged. Why Mova: frequency-based dictionary and rule decisions need to know what population the observations actually represent.
Idea: Compare simple lexical baselines before adding complexity. Where: NER performance; Table 4. Area: evaluation design. Mova: частково є (measured rule changes and task-specific controls). For a proposed entity task, Mova could compare contextual decisions with unambiguous lookup and most-frequent-label lookup. Why Mova: the comparison would show whether structural reasoning contributes beyond remembering familiar strings.
Idea: Test one feature addition against an otherwise comparable system. Where: NER performance; Table 4. Area: controlled comparison. Mova: вже є (rule audits, feature controls and regression-gated changes). The CRFSuite comparison provides a useful analogue for Mova’s existing practice of isolating a proposed change. Why Mova: any benefit from a new lexical or statistical feature should be attributed through a direct comparison rather than inferred from a larger system’s final score.
Idea: Break performance down by operationally important category. Where: NER performance; Figure 3 and Table 5. Area: evaluation. Mova: частково є (diagnostic traces and component-specific measurements). A privacy experiment could report personal and corporate categories separately, then inspect individual types. Why Mova: categories with different consequences should not disappear inside a single aggregate accuracy figure.
Idea: Inspect errors on multiword expressions separately. Where: NER performance, discussion of chunk-level errors. Area: syntax and error analysis. Mova: частково є (prag expression handling and dependency-based readers). A proposed entity audit could distinguish wrong boundaries from entirely missed entities and incorrect category assignments. Why Mova: these failures suggest different repairs, and a reader that identifies part of a phrase may still leave sensitive content untouched.
Idea: Keep language identification separate from entity recognition. Where: Language detector; Figure 4. Area: pipeline routing. Mova: частково є (layers routing and language-specific parsing paths). A privacy-oriented workflow could check whether the selected language path is supported before admitting text to processing. Why Mova: an operational failure should be reported at the routing boundary instead of being hidden behind a recognizer that ran on unsuitable input.
Idea: Make unsupported-language handling explicit. Where: Pipeline description accompanying Figure 4. Area: operational failure behavior. Mova: частково є (configured capabilities and retained unsupported outcomes). AnonyMate deletes inputs classified as foreign; a Mova deployment would need its own declared retention policy rather than automatically copying that choice. Why Mova: a correct detector is useful only when its result leads to an action appropriate for the task and source.
Idea: Review source-label noise before expanding training. Where: Language detector, in-house data cleaning. Area: data quality. Mova: частково є (source verification, agreement and reviewed supervision paths). Project-level language labels could be treated as claims requiring checks rather than unquestioned sentence-level truth. Why Mova: correcting mislabeled source material can improve the evidence supplied to a learner without changing the learner’s architecture.
Idea: Use diagnostic predictions to locate suspect examples. Where: Language detector, cross-validation-based cleaning. Area: training-data analysis. Mova: частково є (self-study reports and logged disagreements). Mova could use predictions from a separated diagnostic procedure to prioritize source-label review. Why Mova: systematic disagreement can reveal annotation problems, provided the diagnostic output remains a review signal instead of becoming automatic ground truth.
Idea: Preserve explicit preprocessing boundaries. Where: Pipeline description accompanying Figure 4. Area: data processing. Mova: частково є (en tokenization and source-exact evidence indexing). AnonyMate’s cleaning stages suggest recording how transformed text relates to the original before entity offsets are used. The paper does not supply such a provenance mechanism. Why Mova: exact corpus witnesses and auditable replacements require clarity about which text a position refers to.
Idea: Bound identity consistency to a declared context. Where: Coreference resolution. Area: state management. Mova: частково є (world document context and explicit bounded calls). A privacy adapter could declare whether aliases persist for a session, document or another admitted scope. Why Mova: accidental reuse or resetting of identity state can change both the usefulness and exposure of processed data.
Idea: Keep replacement mode independently configurable. Where: Pipeline description accompanying Figure 4. Area: operational interfaces. Mova: нове. A proposed anonymization capability could expose suppression, category replacement and predetermined substitution as separate typed options. The available implementation evidence does not establish these operations. Why Mova: downstream readers may need different amounts of retained structure, and the choice should remain reviewable rather than hidden inside a detector.
Idea: Separate recognizer choice from the rest of the pipeline. Where: Figure 4 and its accompanying description. Area: software architecture. Mova: частково є (explicit capability interfaces and interchangeable bounded components). AnonyMate allows either of its recognition approaches to occupy the recognition stage. A Mova privacy experiment could use the same principle for comparing a rule system with a statistical alternative. Why Mova: equivalent surrounding processing makes comparisons clearer and limits the scope of a component replacement.
Idea: Distinguish annotation agreement from task correctness. Where: Annotation guidelines and training; NER performance. Area: evaluation interpretation. Mova: частково є (treeagree evidence and separate assessment gates). High agreement would support consistency of a privacy annotation scheme, but would not establish complete disclosure coverage. Why Mova: the system’s emphasis on explicit evidence benefits from naming exactly what each check establishes.
Idea: Evaluate retained conversational usefulness. Where: Coreference resolution and configurable anonymization description. Area: downstream evaluation. Mova: нове. A proposed experiment could compare Mova’s frame or world interpretation before and after an admitted transformation, without treating that comparison as a privacy guarantee. The paper motivates preservation through its aliasing design but does not report this evaluation. Why Mova: anonymized material is useful to its readers only if the relationships needed for the intended task remain interpretable.
The problem and its context
The paper begins from a familiar tension in conversational technology. Development requires examples of actual language use, yet real conversations can contain identifying information. A person asking a system for help may supply details that are useful in the immediate interaction but inappropriate to retain unchanged for later development. The authors connect this problem to restrictions introduced by GDPR and describe anonymization as part of their approach to storing historical conversational material.
Their target is specifically human–computer dialogue. This matters because the data are not restricted to a single subject area or a standardized document format. The historical logs come from projects spanning different domains. A useful detector therefore needs to recognize more than a narrowly defined class of personal names. It must handle addresses, identifiers and organizational references while also distinguishing entities that the platform wants to understand for other reasons.
The authors describe earlier automatic anonymization research as concentrating largely on medical records. Within that work, they identify both rule-driven approaches and approaches learned from annotated examples. Their references include systems based on semantic lexical resources, explicit de-identification procedures, support vector machines and learned detection of protected information. The paper does not present a benchmark against these earlier medical systems. They establish the methodological background and the contrast in application setting.
AnonyMate extends its operational concern beyond individuals. A conversation may identify a corporate client through an organization name, a product, a facility or a URL. The authors therefore create a corporate category alongside the personal category. This is not simply another entity label: it changes how recognition is connected to the organization’s retention requirements. A detector intended only to find people would leave these client-related references outside its declared target.
At the same time, not every named entity should automatically disappear. Language names, units and other semantic categories can help a conversational platform interpret an input or fill a slot. Slot filling means assigning a recognized value to a field relevant to an interaction. The authors want recognition to serve this broader purpose, so their tag inventory includes an “Other” group whose members are not ordinarily targets of anonymization.
This broader inventory creates an annotation problem before it creates an algorithmic problem. Reviewers must distinguish a company from its product, a private person from a well-known figure and a place-related category from another geographically interpreted category. Some distinctions depend on the meaning of the occurrence. Others depend on conventions about what belongs inside an entity span. A tag list alone cannot settle these decisions.
The paper consequently devotes substantial attention to linguistic annotation. It describes selecting material, preparing preliminary labels, training annotators, discussing disagreement and building an interface that supports consistent decisions. These activities are part of the method, not merely administrative preparation. The recognition systems learn from the distinctions that this process makes available.
The selection procedure addresses the authors’ expectation that entities would be sparse in ordinary chat material. They cite Lingren and colleagues’ work as support for dictionary-assisted pre-annotation and then use their own lexical resources to identify promising inputs. The paper presents this as a way to save annotation time. It does not report a separate experiment measuring the time saved in AnonyMate or independently estimating the effect of pre-annotation on its annotators.
The software architecture addresses another contextual difficulty: a project may be treated as monolingual even though some individual inputs are not. Sending an unexpected language into the project’s usual recognizer could leave identifying material undetected. Language identification therefore acts as a protective routing check. The authors do not treat project metadata as sufficient evidence of the language of every message.
Finally, a conversation is more than a collection of isolated sentences. A name may recur, and several people may be discussed. Replacing all names with the same generic marker would remove distinctions that later analysis might need. AnonyMate’s session-level reference handling responds to this problem by keeping anonymous identities consistent within the conversation. The privacy operation is therefore designed to preserve some discourse structure as well as remove surface forms.
The method, step by step
The paper’s method has a development side and a processing side. Development establishes the categories, annotated examples and recognition components. Processing applies those components to conversational inputs and then transforms selected entities. Keeping these sides separate helps explain why the paper contains annotation statistics, recognition comparisons and an architectural diagram rather than a single end-to-end score.
The processing path can be summarized as follows:
AnonyMate’s chat-processing pipeline
The steps in order.
The paper presents no mathematical equations. Its technical specification is given through category definitions, annotation conventions, component descriptions and evaluation results. The explanation below therefore follows those operational decisions without introducing a mathematical objective that the authors did not state.
Define what should be recognized
The authors begin by choosing 24 entity types expected in their historical chat material. These types are divided into personal, corporate and other entities. The division supports policy, while the individual labels support recognition. A later user can select which recognized categories should be transformed.
The personal group covers names and several ways of locating or identifying an individual. It includes addresses, postal codes, locations, email addresses, IP addresses and unique identifiers. The unique-identifier category includes such items as telephone numbers and social security numbers. Dates can also be sensitive in the relevant context, including birth dates.
The corporate group includes organization names, product names, facilities and URLs. These categories reflect the authors’ intention to protect client identity as well as personal identity. Their presence also creates contextual ambiguities: a commercial name may refer to an organization in one sentence and a product in another.
The remaining group covers entities that the platform may want to identify without ordinarily anonymizing them. Examples include nationalities and languages, geographical entities and events, and units in quantitative expressions. Other labels cover cultural references, medical or chemical expressions, teams, recognized groups and different kinds of figures. A miscellaneous category is available when an expression is clearly a named entity but does not fit the more specific inventory.
This inventory is application-driven. The authors do not claim that it is a universal taxonomy for every anonymization setting. Its value lies in making their desired distinctions explicit enough to annotate and evaluate. The division also prevents a recognizer’s full semantic range from being confused with the set of expressions that a particular policy should remove.
Select examples and prepare preliminary labels
The authors expect many conversational inputs to contain no named entities. To concentrate annotation effort, they use rules and dictionaries built from internal lexical resources to identify inputs more likely to contain an entity. The same procedure supplies initial entity suggestions.
This is a relatively simple recognizer used in data preparation. Its role differs from that of the systems evaluated later. It helps find and pre-label annotation candidates rather than serving as the final evidence that the data have been anonymized.
The paper connects this choice to earlier work on dictionary-based assistance for annotation. In AnonyMate itself, however, no separate annotation-speed measurement accompanies the description. Nor does the paper compare a fully manual annotation condition with a pre-annotated condition. The practical rationale is clear, while the size of its benefit remains unreported.
Selection and label distribution also need to be distinguished. The authors later say that they do not artificially increase the representation of rare entity categories. That decision concerns the distribution of labels in their assembled material. It does not undo the earlier selection of inputs likely to contain entities.
Establish annotation conventions
The guidelines direct annotators to interpret an expression in context. A familiar commercial term can describe a product in a statement about payment and an organization in a statement about the company. The occurrence determines the intended label; the spelling alone does not.
Boundary conventions depend in part on language. For an English expression consisting of a brand followed by an ordinary noun, only the name-bearing part is annotated. When the corresponding expression is a single compound word in Swedish, the entire word receives the entity annotation. The shared principle is to respect word boundaries, even when that produces different span shapes across languages.
Function words are generally excluded from the entity span unless they belong to the official name. This prevents an ordinary preceding determiner from becoming part of every entity while allowing names whose conventional form includes such material. The decision requires knowledge of the name, instead of a blanket rule that function words can never occur inside an entity.
The authors also supply guidance for categories involving judgment. Deciding whether a person belongs in a known-figure category, for instance, requires a convention about recognition or prominence. Similar guidance is needed for works of art and geographically interpreted labels. The paper acknowledges this through its training process instead of presenting every distinction as self-evident.
The annotation uses IOB encoding. This represents an entity as a sequence of word-level labels that distinguish the beginning of a span, its continuation and material outside an entity. Such an encoding lets a sequence recognizer learn both category assignment and span boundaries. The authors explicitly train annotators to decide where an entity starts and ends.
Train and coordinate the annotators
The annotation effort involves more than 15 contributors across 6 languages. The languages are English, German and Swedish, together with Spanish, Italian and French. Guidelines are intended to remain aligned across them while accommodating language-specific decisions.
After initial instruction, annotators work on a shared set of 300 sentences. The team then examines cases where their labels differ. This discussion gives the authors an opportunity to revisit difficult categories and clarify instructions before the larger annotation effort proceeds.
Annotators are also encouraged to resolve difficult examples collaboratively. That choice supports consistent decisions during resource development. It means the reported process is not simply a collection of isolated annotators applying an unchanging document without interaction.
Agreement is measured using Cohen’s kappa, a statistic that evaluates consistency between annotators while accounting for agreement expected from their label use. The authors compute it separately for annotator pairs on the shared material and report an average for each language. These figures characterize consistency under the chosen annotation scheme; they do not measure the privacy of transformed text.
Support review through an annotation interface
The in-house web interface assigns labels word by word through selection menus. Annotators can move through examples, defer difficult cases and return to them later. This supports a workflow in which uncertainty remains visible rather than forcing an immediate decision.
The interface also displays how a word has previously been labeled. An ambiguous name can therefore appear with a history of different categories. This gives the reviewer evidence of past decisions without necessarily declaring that the most common category is correct in the current sentence.
A regular-expression search facility lets reviewers inspect earlier occurrences and their contexts. This is important because a frequency display alone could encourage indiscriminate consistency. Contextual examples make it possible to see why the same surface expression legitimately received different labels.
The paper describes these interface features as support for consistent annotation. It does not report a controlled interface study separating the effect of label histories, search or deferred review. Their contribution is architectural and procedural rather than quantified individually.
Train the entity recognizers
The authors investigate conditional random fields, or CRFs, and a bidirectional recurrent architecture with CRF decoding. A CRF provides a way to assign a sequence of labels while taking relationships between neighboring output decisions into account. In this task, that is useful because an entity’s beginning and continuation labels are not independent decisions.
The CRF implementation uses CRFSuite. Its features include the current word, basic prefixes and suffixes, and regular-expression information. Prefixes and suffixes offer clues from word shape; regular expressions help recognize predictable strings involving digits or special characters, including email-like forms.
A further CRFSuite configuration adds clusters derived from word embeddings. The authors train word representations on their own data using the approach associated with Mikolov and colleagues, then apply K-means clustering. The resulting groups become features for entity recognition.
The intended benefit is a compact representation of contextual similarity. Words with related distributions can share a cluster feature even when their exact spellings differ. The authors explicitly connect this choice to maintaining a smaller representation than the complete word-embedding resource. They do not supply a measured storage or runtime comparison for that claim.
The alternative recognizer follows the bidirectional architecture with CRF decoding described by Lample and colleagues. “Bidirectional” means that the sequence representation incorporates information from both directions of the input. The authors implement this system in Tensorflow.
The paper names these architectures but does not reproduce their full training specification. It reports using default parameters for training and testing. It also notes that parameter tuning might improve performance. The results therefore compare the tested configurations rather than establishing the best achievable setting for each architecture.
Identify language before recognition
AnonyMate’s entity pipelines are language-specific. The language detector checks whether an input belongs in the intended pipeline instead of relying solely on the project under which the input was collected.
The detector uses OpenNLP’s Naïve Bayes approach and predicts 45 languages. Its training material combines internal project data with OpenSubtitles and Europarl. This combines conversationally relevant internal examples with external language resources.
The internal material is cleaned through a preliminary regular-expression procedure that identifies likely English inputs using frequent words. The authors also examine predictions from a preliminary cross-validation procedure to find problematic examples. These steps address noise in the language labels supplied by the project data.
In the final pipeline, an input identified as foreign to the intended language is removed from the logs instead of proceeding to entity recognition. This is a specific operational policy. The description does not imply that every input is automatically redirected to whichever supported recognizer matches its predicted language.
Track recurring entities
After entity recognition, AnonyMate performs basic session-level coreference resolution. Coreference concerns expressions that refer to the same entity. The paper’s concrete description focuses on repeated names within a user session.
A recurring name receives the same anonymous person identifier. A different name receives another identifier. The purpose is to retain distinctions between participants while replacing their identifying forms.
The paper does not provide a detailed algorithm for resolving aliases, pronouns or other less direct references. Its described capability should therefore be understood as basic session-level entity tracking, not as evidence of comprehensive discourse interpretation.
Apply the configured transformation
The final stage uses the recognized entities and the user’s selected policy. Users choose which entity types to anonymize. They also choose how those entities should appear afterward.
Suppression replaces the identifying text with a masking marker. Category replacement substitutes the entity type, preserving information such as whether the original expression was a location. Predetermined substitution uses a selected replacement expression, such as a generic city description.
These alternatives retain different information. A category label makes the semantic class explicit; a substitute can make the resulting text resemble an ordinary utterance more closely; a mask emphasizes that content has been removed. The paper describes the available choices without measuring their comparative effect on downstream interpretation.
Before these stages, preprocessing converts Unicode forms, removes non-printing characters, strips HTML and tokenizes the input. Tokenization divides the text into the units used by later processing. The paper lists the operations but does not specify detailed offset preservation or a character-by-character transformation record.
Experiments and results
The empirical evidence covers annotation agreement, entity recognition and language identification. These are separate evaluations. The paper does not combine them into a single measure of how much identifying information remains after the complete pipeline has processed a conversation.
Data scale and composition
The language-specific training sets vary in size. In Table 2, English has 62,231 entities, 586,637 tokens and 61,081 sentences. Its test set has 5217 entities, 51,078 tokens and 5097 sentences.
French training contains 33,075 entities across 382,099 tokens and 28,033 sentences. The French test material contains 5889 entities, 60,646 tokens and 4914 sentences. These counts show that sentence count alone does not describe how much entity supervision a language provides.
German has 73,052 training entities, 570,527 training tokens and 78,261 training sentences. Its test set contains 4083 entities, 30,768 tokens and 3949 sentences. Italian training contains 42,494 entities, 404,078 tokens and 39,609 sentences; its test set contains 5565 entities, 50,730 tokens and 4589 sentences.
Spanish training contains 35,583 entities in 357,045 tokens and 34,684 sentences. The test set contains 4495 entities, 34,451 tokens and 4437 sentences. Swedish has 53,218 training entities, 524,703 tokens and 60,830 sentences, with 2862 entities, 24,006 tokens and 2763 sentences in testing.
There is an internal inconsistency in the English training-token count. The prose gives 585,773, whereas Table 2 gives 586,637. The paper does not explain the discrepancy. It should not be silently resolved by selecting whichever version seems more plausible.
The authors preserve the observed distribution of entity types rather than artificially expanding the rarer categories. They say that personal and corporate categories are generally common, while URLs, IP addresses and email addresses are exceptions. They expect explicit patterns to help with these predictable forms despite their scarcity.
The authors also caution against interpreting training-set size as the sole determinant of recognition quality. Larger collections can cover a wider range of domains, which may make them more difficult. The experiments do not hold domain diversity constant while varying training size.
Annotation agreement
Average Cohen’s kappa is .89 for English and .89 for French. German receives .84, Italian .89, Spanish .75 and Swedish .90. The associated annotator counts are 9 for English, 3 for French, 6 for German, 2 for Italian, 4 for Spanish and 5 for Swedish.
These results support the claim that the annotation procedure produces substantial consistency under its own category scheme. They also reveal variation across languages, with Spanish having the lowest reported average. The paper does not provide a category-level disagreement analysis explaining that variation.
The averages should not be treated as identical experimental conditions. The number of annotators differs by language, and the paper reports pairwise agreement summarized into a language-level result. It does not provide a common uncertainty estimate that would support a precise significance claim about differences between languages.
English recognition comparisons
The entity evaluation follows the procedure associated with the CoNLL-2003 shared task. Recognition is assessed at the chunk level, meaning that the evaluated object is an entity span rather than an isolated correctly labeled token.
The unambiguous lexical baseline assigns a label when an entity has appeared with only one annotation in training. The frequency baseline assigns the most common training annotation for an entity. These baselines test how much can be achieved by reusing observed surface-form labels without the richer contextual recognition systems.
F1 combines precision and recall. Precision concerns how often predicted entities are correct, while recall concerns how much of the annotated entity set is recovered. The paper reports overall English F1 for each tested system.
English test-set entity recognition, overall F1
The contextual recognizers outperform lexical lookup, and the bidirectional system scores highest.
The numbers
| System or setting | F1 |
|---|---|
| Unambiguous lexical baseline | 45.0 |
| Most-frequent-label baseline | 57.5 |
| CRFSuite | 74.1 |
| CRFSuite with embedding clusters | 76.0 |
| BiLSTM with CRF decoding (this paper) | 79.2 |
The comparison supports several distinct observations. Remembering the most frequent label is stronger than using only unambiguous training occurrences. CRFSuite improves on both lexical procedures. Adding cluster features improves the tested CRFSuite configuration, while the bidirectional recognizer achieves the highest reported English score.
The authors use default settings, so this is not a controlled search for the best possible configuration of every architecture. No repeated-run variation or statistical significance test is reported. The results establish the observed ordering under the tested setup.
Recognition across languages
The multilingual comparison uses CRFSuite with embedding clusters. Each language is evaluated against its own lexical baselines. The chart shows the contextual system’s reported F1 across the language-specific test sets.
Language-specific test sets, clustered CRFSuite entity F1
The same recognition approach has different outcomes across the separately constructed language datasets.
The numbers
| System or setting | F1 |
|---|---|
| English CRFSuite | 76.0 |
| French CRFSuite | 84.9 |
| German CRFSuite (this paper) | 85.4 |
| Italian CRFSuite | 83.8 |
| Spanish CRFSuite | 80.8 |
| Swedish CRFSuite | 76.5 |
For French, the frequency baseline is 75.3 and the unambiguous baseline is 64.5. German’s corresponding baselines are 70.8 and 59.1. Italian’s are 72.9 and 67.7.
Spanish has frequency-baseline F1 of 68.9 and unambiguous-baseline F1 of 57.7. Swedish’s values are 62.5 and 52.8. Together with the English comparison, these results show that the contextual system exceeds both lexical baselines in every reported development language.
The language ranking is descriptive rather than a controlled ranking of linguistic difficulty. The datasets differ in size, content and domain range. A higher result for a language cannot be attributed to the language itself without separating these factors.
Personal and corporate categories
The paper also reports precision, recall and F1 for the personal and corporate groups. These group-level results matter because the complete tag inventory includes entities outside the usual anonymization target.
For English personal information, precision is 86.4, recall is 82.7 and F1 is 84.6. English corporate information has precision of 87.0, recall of 73.5 and F1 of 79.5. The distinction is consequential: comparable precision does not imply comparable coverage of the annotated target categories.
French personal information has precision of 89.4, recall of 89.4 and F1 of 89.3. Its corporate results are precision 85.3, recall 78.0 and F1 81.0. These are reported aggregates; the paper does not provide enough detail to reconstruct their averaging procedure.
German personal information receives precision of 92.7, recall of 89.6 and F1 of 91.1. German corporate information receives precision of 86.5, recall of 65.5 and F1 of 73.5. This illustrates why an overall entity score cannot substitute for examining the particular categories that a privacy policy targets.
For Italian, the personal group has precision of 88.7, recall of 86.0 and F1 of 87.1. The corporate group has precision of 87.5, recall of 73.0 and F1 of 77.8. Swedish personal information has precision of 89.1, recall of 83.7 and F1 of 86.1; its corporate figures are 84.5, 71.5 and 77.0.
Spanish personal information receives precision of 89.1, recall of 86.9 and F1 of 87.7. Its corporate information receives precision of 89.3, recall of 80.5 and F1 of 84.5. Across these results, the reported personal categories have stronger recall than the corresponding corporate categories.
The caption of Table 5 refers to English even though the rows cover the language set. The surrounding discussion presents the table as a multilingual report. This inconsistency in presentation does not justify inventing a different experimental setup.
The authors further report that the English clustered CRFSuite system reaches F1 of 75% or higher for every personal category and 70% or higher for every corporate category. They associate strong performance on predictable formats with regular-expression features. Exact numerical values for every category are not supplied in the accompanying prose.
Language identification
The language detector is trained on 182,087 sentences and evaluated on a separate set of 19,828 sentences. Following the described cleaning of internal data, it achieves F1 of 93.01%.
This result evaluates language prediction, not anonymization. A language error can affect which entity-processing path is taken, but the paper does not measure that downstream propagation. It also does not report per-language results, a confusion matrix or a separate analysis of especially short or mixed-language inputs.
What the ablations show
The paper offers a direct feature comparison and several diagnostic analyses, but it does not present a comprehensive ablation study of the complete anonymization pipeline.
Cluster features contribute in the English comparison
The clearest component comparison is CRFSuite with and without embedding clusters. Both configurations belong to the same recognition family, and the clustered version obtains the stronger English F1. This supports the limited conclusion that the additional feature is useful in the tested setup.
It does not establish why the feature helps. The paper does not separately analyze unseen words, ambiguous names or domains with sparse lexical coverage. These are plausible places where distributional information could matter, but the reported experiment does not isolate them.
Nor does the comparison establish the best clustering procedure. The paper does not compare different cluster inventories or report an alternative compact lexical representation. Its contribution is evidence for this particular feature addition, not a general ranking of representation-compression methods.
Lexical baselines reveal the value of richer recognition
The unambiguous and frequency baselines expose how much label reuse can achieve. Their difference demonstrates that limiting lookup to unambiguous training evidence leaves useful cases untreated. The stronger contextual systems show that the tested task benefits from more than a stored association between a familiar expression and its usual label.
However, this is not a clean ablation of context alone. The contextual systems differ from lookup in architecture, features and sequence treatment. The experiment supports their practical advantage over the chosen baselines without identifying a single causal source for that advantage.
The comparison is still valuable because it prevents the final score from standing alone. A reader can see whether the recognizer merely reproduces what a simple dictionary would do. In this application, the lexical baselines leave substantial room for the trained systems.
Category analysis exposes different error patterns
The group-level personal and corporate results reveal differences that an overall score would hide. The corporate group’s lower recall is especially relevant to the authors’ stated objective of protecting clients. A system can have high precision among its corporate predictions while still failing to recover a meaningful portion of the annotated corporate entities.
The per-category discussion adds another clue: tags associated with multiword entities tend to score lower. The authors suggest further error analysis because exact chunk scoring may penalize a prediction that captures only part of an entity. This observation identifies an important evaluation question without settling it.
Partial detection may help a replacement stage, but its usefulness depends on what remains. Detecting part of a name and masking that portion could reduce exposure, leave an identifying fragment or interfere with later processing. The paper does not report a controlled comparison among these outcomes.
Data frequency and predictable form are different sources of evidence
The authors observe an association between category frequency and recognition performance. They suggest that additional examples could help weaker categories. This is an observational analysis instead of an experiment that increases training material while holding everything else constant.
Their handling of IP addresses offers a different response to scarce data. Rather than depending on learned recognition for an underrepresented category, they use explicit patterns. This is a sensible architectural distinction in the reported design, but there is no dedicated IP-address evaluation showing the replacement’s precision and recall.
The same caution applies to email and digit-pattern features. The authors attribute strong results for predictable categories to these features, yet do not report a separate removal experiment for each pattern family. The explanation is supported by the form of the categories and the architecture, rather than by a complete set of feature-specific ablations.
Language-data cleaning is reported as a process
The paper describes preliminary English detection and cross-validation analysis as ways to clean internal language data. It then reports the final language-identification score. It does not provide a full before-and-after series that separates the contribution of each cleaning step.
As a result, the final result should not be used to claim an independently measured improvement from either procedure. What is established is that the authors used those procedures in constructing the evaluated detector. Their individual effects remain unspecified.
Limitations
AnonyMate is best understood as a documented toolkit with component evaluations. Its operational design is useful, and its recognition comparisons are informative, but the strength of its privacy claims must be assessed against what was actually measured.
Limits the authors identify
The authors acknowledge that their training configurations use default parameters. They therefore leave open the possibility that tuning would improve recognition. The reported architecture ordering should not be interpreted as a result of equally extensive optimization across every system.
They also recognize that multiword entities are difficult under exact chunk evaluation. Names, addresses, facilities and organizations can receive a low score when a predicted boundary differs from the annotated span. The authors propose further analysis of such errors rather than claiming that their significance has already been resolved.
The paper identifies a relationship between category frequency and performance and suggests adding data for weaker categories. This indicates that the existing resource does not provide equally strong supervision for every tag. Retaining observed frequencies preserves one aspect of the collected material while leaving sparse categories challenging.
IP addresses are an explicit example of inadequate training coverage. The authors remove that category from learned recognition and handle it through regular expressions. This narrows what the learned recognizer itself is responsible for, but it also creates a separate rule component whose evaluation is not reported.
The authors further note that larger datasets can cover more domains. This limits any simple explanation based on sentence count. More material need not mean an easier recognition task if the material introduces additional vocabulary, entity types in new contexts or different conversational purposes.
Limits visible in the evaluation design
A careful reader should distinguish entity-detection quality from complete de-identification. The paper reports chunk-level recognition results. It does not count residual identifying expressions in the final output, measure successful re-identification or define a release threshold based on such a test.
The introduction states a strong objective for historical data: retained material should not contain personal identifying information. That is an operational aim. The measured recognition scores do not demonstrate universal achievement of that aim, particularly when recall is below complete recovery of the annotated entities.
Exact chunk evaluation and privacy evaluation can disagree in either direction. A boundary mistake may still remove the most identifying part of an expression. Conversely, a correctly labeled entity does not establish that all indirectly identifying context has been removed. The paper’s categories and tests do not cover every possible way that a conversation might identify someone.
The authors suggest that partially finding a chunk may be sufficient for anonymization in some cases. This is presented as a reason for further investigation, not supported by a separate residual-disclosure experiment. A reader should retain that distinction rather than converting the suggestion into a guarantee.
Recognition and transformation also have different failure modes. A detector can miss an entity, assign the wrong category or choose the wrong boundary. A transformation can then apply the wrong policy, fail to preserve an intended distinction or leave material outside the predicted span. The paper does not report these outcomes as separate end-to-end error categories.
Limits of the annotated resource
The material comes from historical project logs across several domains. This supports the authors’ practical setting, but the paper does not provide a detailed domain-by-domain breakdown or a held-out-domain experiment. Generalization to a new client domain is therefore not established by the language-level results alone.
The annotation procedure selects inputs likely to contain entities. This is useful for producing supervision, but it complicates interpretation of prevalence. The resulting entity frequencies should not automatically be read as frequencies in unrestricted conversational traffic.
Pre-annotation may also shape what reviewers attend to. The authors cite previous findings supporting dictionary-assisted annotation, but do not run an AnonyMate-specific control measuring bias from suggestions. The existence of human review does not by itself settle that question.
Average annotation agreement cannot establish that every important category is consistently interpreted. A difficult category can be rare enough to contribute little to an aggregate measure. The paper does not report category-level kappa or a detailed account of which disagreements persist after guideline revision.
The use of collaborative decisions is appropriate for building a coherent resource, but it also means agreement statistics must be interpreted within that development process. The paper does not present an independent audit of annotation completeness against a separate privacy specification.
Limits of the recognition comparisons
The English architecture comparison is more extensive than the multilingual architecture comparison. The multilingual table reports the clustered CRFSuite approach and lexical baselines. It does not establish that the bidirectional recognizer has the same advantage in every other language.
The paper does not report uncertainty intervals or repeated training variation. Differences in reported F1 are observed results, but their stability under another training run or resampled evaluation is not quantified.
The internal data and tag scheme also make comparison with external recognition results difficult. The paper follows the CoNLL evaluation procedure, but that does not turn its conversational dataset into the CoNLL dataset. A shared scoring method does not ensure a shared distribution or annotation target.
The word-clustering approach is motivated partly by compactness. However, the paper gives no measured memory footprint, processing throughput or latency comparison. Its results support recognition usefulness, while the operational size advantage remains a design rationale rather than a quantified tradeoff.
Limits of language routing and identity tracking
The detector covers more languages than the entity-recognition development described in the paper. Language identification coverage should therefore not be mistaken for anonymization coverage. Predicting a language is different from having a tested recognition pipeline for that language.
The policy of removing foreign-language inputs avoids sending them unchanged through an unsuitable recognizer, but it can also discard useful material. The paper does not evaluate the balance between protective rejection and unnecessary loss. It also does not specify confidence-based treatment of uncertain language predictions.
There is no separate analysis of code-switching. A conversation or even an individual input may not fit neatly into one language label, but the reported results do not establish behavior for that condition. The overall detector score cannot resolve it.
The coreference component receives no independent accuracy evaluation. The examples explain consistent replacement of repeated names, but the paper does not show how well the system handles variant spellings, shared names, pronouns or mistaken identity merges. These cases affect both privacy and the relational information retained.
Finally, stable anonymous identifiers preserve information as well as remove it. That preservation is useful for conversational analysis, but the paper does not quantify whether particular replacement strategies retain too much or too little for a chosen use. The available modes are configurable mechanisms, not experimentally ranked privacy guarantees.
What came after
The later citation record places AnonyMate alongside work on responsible data handling, text anonymization and conversational corpus construction. It establishes that the later works cite the paper. It does not establish which component they adopted, whether they reused the toolkit or whether they reproduced its experiments.
Pile of Law: Learning Responsible Data Filtering from the Law and a 256GB Open-Source Legal Dataset appears in 2022. Its title places responsible filtering and legal data at the center of the work. That is a broader data-governance setting than AnonyMate’s chat-processing pipeline. The citation connects the works, but the available account does not specify how AnonyMate informed the filtering procedure or any particular legal-data decision.
Multi-Token Completion for Text Anonymization appears in 2026 and names text anonymization directly. Its title also foregrounds completion across multiple tokens, which is relevant to a general challenge visible in AnonyMate’s discussion of entity spans. The citation alone does not show that the later method addresses the same error cases, follows the same replacement policy or compares against AnonyMate. Those stronger relationships remain unknown.
ForumOccitania: A Corpus of User-Generated Content for Multiple Occitan Varieties also appears in 2026. Its stated subject is a corpus of user-generated material across Occitan varieties. This places the citation in a resource-building context where language variety and the handling of contributed text are relevant concerns. The available record does not identify an anonymization procedure, an adopted annotation scheme or a measured effect attributable to AnonyMate.
These citations show the paper remaining relevant across neighboring data-processing settings. They do not support a narrative in which every later work extends the same algorithm. The continuing value that can be assessed directly is AnonyMate’s explicit decomposition of the task: decide what counts as sensitive, build reviewable annotations, verify the language path, detect entities, preserve intended reference structure and apply a declared transformation policy.
Cite
Cite as Allison Adams, Eric Aili, Daniel Aioanei, Rebecca Jonsson, Lina Mickelsson, Dagmar Mikmekova, Fred Roberts, Javier Fernandez Valencia and Roger Wechsler. 2019. AnonyMate: A Toolkit for Anonymizing Unstructured Chat Data. Proceedings of the Workshop on NLP and Pseudonymisation.
@inproceedings{adams2019anonymate,
title = {{AnonyMate: A Toolkit for Anonymizing Unstructured Chat Data}},
author = {Allison Adams, Eric Aili, Daniel Aioanei, Rebecca Jonsson, Lina Mickelsson, Dagmar Mikmekova, Fred Roberts, Javier Fernandez Valencia and Roger Wechsler},
booktitle = {Proceedings of the Workshop on NLP and Pseudonymisation},
year = {2019},
url = {https://aclanthology.org/W19-6501/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/adams-2019-anonymate-toolkit-anonymizing-unstructured-chat/