“Any sufficiently advanced technology is indistinguishable from magic.” — Arthur C. Clarke

Lecture · Universität Hamburg · ESA West 221

Modeling the Social History of the Islamic World (c. 600–1600) from 600,000 Biographies

Maxim Romanov

November 25, 2026 · 10:15–11:45 · Universität Hamburg · EIS1600

Structure

  1. ١History: Vastness of Islamic Tradition
  2. ٢Historiography: “Golden Sample” Case Study
  3. ٣Method: Generative LLMs as assistants

[EIS1600]
Evolution of Islamic Societies (c. 600-1600):
Algorithmic Analysis into Social History

Cover of Digital Humanities for Arabic and Islamic Studies: A Proposition for the Field by Maxim Romanov (Brill, 2026)

2026 · a proposition for the field

Digital Humanities for Arabic and Islamic Studies: A Proposition for the Field

Maxim Romanov

Handbook of Oriental Studies 199 · Leiden: Brill, 2026 · doi.org/10.1163/9789004760530

  • Chapter 1: Why we should even bother—a question that remains at the heart of every discussion about the digital.
  • Chapter 2: How we might go about harnessing the new digital opportunities within the field.
  • Chapter 3: What we can expect to accomplish: 1) trace term usage; 2) model textual typology; 3) chart linguistic evolution.

«What does it mean for our field when the entire library becomes a vademecum — something that, quite literally, “goes with me” everywhere?»

Part

1

Vastness of Islamic Tradition

History

OpenITI github.com/OpenITI

8,700+titles
3,300+authors
2.4 billionwords, all versions

Nigst, Lorenz, Maxim Romanov, Sarah Bowen Savant, Masoumeh Seydi, and Peter Verkinderen. OpenITI: A Machine-Readable Corpus of Islamicate Texts, Primary Version. Version 2025.1.9. Zenodo, 2026. doi.org/10.5281/zenodo.18613982

OpenITI Corpus

  1. Machine-readable texts;
  2. mARkdown annotation scheme (flavors: OpenITI, EIS1600);
  3. Machine-readable URIs and structure allows us to focus on:
    1. URI: specific language (for now, mostly Arabic; Persian is growing);
    2. URI: specific authors;
    3. URI: different editions (versions) of a specific text;
    4. URI: chronological periods;
    5. metadata: religious communities — Sunnī, 12 Shīʿī, Zaydī, Ibāḍī, plus large subcommunities in Sunnī Islam (legal schools, Ṣūfīs, Salafīs, etc.);
    6. provisionally: different types/“genres” (computationally modelled);
    7. nearest future (in šāʾa allãh): geographical regions;

How much is 1.05 billion tokens?

  • equivalent to an English corpus of about 1.34 billion tokens (English translations are 15-23% longer than Arabic originals)
  • Word Count per Book: assuming each book contains about 90,000 words (300 words per page and 300 pages per book).
  • Total Books Equivalent: approximately 14,889 books.
  • Library Size: roughly 50 bookshelves (ca. 300 books per shelf).
  • Physical Dimensions: about 50 meters of shelf space (1 meter per shelf).
  • In Bibles: approximately 1,711 copies of the Bible.
  • In Qurʾāns: about 17,403 copies of the Qurʾān.
Chronological distribution of the volume of the OpenITI subcorpus

EIS1600: biographies linked across collections

604,000biographical records
≈140,000identified individuals
285biographical collections
  • Approximately 104,000 individuals with explicit dates, geographies, and social profiles (based on nisbaŧs)
  • Compare recorded lives across collections, regions, and periods

EIS1600 team · current project figures, November 2026

Arabic Biographical Collections

  • One of the major “genres” in Arabic written tradition;
  • Structure:
    • chronological, generational, alphabetical;
  • Coverage:
    • professional, religious, regional groups; everyone (later);
  • Biographies: well-structured short texts:
    • onomastic section; birth [date &] place; teachers, students, contribution, miscellaneous facts, death date & place, reaction of the community

Richness of Onomastics

