The Classical Grammar → AI Algorithm Atlas

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.

0Classical Books
0Verified Principles
0Zero-Drift Citations
Live · 3-radical orbit ف · ع · ل
01 · The Corpus

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.

6 / 6
02 · The Test

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.

Blind NTP Next-CodeWazn · NWP-v2
121 citations
0.00
Accuracy · by domainΔ —

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.