All 77,429 words of the Quran carry their i’rab and morphology, matched letter for letter to the app’s own words. A second annotation, made independently, checks each one. Where a label breaks a rule of grammar and the second annotation keeps it, the label is corrected: 519 by the word’s role, 141 under four other rules. 2,649 words show the second reading beside the first. Counted in the app’s databases, 19 Nov 2026. Not yet signed off by a qualified reader: where it stops.
Word Study
The grammar comes from a treebank that splits and spells words its own way. The build matches every word to the mushaf letter by letter, and stops if one does not fit.
- Public code, merged
In short
One word, five sources
The ayah on our home page, An-Najm 53:39, has six words. Here is what Word Study holds for the third, and where each part comes from.
An-Najm 53:39, word 3 of 6
وَأَن لَّيْسَ لِلْإِنسَـٰنِ إِلَّا مَا سَعَىٰ
- I’rabthe Quranic Treebank, in Arabic grammar terms
-
اللام: حرف جر مبني على الكسر لا محل له من الإعراب
The lam: a preposition, fixed with a kasra, with no grammatical position of its own.
اسم مجرور باللام وعلامة جره الكسرة
The word: a noun, genitive after the lam; the kasra shows it.
One more line, which quotes another word of the ayah, is left out here.
- Cross-checkMASAQ, an independent i’rab
-
Gives the same case and the same role.
- Root and formthe Quranic Arabic Corpus morphology
-
A noun: singular, masculine, definite, with al-. Root ء ن س: sound, with a hamza as its first letter.
The root comes 97 times in the Quran, this form 71 times.
- Rasmagainst Tanzil’s standard spelling
-
A letter left out (الحذف): the standard spelling writes ا in full, and the mushaf leaves it out of the line. A small sign of the mushaf’s own marks the difference, which confirms the note, so it is shown.
- Classical i’rabtwo books, filed by ayah
-
Passages on this ayah: al-Nahhas (d. 338 AH), one; al-Ukbari (d. 616 AH), one.
- Classical meaningIbn al-Ha’im (d. 815 AH)
-
No entry for this word: the book’s 2,746 entries cover 1,955 of the 6,236 verses.
Five sources, each with its own idea of a word
The app numbers 77,429 words in 6,236 verses. Every source counts and spells them its own way. The treebank splits a word into prefix, stem and suffix and spells the pieces in its own system. MASAQ numbers its words separately. The classical books are filed by verse, not by word, and not always under the right one. The gharib book names its headwords in everyday spelling, often a phrase at a time.
The build lines each of them up with the app’s words. The treebank must match every word letter for letter, bar four differences reviewed by hand and listed in the build, and the standard spelling must pair with every word on the same skeleton of letters. Otherwise the build stops.
| Source | What it gives | How it meets the app’s words |
|---|---|---|
| The Quranic Treebank, with the Quranic Arabic Corpus’s morphology | I’rab and morphology for all 77,429 words | Letter for letter, every word, or the build stops (four reviewed exceptions) |
| MASAQ | A second i’rab of the whole Quran, made independently | Aligned verse by verse, to compare each word’s case and role |
| Two classical i’rab books | 2,720 passages, by al-Nahhas and al-Ukbari | Filed by verse; pages filed under the wrong verse moved back |
| al-Tibyan fi Tafsir Gharib al-Qur’an | 2,746 classical explanations of rarer words | Placed on exact words, strict matches only; the rest stay with their verse |
| Tanzil’s simple text | A standard spelling to set beside the mushaf’s, for 6,913 words that differ | Paired with every word on the same skeleton of letters, or the build stops |
Two annotations, one verdict
The treebank’s labels are careful but not flawless. Now and then a label breaks a rule of Arabic grammar that has no exceptions: the second noun of a construct marked nominative, or a present verb marked subjunctive with nothing before it to make it so. MASAQ, an i’rab of the whole Quran made independently at the University of Jordan, is the check. A label changes only where it breaks such a rule and MASAQ’s reading keeps it: never on one source’s word alone.
Labels corrected, by the rule they broke
Every word of the 6,236 verses. A label changes only where MASAQ, made independently, gives a reading that keeps the rule. Counted in the app’s i’rab database, 19 Nov 2026.
Show the numbers
| Rule | What it catches | Labels |
|---|---|---|
| A case the word’s role rules out | such as the second noun of a construct marked nominative | 519 |
| A case its own letters rule out | a dual or sound plural whose ending shows its case | 54 |
| Subjunctive with no particle to cause it | a present verb marked mansub with nothing before it to make it so | 46 |
| The five verbs: a final nun kept or dropped | a written final nun means the indicative; a dropped one means it is not | 21 |
| A noun as the doer of an I or you verb | a noun after a first- or second-person verb is its object, or a vocative | 20 |
Where the two simply read a word differently, nothing is changed. The app shows MASAQ’s reading beside the treebank’s, under وجه آخر (another way of reading it). For a noun that is genitive only because of an extra preposition, it adds the case the noun holds by its position, under المحل.
- Shown with another reading
- 2,331
- MASAQ reads the word another way
- Shown with its case by position
- 318
- genitive only after an extra preposition
- Words with both analyses
- 2,649
- of 77,429
Only the classical author’s words
Two classical i’rab books sit beside the treebank: I’rab al-Qur’an by al-Nahhas (d. 338 AH) and al-Tibyan fi I’rab al-Qur’an by al-Ukbari (d. 616 AH). Both come from Quranpedia’s data dumps, where a modern edition is mixed into the text. In al-Nahhas’s book the dump carries the editor’s footnotes, and the publisher’s introduction filed under the verses of the last surah. In al-Ukbari’s, his own preface sits under the last verse of the Quran.
The build takes out what is not the author’s, puts the preface back at the start, and stops if an editor’s note survives, so only the author’s words appear under his name: 4.9 million characters of classical text.
Verses with a passage from each book
Share of the 6,236 verses. Counted in the app’s i’rab database, 19 Nov 2026; the books from the Quranpedia dump of 2026-08-10.
- Verses with a passage
- Verses without one
Show the numbers
| Book | Passages | Verses with a passage |
|---|---|---|
| I’rab al-Qur’an, by al-Nahhas (d. 338 AH) | 1,408 | 5,911 of 6,236 |
| al-Tibyan fi I’rab al-Qur’an, by al-Ukbari (d. 616 AH) | 1,312 | 4,993 of 6,236 |
- Modern footnotes taken out
- 1,256
- and 3,525 note markers, from al-Nahhas
- Pages of introduction left out
- 8
- the publisher’s, filed under surah 114
- Pages put back at the start
- 4
- al-Ukbari’s preface, filed under 114:5
Meanings placed on exact words
The gharib book, al-Tibyan fi Tafsir Gharib al-Qur’an by Ibn al-Ha’im (d. 815 AH), explains the Quran’s rarer words. Its headwords are in everyday spelling, often a phrase at a time, so the build compares each with every run of words in its verse, strictest first: the same letters; then with hamza and long alif evened out; then with a prefix or suffix set aside. Only those strict matches go on a word. Anything looser stays with the verse and is not shown, so a meaning never lands on the wrong word.
Where the book’s 2,746 entries landed
2,694 of 2,746 (98.1%) on words, from the strictest match down. Counted in the app’s gharib database, 18 Nov 2026.
- Shown on its word
- Kept with the verse, not shown
Show the numbers
| Match | Entries |
|---|---|
| The same letters | 2,483 |
| Hamza and long alif evened out | 40 |
| A prefix or suffix set aside | 171 |
| No strict match: kept with the verse | 52 |
| Of those kept: no run of words in its verse matches | 39 |
| Of those kept: only a loose match | 10 |
| Of those kept: matches only in a neighbouring verse | 1 |
| Of those kept: no meaning text | 1 |
| Of those kept: kept with the verse by hand | 1 |
Rasm, shown only where the mushaf confirms it
The mushaf spells many words its own way: a long a written as a small alif above the line, a hamza on another seat, two words joined into one. Word Study sets each word beside a standard spelling and names the difference. A note is shown only when the mushaf’s own signs or a named spelling rule confirm it. The rest are kept for review and hidden: 50 notes on 45 words.
How the mushaf’s spelling differs, and what confirms each note
7,842 notes on the 6,913 words whose spelling differs from the standard one; 6,900 of those words show at least one note. Counted in the app’s rasm database, 14 Nov 2026.
- Confirmed by the mushaf’s own signs
- Confirmed by a named spelling rule
- Not confirmed: kept, not shown
Show the numbers
| Difference | By its signs | By a rule | Not shown |
|---|---|---|---|
| A letter left out الحذف | 6,083 | 118 | 19 |
| A hamza written another way الهمز | 548 | 0 | 10 |
| One letter for another البدل | 523 | 0 | 20 |
| Two words written as one الوصل | 0 | 365 | 1 |
| A letter added الزيادة | 155 | 0 | 0 |
Rebuilt from pinned inputs
Each database is built by a script in the repository from inputs pinned there, and the builds refuse any other input. The gharib and rasm builds also have a check mode: it rebuilds the database and compares it with the committed one, table by table and row by row. Tests pin the committed databases’ counts.
| Input | Pinned by |
|---|---|
| MASAQ | SHA-256 aac224f1b852… |
| The Quranic Treebank | Commit e791af79 |
| The classical i’rab books | Quranpedia dump of 2026-08-10 |
| al-Tibyan fi Tafsir Gharib al-Qur’an | Quranpedia dump of 2026-11-14, SHA-256 b46ca5ae7baa… |
| Tanzil’s simple text | Version 1.1 (2021-02-12), SHA-256 f3268cfe7a40… |
What else a word carries
Word Study opens from any ayah and goes word by word: meaning, transliteration and audio; how each of the eight rewayat reads the word; its i’rab and morphology; a classical meaning; and its rasm. 9,499 words have a readings entry, and 2,242 of them are read two or more ways (how the rewayat are held to the official text). The root opens every ayah that uses it, across 1,642 roots and 4,659 lemmas (how search reads everyday spelling).
Where it stops
- A qualified reader has not yet signed off how the readings are grouped, or where the gharib entries and rasm notes are placed.
- 52 gharib entries stay with their verse and 50 rasm notes stay hidden until someone reviews them.
- The cross-check compares each word’s case and role, nothing else, and an error both annotations share gets through.
- The i’rab lines are written from the treebank’s labels in Arabic grammar terms. They are not a classical author’s words; the two books are.
- Word Study merged on 19 Nov 2026 without a run on a device or simulator.
Credits
- The Quranic Treebank: the syntax of every word.
- MASAQ: the independent i’rab every word is checked against (CC BY 4.0).
- al-Tibyan fi I’rab al-Quran: by al-Ukbari (d. 616 AH).
- I’rab al-Quran: by al-Nahhas (d. 338 AH).
- The Quranic Arabic Corpus (GPL, with the corpus’s terms of use): the morphology, read from the treebank.
- al-Tibyan fi Tafsir Gharib al-Qur’an, by Ibn al-Ha’im (d. 815 AH): the classical meanings.
- Quranpedia: the data dumps the classical books come from.
- The simple text of the Tanzil project (CC BY 3.0, with Tanzil’s terms of use): the standard spelling.
- MASAQ’s data, from the University of Jordan: Mendeley Data.