utils/arabic_utils library

Constants

kMinRecitationSimilarity → const double
Minimum similarity (0-1) required to accept a fuzzy match as correct. Increase to make matching stricter; decrease to be more lenient.

Functions

arabicSimilarity(String a, String b) double
Compute a Levenshtein-based similarity between two Arabic words after normalization. Returns a value in 0,1. 1.0 means exact match.
normalizeArabic(String text) String
Normalize Arabic text for better word matching
splitIntoWords(String text) List<String>
Split text into words and filter out Ayah numbers
wordsMatch(String word1, String word2) bool
Match transcribed words with Surah words