ʿAbd al-Raḥmãn b. ʿAlī b. Muḥammad b. ʿUbayd Allãh b. ʿAbd Allãh b. Ḥamādá b. Muḥammad b. Jaʿfar b. ʿAbd Allãh b. al-Qāsim b. al-Naḍar b. al-Qāsim b. Muḥammad b. ʿAbd Allãh b. ʿAbd al-Raḥmãn b. al-Qāsim b. Muḥammad b. Abī Bakr al-Ṣiddīq (may God be pleased with him!) al-Qurašī al-Taymī al-Bakrī al-Baġdādī al-Ḥāfiẓ al-Mufassir al-Ḥanbalī al-Wāʿiẓ al-Ṣaffār, Jamāl al-Dīn, Abū al-Faraj, known as Ibn al-Jawzī (d. 597/1201 CE)

Traditional Arabic Name: 1. Lineage (nasab نسب)

ʿAbd al-Raḥmãn b. ʿAlī b. Muḥammad b. ʿUbayd Allãh b. ʿAbd Allãh b. Ḥamādá b. Muḥammad b. Jaʿfar b. ʿAbd Allãh b. al-Qāsim b. al-Naḍar b. al-Qāsim b. Muḥammad b. ʿAbd Allãh b. ʿAbd al-Raḥmãn b. al-Qāsim b. Muḥammad b. Abī Bakr al-Ṣiddīq (may God be pleased with him!) al-Qurašī al-Taymī al-Bakrī al-Baġdādī al-Ḥāfiẓ al-Mufassir al-Ḥanbalī al-Wāʿiẓ al-Ṣaffār, Jamāl al-Dīn, Abū al-Faraj, known as Ibn al-Jawzī (d. 597/1201 CE)

Traditional Arabic Name: 2. Given name (ism اسم)

ʿAbd al-Raḥmãn b. ʿAlī b. Muḥammad b. ʿUbayd Allãh b. ʿAbd Allãh b. Ḥamādá b. Muḥammad b. Jaʿfar b. ʿAbd Allãh b. al-Qāsim b. al-Naḍar b. al-Qāsim b. Muḥammad b. ʿAbd Allãh b. ʿAbd al-Raḥmãn b. al-Qāsim b. Muḥammad b. Abī Bakr al-Ṣiddīq (may God be pleased with him!) al-Qurašī al-Taymī al-Bakrī al-Baġdādī al-Ḥāfiẓ al-Mufassir al-Ḥanbalī al-Wāʿiẓ al-Ṣaffār, Jamāl al-Dīn, Abū al-Faraj, known as Ibn al-Jawzī (d. 597/1201 CE)

Traditional Arabic Name: 3. “Father of …” (kunyaŧ كنية)

ʿAbd al-Raḥmãn b. ʿAlī b. Muḥammad b. ʿUbayd Allãh b. ʿAbd Allãh b. Ḥamādá b. Muḥammad b. Jaʿfar b. ʿAbd Allãh b. al-Qāsim b. al-Naḍar b. al-Qāsim b. Muḥammad b. ʿAbd Allãh b. ʿAbd al-Raḥmãn b. al-Qāsim b. Muḥammad b. Abī Bakr al-Ṣiddīq (may God be pleased with him!) al-Qurašī al-Taymī al-Bakrī al-Baġdādī al-Ḥāfiẓ al-Mufassir al-Ḥanbalī al-Wāʿiẓ al-Ṣaffār, Jamāl al-Dīn, Abū al-Faraj, known as Ibn al-Jawzī (d. 597/1201 CE)

Traditional Arabic Name: 4. Title, nickname (laqab لقب)

ʿAbd al-Raḥmãn b. ʿAlī b. Muḥammad b. ʿUbayd Allãh b. ʿAbd Allãh b. Ḥamādá b. Muḥammad b. Jaʿfar b. ʿAbd Allãh b. al-Qāsim b. al-Naḍar b. al-Qāsim b. Muḥammad b. ʿAbd Allãh b. ʿAbd al-Raḥmãn b. al-Qāsim b. Muḥammad b. Abī Bakr al-Ṣiddīq (may God be pleased with him!) al-Qurašī al-Taymī al-Bakrī al-Baġdādī al-Ḥāfiẓ al-Mufassir al-Ḥanbalī al-Wāʿiẓ al-Ṣaffār, Jamāl al-Dīn, Abū al-Faraj, known as Ibn al-Jawzī (d. 597/1201 CE)

Traditional Arabic Name: 5. “Byname” (šuhraŧ شهرة)

