Every result Bayan Library returns is a passage, so where a passage begins and ends decides what a reader sees under a scholar’s name. We cut along the divisions the authors made, not where a printed page or a fixed length stops.
The numbers here are for our 25 sample tafsirs, as the chunker cut them for the chunk report of 28 November.
A ceiling, not a target
A passage holds at most 1,200 characters, counted without the harakat. Editions differ in how fully they are vowelled. Harakat are 38.9% of the characters in al-Baghawi’s Tayba edition and 11.0% in Ibn Kathir’s. Counted our way, passages of the two hold much the same: 149 and 145 words on average. The count also follows what the models read: they get the text with its harakat stripped, and the reranker is sent the first 1,500 characters of it (RERANK_CHARS), so a passage within the limit reaches it whole.
The limit is a ceiling, not a target. A section’s passages are cut to even sizes, and a long paragraph is cut after a sentence ends, else after a comma, else at a space. Al-Wajiz explains each ayah in a short gloss, so its 6,170 passages average 28 words. We do not merge glosses on different ayahs to fill the space. No retrieval test has measured the limit yet.
Three cuts we never make
- Inside a ﴿…﴾ quoteAn open quote keeps a passage going, up to 1.6 times the limit, because some quotes in these files are never closed. Eighteen passages in the samples run past 1,200, the longest to 1,841, each to keep a quote whole.
- Across a headingA passage stays inside one section, so its heading is true of all of it. Where a book has ayah anchors, a passage never runs into the next ayah’s commentary.
- Away from its lead-inA short line ending in a colon, just above a heading, opens the section below it. Al-Qushayri’s tafsir sets قوله جل ذكره: above many of its headings, so passage
23629000004, on 1:2, begins with that line instead of the passage on 1:1 ending with it.
Mending what the printed page cut
turath’s files come as printed pages. Until a fix from our review of 27 November, every page break became a paragraph break, and a paragraph break is where a passage may end. In at-Tabari’s introduction, page 21 of volume 1 ends on أن رسول and page 22 opens with الله ﷺ قال. A passage could have ended between those two words.
Now a page’s last line and the next page’s first become one paragraph when the page stops inside a ﴿…﴾ quote that the next page closes, or on a word or a comma before a word. Poetry and lines set apart, such as the basmala, keep their breaks. Breaks within a page are the source’s and stay. That is 30,692 joins in the samples, 2,069 of them inside quotes, and closed quotes split between two passages of one section went from 19 to 0. Passage 43000020 now holds at-Tabari’s sentence whole. We checked the joins by hand on samples only.
The book says which ayah
Our first design fell back on matching each passage’s Qur’an quotes against the mushaf to find its ayahs. We built on each book’s own structure instead. Al-Qurtubi, ar-Razi, ash-Shawkani and Ibn ʿAtiyya set no quote in ﴿﴾, and the files already say where each ayah’s commentary is. For this report the chunker read it in five ways:
- Anchors in the text,
<span id="aya-N">, where N is the ayah’s place in the whole Qur’an: Ibn Kathir and موسوعة التفسير المأثور. - Headings that name surah and ayahs, such as [سورة طه (٢٠): الآيات ٩٢ إلى ٩٤] in ar-Razi and Ibn ʿAtiyya; also al-Qurtubi, ash-Shawkani and al-Qushayri.
- A surah heading with ayah numbers under it: at-Tabari, al-Baghawi, as-Saʿdi, al-Jalalayn, al-Wajiz, al-Muyassar.
- Surah and range after a slash, in Qatada’s tafsir: سورة الفاتحة / الفاتحة ١-٢.
- Ayah numbers alone, the surah in the book’s title: Ibn ʿUthaymin’s per-surah volumes, as in الآيات (٦٤ - ٦٦).
Nothing is guessed. Surah headings must run in the Qur’an’s order. A section headed by one ayah number is widened only on evidence. In this run that meant its text opens with a range, its ﴿…﴾ quotes carry later ayah numbers, or the book explains at least three quarters of its surahs’ ayahs and the gap to the next section is 5 ayahs or fewer. As-Saʿdi’s table of contents heads a section ١٠٣ in al-Aʿraf, and his text opens it with ﴿١٠٣ - ١٧١﴾, so passage 42001169 carries 7:103 to 7:171. A selective tafsir keeps its gaps: nothing is claimed for an ayah the scholar did not explain.
In this run, quotes were matched against the Qur’an only to record what a passage quotes, never what it explains. The chunker has since begun to use the Qur’an’s text where a book quotes an ayah instead of numbering it: a heading that quotes the ayah it explains, a paragraph that opens by quoting the next ayah in a surah whose headings name none, and a section under one ayah number whose quotes go on through the ayahs after it. The numbers here come from before that change.
What the coverage table shows
The chunk report counts the ayahs each book’s passages cover. Twelve of the samples, from the run of 28 November:
| Book (id) | Passages | Ayah source | Ayahs covered, of 6,236 |
|---|---|---|---|
| Ibn Kathir (1503) | 10,721 | anchors | 6,236 |
| at-Tabari (43) | 16,089 | headings | 6,232 |
| al-Baghawi (41) | 5,678 | headings | 6,236 |
| ar-Razi (23635) | 18,104 | headings | 6,236 |
| al-Qurtubi (20855) | 12,604 | headings | 6,233 |
| Ibn ʿAtiyya (23632) | 7,012 | headings | 6,236 |
| ash-Shawkani (23623) | 8,425 | headings | 6,223 |
| as-Saʿdi (42) | 4,028 | headings | 6,081 |
| al-Jalalayn (12876) | 6,243 | headings | 6,225 |
| al-Wajiz (2547) | 6,170 | headings | 6,236 |
| al-Muyassar (1407) | 5,031 | headings | 6,021 |
| موسوعة التفسير المأثور (639) | 25,245 | anchors | 6,197 |
Five cover every ayah, and four more miss 13 or fewer. Selective tafsirs keep their gaps on purpose: Ibn ʿArafa covers 2,854, Qatada 4,679, al-ʿIzz ibn ʿAbd al-Salam 4,141. In this run six samples mapped no ayah at all: search finds them, the ayah lookup does not. All 25 come to 152,781 passages.
The rough edges
No one has audited the passages by eye yet. This is what we know was wrong in this run.
- At-Tabari’s headings with no title span in the text go to the top of their page: 507 have no span at all, and 15 more have theirs among the footnotes. His section usually opens two to five lines down, so those lines of the last ayah’s commentary land in the next ayah’s first passage. Passage
43000333, on 2:18, ends mid-sentence on إلى الرجوع. Passage43000334, on 2:19, opens with عنه. وذلك من التأويل دعوى بَاطلة, before القول في تأويل قوله تعالى ذكره:. The span of its heading sits among the footnotes, and no page join can mend it: a heading stands between. - As-Saʿdi is 155 ayahs short. Al-Humaza has no entry in turath’s table of contents, so its commentary sits in al-ʿAsr’s section and is claimed for 103:1–3. Other groups open with a single mark such as ﴿١٦﴾ and run on with no range.
- Al-Muyassar is 215 short. Surahs 1 to 9 have no heading for ayah 1, so it sits unmapped under the surah heading, and 28 groups explain 6 to 29 ayahs under one number: 20:25 covers 25 to 35 and is mapped to 25 alone. Raising the 5-ayah gap cap would widen 10 groups in al-Jalalayn, several wrongly.
- The longest passage, at 1,841, runs past the 1,500 characters the reranker is sent, so the reranker sees only its start.
The cut is a claim
A passage’s edges say where a scholar’s thought begins and ends. Its heading and ayahs say what it explains. We would rather take those from the book, and leave an ayah unmapped, than guess. Where the book is silent or wrong, we say so.