Overview
Lazily loads the Word Map data. This large dataset is loaded asynchronously to avoid increasing the initial bundle size. The word map enables mapping normalized query tokens to their canonical lemma and root forms.Signature
Return value
Promise
A Promise that resolves to the WordMap object. This is a dictionary mapping normalized Arabic words to their lemma and root information.
WordMap structure
The WordMap is an object with normalized tokens as keys:object
Each key is a normalized Arabic word/token from the Quran
string
The canonical lemma (dictionary form) of the word
string
The root letters of the word (typically 3-4 letters separated by spaces)