antigon-char3

This commit is contained in:
Untone 2024-09-26 22:24:22 +03:00
parent 875bc8eff7
commit d8808cbc69

View File

@ -13,9 +13,10 @@ def normalize(text):
"""
Normalize English text to resemble Russian characters.
"""
text = text.lower()
if is_russian_wording(text):
# Normalize the text by replacing characters
text = (text.lower()
text = (text
.replace('e', 'е')
.replace('o', 'о')
.replace('x', 'х')