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č',
'Чаплинский Дмитрий Александрович',
'Чаплинський Дмитро Олександрович'}
Release files for names-translator 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| names_translator-1.2.0.tar.gz | 169.1 kB | Details |
Release files / names_translator-1.2.0.tar.gz
| Download URL | names_translator-1.2.0.tar.gz |
|---|---|
| Size | 169.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b1e803b3c3f07352a0ae5765dd2ed44d15848db32d8e62508ad452ee1c7a28cd
|
|
BLAKE2b-256 checksum How to use checksums |
b4b2b58b568ed48af9c2ca78c073fd787f62622899678cd522998e829a40c546
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.6
|