>>> 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'}
-
Notifications
You must be signed in to change notification settings - Fork 0
GinTR1k/Transliteration-BruteForcer
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published