automatic English-to-Cyrillic text transcriber
Project description
English-to-Russian Phonetic Transcriber 🔤
A Python library for automatic English-to-Cyrillic text transcription using a hybrid engine: dictionary lookup and rule-based transcription for unknown words.
💡 Features
- Universal transcription — handles any English text, including invented words, neologisms, and rare names.
- Custom vocabulary — augment the built-in dictionary with your own overrides.
⚡ Key Highlights
- Two-tier lookup — IPA via local 120k+ dict + rule-based transcription backup.
- Graphemic adaptation — Cyrillic matches Russian orthography.
🚀 Installation
pip install eng-to-ru-transcriber
💻 Usage
Basic Example
from eng_to_ru_transcriber import Transcriber
t = Transcriber()
print(t.transcribe("Hello world"))
# → Хэлоу уорлд
Custom Vocabulary
from eng_to_ru_transcriber import Transcriber
custom_vocabulary = {"python": "ˈpaɪθɑn"}
t = Transcriber(custom_vocabulary=custom_vocabulary)
print(t.transcribe("Python is great"))
🧪 Testing
pip install pytest
pytest
📊 Data Sources
Based on curated IPA data from OpenWiktionary.
📜 License
MIT
Project details
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 eng_to_ru_transcriber-0.2.1.tar.gz.
File metadata
- Download URL: eng_to_ru_transcriber-0.2.1.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e5f282b18b27b95d0bfb687bfecd1073f7f2136b1bd306d9559d8d0fcd2f94b
|
|
| MD5 |
7ebc2a1ef56602d3cb1bea3c226a3b94
|
|
| BLAKE2b-256 |
c14b6ce6cb37519136c16eb8b31a17aead01801f9f47c7ed7d418568215786fd
|
File details
Details for the file eng_to_ru_transcriber-0.2.1-py3-none-any.whl.
File metadata
- Download URL: eng_to_ru_transcriber-0.2.1-py3-none-any.whl
- Upload date:
- Size: 1.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
726c20131aa8e09aef8194b5096c9238c492da8b079eb2ce272046d3fa60edd7
|
|
| MD5 |
43faad3ed5381998ca5fcc356a153e28
|
|
| BLAKE2b-256 |
a7b60ef902e56fd128758cf8b883396d43f6d7176b0c3015ab2c0896069e04f5
|