ʿAbd al-Raḥmãn b. ʿAlī b. Muḥammad b. ʿUbayd Allãh b. ʿAbd Allãh b. Ḥamādá b. Muḥammad b. Jaʿfar b. ʿAbd Allãh b. al-Qāsim b. al-Naḍar b. al-Qāsim b. Muḥammad b. ʿAbd Allãh b. ʿAbd al-Raḥmãn b. al-Qāsim b. Muḥammad b. Abī Bakr al-Ṣiddīq (may God be pleased with him!) al-Qurašī al-Taymī al-Bakrī al-Baġdādī al-Ḥāfiẓ al-Mufassir al-Ḥanbalī al-Wāʿiẓ al-Ṣaffār, Jamāl al-Dīn, Abū al-Faraj, known as Ibn al-Jawzī (d. 597/1201 CE)

Traditional Arabic Name: 6. Descriptors (nisbaŧ نسبة)

ʿAbd al-Raḥmãn b. ʿAlī b. Muḥammad b. ʿUbayd Allãh b. ʿAbd Allãh b. Ḥamādá b. Muḥammad b. Jaʿfar b. ʿAbd Allãh b. al-Qāsim b. al-Naḍar b. al-Qāsim b. Muḥammad b. ʿAbd Allãh b. ʿAbd al-Raḥmãn b. al-Qāsim b. Muḥammad b. Abī Bakr al-Ṣiddīq (may God be pleased with him!) al-Qurašī al-Taymī al-Bakrī al-Baġdādī al-Ḥāfiẓ al-Mufassir al-Ḥanbalī al-Wāʿiẓ al-Ṣaffār, Jamāl al-Dīn, Abū al-Faraj, known as Ibn al-Jawzī (d. 597/1201 CE)

Traditional Arabic Name: Descriptors (nisbaŧ نسبة)

al-Qurašīof the tribe of Qurayš (tribal)
al-Taymīof the clan of Taym (tribal)
al-Bakrīof descent from Abū Bakr al-Ṣiddīq (ancestral)
al-Baġdādīof the city of Baġdād (geographical)
al-Ḥāfiẓ“Preserver”, master of ḥadīṯ (religious specialization)
al-Mufassirexegete of the Qurʾān (religious specialization)
al-Ḥanbalījurist of the Ḥanbalī legal school (religious affiliation)
al-Wāʿiẓpublic preacher (religious specialization)
al-Ṣaffārcoppersmith (occupational, familial)
al-Jawzī“of the man with the nut tree” (ancestral)

Biographical Collections: a typical biography

al-Ḏahabī and his Tārīḫ al-islām

Šams al-dīn al-Ḏahabī (d. 748/1348): historian, ḥadīṯ scholar, biographer.

Tārīḫ al-islām — a universal chronicle-cum-biographical collection covering seven centuries of Islamic history (1–700 AH / 622–1301 CE), organized decade by decade.

  • c. 30,000 biographies
  • c. 3 million words
  • Two modern editions: 50 vols. (Tadmurī) and 16 vols. (Maʿrūf)

Built largely from earlier sources — an ideal test case for text-reuse detection at scale.

Biographies into Data Points

  1. Dates → graphs
  2. Places (explicit toponyms or toponymic nisbaŧs) → maps
  3. Places + Dates → chronological maps
  4. Social markers (nisbaŧs) + Dates → social graphs
  5. Social markers (nisbaŧs) + Dates + Places → social chronological maps
  6. Places of individuals + Dates → geographical networks of connections

Patterns: Geography of the Islamic World - Geographical Texts

Patterns: Geography of the Islamic World - Biographical Texts

Patterns: Great Cities of Islam - Early

Patterns: Great Cities of Islam - Early

Patterns: Great Cities of Islam - Early

Patterns: Great Cities of Islam - Early

Patterns: Regional Representations / Floruits (?)

Patterns: Regional Representations / Floruits (?)

Patterns: Connections

Patterns: Connections

Patterns: Connections

Patterns: Connections

Patterns: Connections

Patterns: Connections

Patterns: Connections

Patterns: Connections in the 6th century AH

Patterns: Connections in the 6th century AH

Relevance?

  1. Prominence of cities and regions (modeled from cities);
  2. Connectednes of cities and regions (modeled from cities);
  3. Social transformations and composition of Islamic elites;
  4. Development of professional and religious groups;
  5. General and particular views of mobility;
  6. Broad variety of problems that can be modeled from this data (demographical questions, family structures, onomastic questions, various historical phenomena)

