A recent study evaluated five open-source anonymization tools using 2,000 synthetic documents, including contracts and medical records. The research revealed that even the most effective tools failed to redact sensitive information in approximately one-third of the documents tested.

The tested tools included pii-guard, GLiNER Guard Omni, Presidio, OpenAI privacy-filter, and Prompt Anonymizer. The benchmark focused on identifying personal data such as names, addresses, and identification numbers in both Russian and British English documents.

The author introduced pii-roundtrip, an open-source engine designed to replace sensitive data with labels before processing by neural networks and restoring the original values afterward. This tool uses AES-256-GCM encryption for storing mappings locally.

In the final test set, pii-roundtrip achieved a leakage rate of 0.3% for Russian documents and 0.2% for British documents. While it passed recognition thresholds, the tool encountered challenges with Russian name declension, failing to meet the 99% recovery threshold for names due to errors in the pymorphy3 dictionary handling.