normalizeText method
Implementation
String normalizeText(String text) {
return text
.replaceAll('ة', 'ه')
.replaceAll('أ', 'ا')
.replaceAll('إ', 'ا')
.replaceAll('آ', 'ا')
.replaceAll('ى', 'ي')
.replaceAll('ئ', 'ي')
.replaceAll('ؤ', 'و')
.replaceAll(RegExp(r'\s+'), ' '); // إزالة الفراغات الزائدة
}