meddeid-language-en
Versioned English language capabilities for MedDeID. The package deliberately
contains two locale profiles rather than a generic en profile:
en-GBcovers England, Scotland, Wales, and Northern Ireland.en-UScovers the 50 states, District of Columbia, Puerto Rico, U.S. Virgin Islands, Guam, American Samoa, and the Northern Mariana Islands.
Bare en is rejected because numeric dates, addresses, identifiers, clinical
terminology, and synthetic-safe phone ranges differ materially between the two
profiles.
The Python package provides post-processing, structured lookup records, resource manifests, date/age parsing and pseudonymization. The npm package provides matching subannotation profiles for the browser toolchain.
English parsing and wording use the same suite-wide declarative age policy as
every other profile; there is no independent English maximum-age algorithm.
Trusted full patient.birth_date values are expanded only into bounded,
locale-correct full-year representations.
Mixed-locale subannotation
meddeid-subannotate can route a mixed corpus without splitting it. Install
this package and pin both ordinary profiles in one workspace:
npm install --no-save @meddeid/language-en@0.2.0
npm run profile -- set en-GB en-US
The application selects a child profile by an exact metadata.lang match for
each document. It fails when metadata is missing or unsupported rather than
guessing. The router manifest pins both profile descriptors and their lookup
hashes, while every document continues to use only its locale's rules.
Resource workflow
python -m meddeid_language_en.resources audit --profile en-GB
python -m meddeid_language_en.resources audit --profile en-US
python -m meddeid_language_en.resources fetch --profile en-US --cache-dir .cache/sources
python -m meddeid_language_en.resources build --profile en-US --cache-dir .cache/sources
python -m meddeid_language_en.resources diff --profile en-US --cache-dir .cache/sources
fetch verifies the source hash recorded in sources/*/sources.lock.json.
build is deterministic and writes only licence-compatible derived records.
Unrestricted raw downloads remain in the ignored cache. Each runtime record
retains its source identifier and regional scope.
The committed audits enforce minimum counts and category-level regional coverage, verify provenance completeness and logical multi-file hashes, and report malformed values, duplicate keys, semantic collisions, count regressions, and source drift. Current builds contain roughly 326,000 GB and 345,000 US structured lookup records; exact counts and hashes are recorded in the profile audit manifests.
The included resources are designed for recognition and deterministic synthetic generation. Real given-name and family-name tokens are sampled independently; no person-level source records are ingested. Public institution, street, and locality names may be used, while phones, email domains, and identifiers use official fictional/test or deliberately non-assignable forms.
Synthetic labels
English synthetic generation uses the 14-label token-classifier taxonomy and
must never emit Anonymize_Other. The full 15-label MedDeID taxonomy remains
valid for annotation import and other interoperability paths.
The generation allowlist, in its load-bearing order, is exactly:
Address_Location:Caregiver
Address_Location:Other
Address_Location:Patient
Age_Birthdate
Contactdetails
Date
ID:Caregiver
ID:Patient
Name:Caregiver
Name:Other
Name:Patient
Organization:Healthcare
Organization:Other
Profession
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file meddeid_language_en-0.2.0.tar.gz.
File metadata
- Download URL: meddeid_language_en-0.2.0.tar.gz
- Upload date:
- Size: 12.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88a0aada38e21e4e5e3ac59b59850b8fe40c96e1c70536383032aa9c2bf9f91f
|
|
| MD5 |
8f18177bcd02ba4cc6278f071610805c
|
|
| BLAKE2b-256 |
be3e8f0c1f9b3c8db72916471d1c74944cd48d92b18d06c260d2fc1b15d39ea0
|
Provenance
The following attestation bundles were made for meddeid_language_en-0.2.0.tar.gz:
Publisher:
publish-python.yml on stighellemans/meddeid-language-en
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
meddeid_language_en-0.2.0.tar.gz -
Subject digest:
88a0aada38e21e4e5e3ac59b59850b8fe40c96e1c70536383032aa9c2bf9f91f - Sigstore transparency entry: 2617246125
- Sigstore integration time:
-
Permalink:
stighellemans/meddeid-language-en@cf624a922c83bcd0a53bc7ca284d191ded226282 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/stighellemans
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yml@cf624a922c83bcd0a53bc7ca284d191ded226282 -
Trigger Event:
push
-
Statement type:
File details
Details for the file meddeid_language_en-0.2.0-py3-none-any.whl.
File metadata
- Download URL: meddeid_language_en-0.2.0-py3-none-any.whl
- Upload date:
- Size: 12.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6a19ea8088aac55941972e7e83074898ac54cf3db9a090bac067ffdc0bb0f72
|
|
| MD5 |
9a0455f97ec778d903903e36d6c28a66
|
|
| BLAKE2b-256 |
3a84afd2a270ba0069394d32462a1691497624ff221b84894871f6a22b044a74
|
Provenance
The following attestation bundles were made for meddeid_language_en-0.2.0-py3-none-any.whl:
Publisher:
publish-python.yml on stighellemans/meddeid-language-en
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
meddeid_language_en-0.2.0-py3-none-any.whl -
Subject digest:
a6a19ea8088aac55941972e7e83074898ac54cf3db9a090bac067ffdc0bb0f72 - Sigstore transparency entry: 2617246149
- Sigstore integration time:
-
Permalink:
stighellemans/meddeid-language-en@cf624a922c83bcd0a53bc7ca284d191ded226282 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/stighellemans
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yml@cf624a922c83bcd0a53bc7ca284d191ded226282 -
Trigger Event:
push
-
Statement type: