This commit is contained in:
2026-02-01 08:35:33 +03:30
parent fdff94fa85
commit 17096924c1
7 changed files with 13 additions and 4 deletions

View File

@@ -160,7 +160,7 @@ def normalize_persian_arabic_text(text):
# 'ک' (U+06A9 - Persian Kaf) -> 'ك' (U+0643 - Arabic Kaf)
# 'ی' (U+06CC - Persian Yeh) -> 'ي' (U+064A - Arabic Yeh)
text = str(text)
text = text.replace('ک', 'ك') # Persian Kaf to Arabic Kaf
# text = text.replace('ک', 'ك') # Persian Kaf to Arabic Kaf
text = text.replace('ی', 'ي') # Persian Yeh to Arabic Yeh
return text