Skip to main content

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


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.2.tar.gz (169.1 kB view details)

Uploaded Source

File details

Details for the file names_translator-1.2.2.tar.gz.

File metadata

  • Download URL: names_translator-1.2.2.tar.gz
  • Upload date:
  • Size: 169.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for names_translator-1.2.2.tar.gz
Algorithm Hash digest
SHA256 61664df01887ee22a0a318f0e57dc856ae09b467b14a6761855df04c089532c2
MD5 ed08b35b4f92abfd21d76a713d5755ed
BLAKE2b-256 cd1f982a8718f8ca6ffffd2bf0539114acd1649ff61964c914c3ac4d704c5d67

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page