Skip to main content

No project description provided

Project description

Transliteration-BruteForcer

How to

Example

>>> from transliteration_brute_forcer import TransliterationBruteForcer
>>> transliteration_bruteforcer = TransliterationBruteForcer()
>>> transliteration_bruteforcer.run('Юрий')
{'Urij'}
>>> transliteration_bruteforcer.custom_mapping = {
...     'Ю': ['Yu', 'Iy'],
...     'ю': ['yu', 'iy'],
...     'й': ['ii', 'iy', 'yy', 'yu'],
... }
>>> transliteration_bruteforcer.run('Юрий')
{'Urij', 'Yuriyu', 'Iyrij', 'Uriyy', 'Yuriii', 'Iyriii', 'Iyriyy', 'Uriiy', 'Yuriyy', 'Iyriyu', 'Uriyu', 'Iyriiy', 'Yurij', 'Uriii', 'Yuriiy'}
>>> transliteration_bruteforcer.run('Владимир Пехтин')
{'Vladimir Pehtin'}
>>> transliteration_bruteforcer.custom_mapping['х'] = ['kh']
>>> transliteration_bruteforcer.run('Владимир Пехтин')
{'Vladimir Pehtin', 'Vladimir Pekhtin'}
>>> transliteration_bruteforcer.custom_mapping['В'] = ['W']
>>> transliteration_bruteforcer.run('Владимир Пехтин')
{'Vladimir Pekhtin', 'Vladimir Pehtin', 'Wladimir Pekhtin', 'Wladimir Pehtin'}

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

transliteration_brute_forcer-0.0.1.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

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