Automatic translation and transliteration of ukrainian names into Russian and English + some extra tools to deal with mixed languages, etc
Project description
names-translator
That’s a small tool to generate as many possible transliteration options for ukrainian names First it translates the name into russian using dictionary, then transliterates ukrainian and russian names using translit-ua package and 19 different transliteration tables. Finally, some heuristic is applied to cover usual usual trasnliterations for well known names, which aren’t covered by the transliteration tables
Installation
Install from PyPI.
$ pip install names_translator
Usage
>>> from names_translator import Transliterator
>>> tr = Transliterator()
>>> tr.transliterate("Чаплинський", "Дмитро", "Олександрович")
{"Chaplins'kij Dmitro Oleksandrovich",
'Chaplinski Dmitri Aleksandrovich',
'Chaplinskii Dimitry Aleksandrovich',
'Chaplinskii Dmitrii Aleksandrovich',
'Chaplinskii Dmitrii Alexandrovich',
'Chaplinskii Dmitry Aleksandrovich',
'Chaplinskij Dmitrij Aleksandrovich',
'Chaplinskiy Dmitriy Aleksandrovich',
'Chaplinsky Dmitry Aleksandrovich',
"Chaplyns'cyi Dmytro Olecsandrovych",
"Chaplyns'kyi Dmytro Oleksandrovych",
"Chaplyns'kyj Dmytro Oleksandrovych",
"Chaplyns'kyy Dmytro Oleksandrovych",
'Chaplynski Dmytro Oleksandrovych',
'Chaplynsky Dmytro Oleksandrovych',
'Chaplynskyi Dimitry Oleksandrovych',
'Chaplynskyi Dmitry Oleksandrovych',
'Chaplynskyi Dmytro Oleksandrovych',
'Chaplynskyi Dmytro Olexandrovych',
'Chaplȳnskȳĭ Dmȳtro Oleksandrovȳch',
'Tchaplynskyy Dmytro Oleksandrovytch',
'Tschaplynskyj Dmytro Oleksandrowytsch',
"Čaplins'kij Dmitro Oleksandrovič",
'Čaplins′kij Dmitro Oleksandrovič',
'Čaplynsʹkyj Dmytro Oleksandrovyč',
'Чаплинский Дмитрий Александрович',
'Чаплинський Дмитро Олександрович'}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
names_translator-1.2.3.tar.gz
(170.2 kB
view details)
File details
Details for the file names_translator-1.2.3.tar.gz
.
File metadata
- Download URL: names_translator-1.2.3.tar.gz
- Upload date:
- Size: 170.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e27b32307f1522101d7178148ee54cea36680bb9154522159244fe59a17541e |
|
MD5 | 550966db84fe6c6b2ff7a43fe7f08c88 |
|
BLAKE2b-256 | 8935339f19fa9c2d74309791bab3e56032a9472ace65cb400c64c2160d7e0bbb |