your imagination is the limit!

Part

2

“Golden Sample” Case Study

Historiography

Historiographical Issues

  1. Hundreds of BIO Collections > Thousands of duplicate BIOs
  2. Problem: Convert BIO > Persons
  3. Solutions:
    1. KITAB: Text Reuse Detection
    2. EIS1600: Same Biography Identification with different computational methods, further enhanced with latest LLMs

al-Ḏahabī and his Tārīḫ al-islām

Šams al-dīn al-Ḏahabī (d. 748/1348): historian, ḥadīṯ scholar, biographer.

Tārīḫ al-islām — a universal chronicle-cum-biographical collection covering seven centuries of Islamic history (1–700 AH / 622–1301 CE), organized decade by decade.

  • c. 30,000 biographies
  • c. 3 million words
  • Two modern editions: 50 vols. (Tadmurī) and 16 vols. (Maʿrūf)

Built largely from earlier sources — an ideal test case for text-reuse detection at scale.

How does one write a 50-volume book in 14th-century Damascus?

  1. How to assess authors’ methodology?
  2. Which works did they use as their sources?
  3. How did they select biographies? What were their criteria?
  4. How did he modify those biographies? What did he add? What did he drop?
  • Among them was Abd Allãh b. Ḫāzim al-Sulamī, the governor of Ḫurāsān for Abd Allãh b. al-Zubayr. What was remarkable about him was that he was extremely brave and resourceful, yet he was terrified of mice. One day, while he was with ʿUbayd Allãh b. Ziyād, a white rat was brought before him and he was astonished. ʿUbayd Allãh said to ʿAbd Allãh, ‘O Abū Ṣāliḥ, have you ever seen anything more astonishing than this?’ And there was Abd Allãh, who had shrunk as if he were a chick and turned yellow as if he were a male locust. ʿUbayd Allãh then said, “Abū Ṣaliḥ disobeys the Merciful, takes lightly the authority, seizes the snake, walks toward the blooming lion, faces spears with his face and swords with his hands, and yet, he is overcome by a rat as you see. I testify that Allãh is capable of everything.

KITAB: Text Reuse Detection — quite successful…

EIS1600 ML Method

  1. Pregenerate possible matches (ngram overlap)
  2. Review these pairs > create ground truth
  3. Train a series of models, to identify the best performing one experimentally

EIS1600 ML Method: Same-Person Annotation Tool

EIS1600 ML Method

  1. Pregenerate possible matches (ngram overlap)
  2. Review these pairs > create ground truth
  3. Train a series of models, to identify the best performing one experimentally
  1. Results: good-ish, but:
    1. Not as good, when applied to new data
    2. Difficult to determining the cut-off threshold
    3. Differences in length of biographies create most problems

EIS1600 ML Method + ChatGPT

  1. We generate possible matches with B25 (pyserini for python)
  2. We pull 350 top matches for each biography
    • In most cases the number of matches is significantly smaller; 350 is the maximum possible number of duplicates (the number of texts in the EIS1600 subcorpus; technically 350-1);
    • Reduces the number of 186 billion pairs (610,000 squared) to 143 million pairs (theoretically);
    • Remove “matches” within the same text > 79 million pairs;
    • For al-Ḏahabī’s sample > only about 29,000 pairs;
  3. “Crowd-sourcing” with ChatGPT (gpt4o-mini) with a prompt to compare pairs, reply ‘yes’ or ‘no’ and give the confidence of evaluation if the answer is ‘yes’; return results in a specific format to simplify post-processing;
  4. Accuracy assessment (on human annotated data): 96% — disagreement on 124 pairs of 2,092; review: there are mistakes on both Team Machine and Team Human

Understanding the historian

  1. How did he choose biographies? (Take 1)
  2. How did he change them?
  3. Did he make biographees look better, worse, or kept them the same?
  4. Why he omitted “obvious” candidates?
  5. How did he choose biographies? (Take 2)

2. How did he change them?

2. How did he change them?

  1. al-Ḏahabī picked longer biographies more frequently than shorter ones
  2. Method: length comparison

2. How did he change them?

  1. al-Ḏahabī adjusted some wording very consistently
    • “From the people of Grenada” > “Grenadian”;
    • Simplification of Abū-names;
    • Dropping references to al-Mašriq (the core lands of the Islamic world);
    • Overall reduction in verbosity, omission of details
    • Omission of lesser known individuals
  2. Method: ngram matching

