AppArabicOrthography class

Pro-level Arabic orthography engine for proofreading, punctuation normalization, Waw-conjunction attachment, and high-frequency orthographic autocorrection.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

arabicToQwerty(String text) → String
Converts text mistyped on an Arabic keyboard layout into English QWERTY.
autocorrectWords(String text, {Map<String, String>? customDictionary}) → String
Performs dictionary-assisted orthographic correction on known high-frequency Arabic words and user-registered words, fixing Hamzat al-Qat' vs Wasl, Taa' Marboota vs Haa', and Alif Maqsoora vs Yaa', including attached prefixes (ال, و, ب, ل).
clearCustomWords() → void
Clears all custom user-registered autocorrect words.
fixWawConjunction(String text) → String
In proper Arabic typography and orthography, the conjunction و (Waw) must NEVER float alone with a space separating it from the following word.
format(String text, {bool fixPunctuation = true, bool fixWaw = true, bool autocorrect = true, AppGender? gender, Map<String, String>? customDictionary, List<List<String>>? customGenderPairs}) → String
Runs the full Microsoft Word / Gboard grade proofreading pipeline:
isProbablyMistypedQwerty(String text) → bool
Determines if an input string is likely an Arabic phrase mistakenly typed on an English keyboard layout (e.g. Hplh, lvpfh, sdt phgn).
normalizePunctuation(String text) → String
Normalizes punctuation marks to standard Arabic typography.
qwertyToArabic(String text) → String
Converts text mistyped on an English QWERTY keyboard layout into proper Arabic.
registerCustomWords(Map<String, String> words) → void
Registers custom user words, names, or brand terms into the Arabic autocorrect dictionary.