antigon-char3
This commit is contained in:
@@ -13,9 +13,10 @@ def normalize(text):
|
|||||||
"""
|
"""
|
||||||
Normalize English text to resemble Russian characters.
|
Normalize English text to resemble Russian characters.
|
||||||
"""
|
"""
|
||||||
|
text = text.lower()
|
||||||
if is_russian_wording(text):
|
if is_russian_wording(text):
|
||||||
# Normalize the text by replacing characters
|
# Normalize the text by replacing characters
|
||||||
text = (text.lower()
|
text = (text
|
||||||
.replace('e', 'е')
|
.replace('e', 'е')
|
||||||
.replace('o', 'о')
|
.replace('o', 'о')
|
||||||
.replace('x', 'х')
|
.replace('x', 'х')
|
||||||
|
Reference in New Issue
Block a user