Published May 27, 2025 | Version 1.0.0

Code and Data Used in "Text Mining Tafsir: Compilation and Preliminary Explorations of a Curated Corpus of 80 Qur'anic Commentaries" Article (Journal of Digital Islamicate Research 2025)

  • 1. Ruhr University Bochum

Contributors

Contact person:

  • 1. Ruhr University Bochum

Description

This repository includes the code and parts of the data used in the article titled "Text Mining Tafsir: Compilation and Preliminary Explorations of a Curated Corpus of 80 Qur’anic Commentaries," published in the Journal of Digital Islamicate Research. Please note that the Jupyter notebooks in this repository are solely intended to document the clustering process. The individual steps can only be replicated with the necessary data, including the Mistral AI embeddings. The data originates from Adrian Bernhard's Tafsir database, available on Zenodo.

This repository includes:

  1. The Jupyter notebook Clustering.ipynb used to retrieve embeddings and conduct the clustering analysis.
  2. Most of the data, tables, images, and csv files used in the article in the respective subfolders.
  3. Smaller parts of the EDA in the Jupyter notebook EDA.ipynb.
  4. All embeddings retrieved via the Mistral API (in the form of pickle files) which build the foundation of the clustering analysis.
  5. The SQL queries used in the database to create certain statistics (see the file SQL_query.md).

Files

tafsir-text-mining-article.zip

Files (14.3 MB)

Name Size Download all
md5:d8418e45af97a0d102fffa9b5e39229f
14.3 MB Preview Download

Additional details

Dates

Created
2025-05-26
First version used in the article.

Software

Repository URL
https://github.com/thomjur/tafsir-text-mining-article/
Programming language
Python
Development Status
Active