AI context to anonymize personal data in English text
AI context that replaces personal data in English text (names, emails, phones, addresses, SSNs, medical record numbers) with tags before sharing it.
Instruction système
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.
Exemples few-shot
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].
Connaissances
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.
Coût estimé
Tokens d'entrée par appel : ≈ 503
| Modèle | Par appel | Pour 1 000 appels |
|---|---|---|
| Mistral Large · Mistral AI | 0,00022 € | 0,22 € |
| DeepSeek Flash · DeepSeek | 0,00013 € | 0,13 € |
| DeepSeek V4 Pro · DeepSeek | 0,00059 € | 0,58 € |
| GPT-6 Luna · OpenAI | 0,00004 € | 0,04 € |
| 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 € |
| Modèle open source hébergé chez soi (Ollama, vLLM) | 0 € d'API (coût du serveur seulement) | |
Coût d'entrée seulement, sans la réponse du modèle. Prix publics des fournisseurs (Mistral AI, DeepSeek, OpenAI, Anthropic), tarif standard en dollars converti en euros au taux BCE du 29 septembre 2026. Estimation : 1 token ≈ 3,6 caractères.
Commun aux 3 régions
Contenu créé par l'auteur, sans source extérieure.
Usage commercial autorisé · citer l'auteur · modifications permises.
Texte ou données seuls : aucun accès aux fichiers, au réseau ni aux commandes.
Hébergé en France (Scaleway, Paris). Aucun transfert hors UE.
Union européenne · 5/5
Fictives : noms, adresses et numéros inventés, aucune personne réelle.
Pas de données d'entraînement : pas de résumé à fournir.
États-Unis · 5/5
Fictives : noms, adresses et numéros inventés, aucune personne réelle.
Pas de données d'entraînement : pas de documentation à publier.
Chine · 5/5
Fictives : noms, adresses et numéros inventés, aucune personne réelle.
Pas de données d'entraînement ; les contenus générés par IA diffusés en Chine doivent être marqués (2025).
Synthèse indicative au 30/09/2026, sans valeur de certification juridique. Méthode et sources →
Figer une version dans votre code
import contexte c = contexte.load("contextetech/anonymize-english-text", version=1) messages = c.messages("votre entrée ici")
$ contexte get hx10ow#v1 Statistiques
J'aime : 0 · Commentaires : 0
Cliquez sur un compteur pour l’afficher ou le masquer, survolez le graphique pour le détail. Une vue par visiteur et par jour, robots exclus ; décompte commencé le 30 septembre 2026.
- Identifiant
- contextetech--anonymize-english-text
- Type
- Contextes · Few-shot
- Fichier
- anonymize-english-text.json
- Format
- JSON (application/json)
- Taille
- 3 683 octets (3,6 Ko)
- Encodage
- UTF-8
- Exemples
- 3
- Tokens estimés
- ≈ 1 023
- Langue
- Anglais
- Licence
- CC BY 4.0
- Usage commercial
- Autorisé
- Données personnelles
- Fictives (inventées)
- Version
- 1.0
- Publié le
- 2 octobre 2026 à 21:54
- Mis à jour le
- 2 octobre 2026 à 21:54
- Stockage
- en base
- Utilisations
- 0
- J'aime
- 0
Python contexte
$ pip install contexte import contexte c = contexte.load("contextetech/anonymize-english-text") messages = c.messages("votre entrée ici")
$ contexte get hx10ow 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.",
"tags": [
"pii",
"hipaa",
"ccpa"
],
"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}}"
}
]
}
Communauté
Pas encore de commentaire. Partagez votre retour, il aidera les suivants.