formatArabic method
Runs the full Microsoft Word / Gboard grade proofreading pipeline:
corrects punctuation, Waw spacing, and high-frequency orthographic typos,
and optionally inflects grammatical gender when gender is provided.
Implementation
String formatArabic({
bool fixPunctuation = true,
bool fixWaw = true,
bool autocorrect = true,
AppGender? gender,
Map<String, String>? customDictionary,
List<List<String>>? customGenderPairs,
}) {
return AppArabicOrthography.format(
this,
fixPunctuation: fixPunctuation,
fixWaw: fixWaw,
autocorrect: autocorrect,
gender: gender,
customDictionary: customDictionary,
customGenderPairs: customGenderPairs,
);
}