Skip to main content

meddeid-language-en

Versioned English language capabilities for MedDeID. The package deliberately contains two locale profiles rather than a generic en profile:

  • en-GB covers England, Scotland, Wales, and Northern Ireland.
  • en-US covers 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.1
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

Metadata

Release files for meddeid-language-en 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for meddeid-language-en 0.2.1
File Size Uploaded
meddeid_language_en-0.2.1.tar.gz 12.3 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for meddeid-language-en 0.2.1
File Interpreter ABI Platform
meddeid_language_en-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 25.2 MB

Release files / meddeid_language_en-0.2.1.tar.gz

Download URL meddeid_language_en-0.2.1.tar.gz
Size 12.3 MB
Tags Source
SHA-256 checksum
How to use checksums
2fd319243c77f7cfaadce354517c8d8c349c5fce24fba184ff1442137eb28962
BLAKE2b-256 checksum
How to use checksums
ae6e02e4e8d1330b1e1eb5a99e06b8c3fc6025f1bd8afe65a076a0433ac70105
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 5, 2026.

Transparency log

Release files / meddeid_language_en-0.2.1-py3-none-any.whl

Download URL meddeid_language_en-0.2.1-py3-none-any.whl
Size 12.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
d33f38622136f5a1c00432e07d7e7af5547d0f51189c9910c6e175dbc70ddb0f
BLAKE2b-256 checksum
How to use checksums
9b96825255de1dd826e5ebe6b6b227a56f0c8d9693c4a130ae38865dc845ba83
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 5, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page