From النَّحْو to the neural net.
KhalilAlgoWorks maps 84 verified principles from the classical Arabic grammatical canon onto modern machine-learning patterns — turning a millennium of nawḥ into a living, searchable algorithm atlas.
Principle Explorer
Six foundational principles, each traced from its classical source to the AI/ML pattern it anticipates. Search, filter by domain, and open any card for the term, the pattern, and the pseudocode.
Blind NTP vs Next-CodeWazn (NWP-v2)
Two predictors are scored blind on the same 121-citation corpus. NTP is a plain next-token predictor. NWP-v2 is a next-wazn (pattern) predictor that resolves the abstract root before the surface form.
NWP-v2 holds zero drift on morphology & syntax because it predicts the wazn (pattern) first — the same move al-Khalīl made when he split mustaʿmal / muhmal. NTP drifts as surface noise accumulates.