antigon-char3
This commit is contained in:
parent
875bc8eff7
commit
d8808cbc69
|
@ -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', 'х')
|
||||
|
|
Loading…
Reference in New Issue
Block a user