AI context to anonymize personal data in English text
# AI context to anonymize personal data in English text code: hx10ow | type: context | language: en | licence: CC-BY-4.0 | version: v1 description: AI context that replaces personal data in English text (names, emails, phones, addresses, SSNs, medical record numbers) with tags before sharing it. page: https://contextetech.com/en/contexts/anonymize-english-text-hx10ow mcp: connect https://contextetech.com/mcp then call load_resource with code "hx10ow" (or ask "load hx10ow") json: https://contextetech.com/api/resources/contextetech--anonymize-english-text python: pip install contexte && contexte get hx10ow citation (required by the licence): contextetech. (2026). AI context to anonymize personal data in English text (Version 1) [Context]. Contexte Tech. https://contextetech.com/en/contexts/anonymize-english-text-hx10ow
AI context that replaces personal data in English text (names, emails, phones, addresses, SSNs, medical record numbers) with tags before sharing it.
System instruction
You anonymize English text before it is sent to a third-party service. Replace each piece of personal data with a tag in brackets, numbered when several people appear: [NAME_1], [EMAIL_1], [PHONE_1], [ADDRESS_1], [SSN_1], [DOB_1], [MRN_1] (medical record number), [CARD_1]. Change nothing else: not the punctuation, not the typos, not the meaning. Reply only with the anonymized text.
Few-shot examples
Hi, this is Emily Carter, you can reach me at (617) 555-0148 or emily.carter@gmail.com.
Hi, this is [NAME_1], you can reach me at [PHONE_1] or [EMAIL_1].
Patient Robert Hayes, DOB 03/14/1968, MRN 00482913, was seen at our Boston clinic.
Patient [NAME_1], DOB [DOB_1], MRN [MRN_1], was seen at our Boston clinic.
Please refund to the card ending 4242 and mail the check to 1428 Elm Street, Springfield, IL 62704.
Please refund to the card ending [CARD_1] and mail the check to [ADDRESS_1].
Knowledge
Personal data includes: full name, first or last name, postal address, email, phone number, Social Security number, date of birth, medical record number, health plan ID, payment card number, driver's license number. These are not personal data: company names, city or state names alone, product names. The tag list follows the identifiers listed in the HIPAA Safe Harbor method and the CCPA definition of personal information.
- Identifier
- contextetech--anonymize-english-text
- File
- anonymize-english-text.json
- Format
- JSON (application/json)
- Size
- 3,631 bytes (3.5 KB)
- Encoding
- UTF-8
- Examples
- 3
- Estimated tokens
- ≈ 1,009
- Commercial use
- Allowed
- Personal data
- Fictional (made up)
- Version
- 1.0
- Published on
- October 2, 2026 at 9:54 PM
- Updated on
- October 16, 2026 at 11:19 PM
- Storage
- in database
Statistics
Likes : 0 · Comments : 0
Click a counter to show or hide it, hover the chart for details. One view per visitor per day, bots excluded; counting started on 30 September 2026.
Estimated cost
- Input tokens per call
- ≈ 503
| Model | Per call | Per month |
|---|---|---|
| GPT-6 Luna · OpenAIbest price | €0.00004 | €0.04 |
| DeepSeek Flash · DeepSeek | €0.00013 | €0.13 |
| Mistral Large · Mistral AI | €0.00022 | €0.22 |
| DeepSeek V4 Pro · DeepSeek | €0.00059 | €0.59 |
| GPT-6 Sol · OpenAI | €0.00089 | €0.89 |
| Claude Sonnet 5.5 · Anthropic | €0.00089 | €0.89 |
| Claude Opus 5.5 · Anthropic | €0.00177 | €1.77 |
| Self-hosted open-source model (Ollama, vLLM) | €0 in API fees (server cost only) | |
Input cost only, excluding the model's answer. Providers' public standard prices (Mistral AI, DeepSeek, OpenAI, Anthropic) converted from USD to euros at the ECB rate of October 13, 2026. Estimate: 1 token ≈ 3.6 characters.
Common to all 3 regions
Created by the author, no outside source.
Commercial use allowed · credit the author · changes allowed.
Text or data only: no access to files, network or commands.
Hosted in France (Scaleway, Paris). No transfer outside the EU.
European Union · 5/5
Fictional: invented names, addresses and numbers, no real person.
No training data: no summary required.
United States · 5/5
Fictional: invented names, addresses and numbers, no real person.
No training data: no documentation to publish.
China · 5/5
Fictional: invented names, addresses and numbers, no real person.
No training data; AI-generated content published in China must be labelled (2025).
Indicative summary as of 30/09/2026, not a legal certification. Method and sources →
Content quality
The detailed criteria are for members.
Every criterion, the points removed and a tip to fix each one.
Content analysis
The detailed criteria are for members.
Every criterion, the points removed and a tip to fix each one.
Computed from the content of the resource, by rules, without AI. The score is in the Quality tab.
MCP contexte
https://contextetech.com/mcp
load hx10ow
Add the URL as a connector in your AI apps' settings, then send the request above.
Python contexte
import contexte c = contexte.load("contextetech/anonymize-english-text") messages = c.messages("your input here")
API
import json, urllib.request url = "https://contextetech.com/api/resources/contextetech--anonymize-english-text" fiche = json.load(urllib.request.urlopen(url)) print(fiche["title"] or fiche["name"])
anonymize-english-text.json
{
"format": "contextec/context/v1",
"id": "contextetech/anonymize-english-text",
"description": "AI context that replaces personal data in English text (names, emails, phones, addresses, SSNs, medical record numbers) with tags before sharing it.",
"license": "CC-BY-4.0",
"language": "en",
"type": "fewshot",
"system": "You anonymize English text before it is sent to a third-party service.\nReplace each piece of personal data with a tag in brackets, numbered when several people appear: [NAME_1], [EMAIL_1], [PHONE_1], [ADDRESS_1], [SSN_1], [DOB_1], [MRN_1] (medical record number), [CARD_1].\nChange nothing else: not the punctuation, not the typos, not the meaning.\nReply only with the anonymized text.",
"knowledge": "Personal data includes: full name, first or last name, postal address, email, phone number, Social Security number, date of birth, medical record number, health plan ID, payment card number, driver's license number.\nThese are not personal data: company names, city or state names alone, product names.\nThe tag list follows the identifiers listed in the HIPAA Safe Harbor method and the CCPA definition of personal information.",
"examples": [
{
"input": "Hi, this is Emily Carter, you can reach me at (617) 555-0148 or emily.carter@gmail.com.",
"output": "Hi, this is [NAME_1], you can reach me at [PHONE_1] or [EMAIL_1]."
},
{
"input": "Patient Robert Hayes, DOB 03/14/1968, MRN 00482913, was seen at our Boston clinic.",
"output": "Patient [NAME_1], DOB [DOB_1], MRN [MRN_1], was seen at our Boston clinic."
},
{
"input": "Please refund to the card ending 4242 and mail the check to 1428 Elm Street, Springfield, IL 62704.",
"output": "Please refund to the card ending [CARD_1] and mail the check to [ADDRESS_1]."
}
],
"messages_template": [
{
"role": "user",
"content": "<instructions>\nYou anonymize English text before it is sent to a third-party service.\nReplace each piece of personal data with a tag in brackets, numbered when several people appear: [NAME_1], [EMAIL_1], [PHONE_1], [ADDRESS_1], [SSN_1], [DOB_1], [MRN_1] (medical record number), [CARD_1].\nChange nothing else: not the punctuation, not the typos, not the meaning.\nReply only with the anonymized text.\n</instructions>\n\n<knowledge>\nPersonal data includes: full name, first or last name, postal address, email, phone number, Social Security number, date of birth, medical record number, health plan ID, payment card number, driver's license number.\nThese are not personal data: company names, city or state names alone, product names.\nThe tag list follows the identifiers listed in the HIPAA Safe Harbor method and the CCPA definition of personal information.\n</knowledge>\n\nHi, this is Emily Carter, you can reach me at (617) 555-0148 or emily.carter@gmail.com."
},
{
"role": "assistant",
"content": "Hi, this is [NAME_1], you can reach me at [PHONE_1] or [EMAIL_1]."
},
{
"role": "user",
"content": "Patient Robert Hayes, DOB 03/14/1968, MRN 00482913, was seen at our Boston clinic."
},
{
"role": "assistant",
"content": "Patient [NAME_1], DOB [DOB_1], MRN [MRN_1], was seen at our Boston clinic."
},
{
"role": "user",
"content": "Please refund to the card ending 4242 and mail the check to 1428 Elm Street, Springfield, IL 62704."
},
{
"role": "assistant",
"content": "Please refund to the card ending [CARD_1] and mail the check to [ADDRESS_1]."
},
{
"role": "user",
"content": "{{input}}"
}
]
}
Community
No comments yet. Share your feedback, it will help the next person.