diff --git a/utils/normalize.py b/utils/normalize.py index cc7cca2..b45329f 100644 --- a/utils/normalize.py +++ b/utils/normalize.py @@ -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', 'х')