Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

orthography2ipa

orthography2ipa turns the spelling of a language into IPA, and it measures how languages relate to each other. Each language is a cited JSON spec in orthography2ipa/data/. A shared engine with no language-specific code turns the specs into transcriptions and into ranked pronunciation lattices. The library ships no trained weights.

The registry holds thousands of language codes, from major standard languages to dialects, creoles and reconstructed proto-languages. Most of them are stubs. The language explorer shows each one.

Install

uv pip install --prerelease=allow orthography2ipa

CONTRIBUTING.md sets up a clone of the repository for development.

Quick start

import orthography2ipa

orthography2ipa.transcribe("olá mundo", "pt")       # 'oˈla ˈmũdu'

docs/guide/getting_started.md is the tutorial that starts from this call. It covers the dependencies and the optional extras, the two maps of a spec, beam search, language lookup, the command line, plugins and the explorer.

Documentation

You want to Read
Find a page by task docs/index.md
Rank the readings of an ambiguous spelling, or rescore them docs/engine/lattice.md
Export the lattice as features for a CRF or another ML model docs/engine/lattice.md
Measure how two languages differ in sound, spelling, script, ancestry, time or place docs/guide/distance.md
See the PER, the word count and the provenance of each gold set docs/evaluation/generated/scoreboard.md
Compare the same rows with espeak-ng, epitran and gruut docs/evaluation/generated/comparison.md
Learn what a gold set can prove, and the reliability tiers docs/evaluation/benchmarks.md
Read the full --help output docs/reference/cli.md
Look up an exported name docs/reference/api.md
Read every field of a spec orthography2ipa/data/SCHEMA.md
Write a spec, a citation, a board change or an engine change docs/contributing/
Learn the repository map, the setup and the hard rules AGENTS.md
Follow the branch model and the commit messages CONTRIBUTING.md
Give a language model a map of the repository llms.txt

arbtok (Arabic), tugaphone (Portuguese), g2p_barranquenho and mwl_phonemizer build on this library.

AI transparency

Large language models (Anthropic Claude) wrote most specs, under the direction of a human maintainer. No small project can recruit a native-speaker linguist for thousands of languages. The choice was between an AI-written spec and no spec. Every mapping must trace to a published description: a reference grammar, a peer-reviewed paper or a university dataset. The engine stays language-agnostic, so a spec cannot hide logic. The tests check the structure, and the benchmarks score the output against external data.

A cited spec that a model wrote is still not native-speaker validation, and the quality tier records that. If you speak a language and its spec is wrong, open an issue with a citation or a native-speaker judgment. Corrections have priority over all other work here.

License

Apache 2.0

Metadata

Release files for orthography2ipa 7.118.11a1

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

Source distribution (sdist)

Source distribution for orthography2ipa 7.118.11a1
File Size Uploaded Provenance Actions
orthography2ipa-7.118.11a1.tar.gz 7.7 MB Without provenance Details for orthography2ipa-7.118.11a1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for orthography2ipa 7.118.11a1
File Interpreter ABI Platform Actions
orthography2ipa-7.118.11a1-py3-none-any.whl Python 3 none any Details for orthography2ipa-7.118.11a1-py3-none-any.whl

Total release size: 19.0 MB

Release files / orthography2ipa-7.118.11a1.tar.gz

Download URL orthography2ipa-7.118.11a1.tar.gz
Size 7.7 MB
Tags Source
SHA-256 checksum
How to use checksums
39639ae50dd8184e1ec423ba4c408d5d8701bec0f3e28e5ed3d4120f6946465b
BLAKE2b-256 checksum
How to use checksums
ec7012ec943d1c69c8f00449e7c5ef62cf7bee7706a36a60d5236100eed05074
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / orthography2ipa-7.118.11a1-py3-none-any.whl

Download URL orthography2ipa-7.118.11a1-py3-none-any.whl
Size 11.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
ba8910c685a305736de109324f5d1cc5835b3ebe4c68979f01b5aab13a926c7e
BLAKE2b-256 checksum
How to use checksums
6a2aec4e7151485f9a8e5b8c925941ce9cc812b91d1a16c163f916d29df738e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for orthography2ipa 7.118.11a1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

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.

Release history Release notifications | RSS feed

This release
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