formatArabic method

String formatArabic({
  1. bool fixPunctuation = true,
  2. bool fixWaw = true,
  3. bool autocorrect = true,
  4. AppGender? gender,
  5. Map<String, String>? customDictionary,
  6. List<List<String>>? customGenderPairs,
})

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,
  );
}