Safe fake Indian personal data, labelled for testing PII detectors: Aadhaar, PAN, GSTIN, UPI and more in English, Hindi, Hinglish and Odia
Realistic bank chats, KYC requests and call-centre notes in English, Hindi, Hinglish and Odia, with fake Aadhaar, PAN, GSTIN, UPI, IFSC, phone, email and PIN code values inside. Every value is labelled with its exact position, so you can measure what your privacy tool catches and what it misses.
Under India's DPDP Act, teams mask personal data before it reaches logs, analytics and AI models. To trust that masking, you need test data that looks like what Indian users actually type. Two problems get in the way:
pip install nakli-data nakli demo From source: git clone https://github.com/Malaya-kumar-swain/nakli-data && cd nakli-data && pip install -e .
700 messages, seed 7, spread evenly over 4 languages and 7 writing styles. Each detector is scored only on the types it says it supports. Run on 13 Nov 2026.
How it was run: Presidio's pattern recognisers (Aadhaar, PAN, GSTIN, email, phone) were called directly, without an NLP model, so names were not scored for Presidio. Its context words, which can raise scores, also need that model. Results with a full Presidio setup may differ.
nakli generate --n 700 --seed 7 --out bench.jsonl nakli score --data bench.jsonl --detector regex nakli score --data bench.jsonl --detector vismriti # pip install vismriti nakli score --data bench.jsonl --detector presidio # pip install presidio-analyzer nakli score --data bench.jsonl --detector presidio-strict What it generates Type Rules followed AADHAAR 12 digits, first digit 2 to 9, Verhoeff check digit, no palindromes PAN 5 letters, 4 digits, 1 letter; 4th letter P (individual), 5th letter the surname's first letter GSTIN State code, PAN, entity number, Z, and the correct check character UPI name.surname42@okaxis style IDs on common handles IFSC Bank code, 0, then a 6-character branch code PHONE Indian mobile, starting 6 to 9 EMAIL Only reserved example domains (example.com, example.org, example.net) PINCODE 6 digits, first digit 1 to 8 PERSON Fictional combinations of common Indian first names and surnames, in Latin, Devanagari or Odia script Languages: English, Hinglish, Hindi (Devanagari) and Odia. Writing styles: plain, compact, hyphen, indic_digits, zero_width, homoglyph (look-alike letters), line_break.
{"id": "nk-7-00012", "lang": "hi", "variant": "indic_digits", "text": "नमस्ते, मैं प्रिया दास हूँ। मेरा आधार नंबर २३४५ ६७८९ ०१२४ है ...", "entities": [{"type": "AADHAAR", "start": 43, "end": 57, "text": "२३४५ ६७८९ ०१२४", "value": "234567890124", "variant": "indic_digits"}]} Use it from Python from nakli import generate, score records = generate(n=280, seed=7) # same seed, same data def my_detector(text): # return (start, end, type) for each finding ... report = score(records, my_detector, "my-detector", types=["AADHAAR", "PAN", "PHONE"]) print(report.to_markdown()) You can also score from the command line with nakli score --detector mypackage.module:my_detector. Add --fail-below 0.9 to fail a CI pipeline when recall drops.
synthetic-data test-data pii dpdp india aadhaar presidio privacy evaluation indic
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