3. Did he make them better or worse?

  1. How did the sentiment in biographies change?
    • al-Ḏahabī’s biographies are:
      1. more positive?
      2. more negative?
      3. the same?
  2. Method: sentiment assessment with ChatGPT

3. Did he make them better or worse?

3. Did he make them better or worse?

4. Why he omitted “obvious” candidates?

  1. Preference for longer biographies?
  2. From the longest biographies in his sources, he omitted biographies of individuals:
    • whose reputations was less solid
    • whose achievements were less significant
    • whose biographies has less details.
  3. Method: ChatGPT assessment

5. How did he choose biographies? (Take 2)

  1. Did disciplinary profile play any role in his selection?
    • ChatGPT identified disciplinary profiles
    • We then compare how the distribution of profiles changed in his sample
  2. Method: ChatGPT Assessment + statistics comparison

5. How did he choose biographies? (Take 2)

5. How did he choose biographies? (Take 2)

The null hypothesis: al-Ḏahabī’s selection is purely random.

  • p-value test quantifies the probability of obtaining the observed result if the null hypothesis were true.
  • p-value < 0.05 (5%), the observed result is not random.
  • p-value for our simulated data is 0.000228, or 0.0228%

In humanese, this means that out of all al-Ḏahabīs across 1,000,000 parallel universes, only 228 arrived at a sample that was more representative than the selection of our al-Ḏahabī.

In statistical terms, his selection was deliberate and methodical.

al-Ḏahabī and his Andalusian sources

al-Ḏahabī took 2,109 of 6,782 (31%) biographies from the three Andalusian collections by Ibn al-Faraḍī, Ibn Baškuwāl, and Ibn al-Abbār. Altogether, his Tārīḫ al-islām amassed 30,000 biographies

  • did not select only longest biographies (not only the elite);
  • optimized biographies, without tarnishing or embellishment;
  • aimed at simplification and unification of the language;
  • shortened them:
    • 24-38% reduction per biography
    • Cutting just 4 words from each biography saves 120,000 words: three copies of “The Ring of the Dove” of Ibn Ḥazm (d. 456/1064).

al-Ḏahabī and his Andalusian sources

  • seems to have “dehumanized” people:
    • simplification of the language improves retrievability
  • genuinely tried to represent al-Andalus in his History
    • by preserving the distribution of “disciplinary” profiles (comparable % of jurists, grammarians, etc.);
    • by preserving chronological distribution: his data follows the overall curve of al-Andalus;

Part

3

Generative LLMs as assistants

Method

The irony of new media

Socrates speaking to a silent scroll, with the Acropolis behind

The classical critique of books

“If anyone asks them anything, they remain most solemnly silent.”

Plato, Phaedrus 275d

Writing was once suspect; today written texts are our scholarly gold standard.

The modern parallel

Now, knowledge from LLMs is suspect…

…yet LLMs bring dialogue back to reading.

The ultimate irony: technology restores the interactive conversation Plato feared was lost.

What an LLM is (humanistically speaking)

  • A system that produces fluent text — including text that looks like reasoning, and sometimes is
  • Not a database, not a person, not a finished reasoner
  • Treat outputs as well-formed drafts that need your judgment to become reliable
  • Unusually good at form, unevenly good at content

LLMs are catalysts — catalysts need substrate (1)

  • A catalyst accelerates a reaction that is already possible
  • It does not create the reaction from nothing
  • LLMs work the same way: they accelerate the work you can already do, in fields where you can judge the output
  • I can use an LLM to read Arabic faster — I have the training to catch its mistakes
  • I cannot use an LLM to read Chinese historical texts reliably — I have no substrate to check it against

LLMs are research assistants, not cheating devices

  • Designing:
    • start with a question about your research problem;
    • arrive at detailed working methodological solutions;
  • Implementing:
  • Evaluating:
    • critically assess your results — let it criticize everything
Questions?
1 / 90

Keys

→ space PgDnnext slide
← PgUpprevious slide
Home / Endfirst / last
Ffullscreen
Ooverview of all slides
Sspeaker notes in a second window
Ttype tester: fonts, weights, size
+ / − / 0text larger / smaller / reset
?this help

Print (⌘P) gives one slide per page. Add #12 to the address to open a slide.