Skip to content

The Arabic Rhetorical Device Identifier - a custom GPT and AI system prompt package to assist in identifying Arabic rhetorical devices, in classical and contemporary Arabic texts, published by the Encyclopedia of Arabic Rhetoric (https://al-balagha.com).

License

Notifications You must be signed in to change notification settings

Al-Balagha/Arabic-Rhetoric-Identifier

Repository files navigation

Encyclopedia of Arabic Rhetoric

A custom GPT and AI system prompt package to assist in identifying Arabic rhetorical devices, in classical and contemporary Arabic texts, published by the Encyclopedia of Arabic Rhetoric.

DOI

 

ℹ️ About

The Arabic Rhetorical Device Identifier (ARDI) is a digital humanities research artefact designed to support the systematic identification of Arabic rhetorical devices in classical and contemporary Arabic texts using the Arabic Rhetorical Device Taxonomy developed by the Encyclopedia of Arabic Rhetoric.

The ARDI consists of a custom Generative Pre-trained Transformer (GPT) interface and artificial intelligence (AI) system prompts which create a human-in-the-loop AI-assisted analytical framework, enabling transparent and reproducible rhetorical analysis. The ARDI allows for different levels of sensitivity in detecting rhetorical devices, and can be used for Arabic texts of any genre and dialect. It is designed to assist researchers, students, and annotators by highlighting candidate rhetorical devices in Arabic texts for subsequent human evaluation. The ARDI incorporates the Arabic Rhetorical Device Taxonomy v0.1.1 and can be used as an operational interface to the Taxonomy.

Additionally, the ARDI includes a mode where users can interrogate the Arabic Rhetorical Device Taxonomy through an AI interface, a mode where the ARDI offers a conversation about the Arabic Rhetorical Device Taxonomy, and a mode where the ARDI offers users a rhetorical device identification game which can be set at different levels of difficulty.

The ARDI is freely released under the CC-BY 4.0 license to promote the development of contemporary Arabic rhetorical studies, and is currently being used by the BALAGHA Score and other projects.

 

🎯 Purpose

The ARDI is designed to:

  • Assist in identifying rhetorical devices in Arabic texts.
  • Reduce omission bias during manual annotation.
  • Provide structured explanations aligned with classical Arabic rhetoric.
  • Support reproducible, transparent rhetorical analysis workflows.
  • Support education about Arabic rhetorical devices.
  • Support training in Arabic rhetorical device identification through a gamified challenge mode.

 

📦 Repository Contents

The ARDI package is self-contained and has been tested with the following AI systems: OpenAI ChatGPT, Anthropic Claude, and Google Gemini. No executable code is included; the ARDI is platform-agnostic. While outputs may vary across AI models, the ARDI's analytical behaviour is governed by explicit system instructions and taxonomy constraints rather than model-specific heuristics.

The package provides three formally equivalent distributions of the ARDI which differ only in delivery format and usability constraints, not in theoretical scope, taxonomy, or methodological assumptions.

Users may select the distribution most appropriate to their technical context:

1️⃣ CUSTOM_GPT/ — Platform-integrated configuration

A complete ARDI implementation packaged for use as a custom GPT, including system instructions, operational modes, and the rhetorical taxonomy.

  • Optimised for interactive analysis, teaching, and live demonstrations.
  • Requires a platform that supports custom GPT deployment.
  • Behaviour is methodologically identical to the standalone system prompt.

2️⃣ CUSTOM_PROMPT_FULL/ — Standalone system prompt

A single, self-contained system prompt reproducing the full ARDI behaviour across all modes.

  • Platform-agnostic and suitable for long-term archiving.
  • Recommended for reproducible research, peer review, and citation.
  • Independent of proprietary interfaces or UI constraints.

3️⃣ CUSTOM_PROMPTS_LITE/ — Mode-specific prompts for constrained environments

Four scope-limited variants of the ARDI system prompt, each corresponding to a single operational mode.

  • Designed for limited context windows or reduced memory environments.
  • Preserves conceptual consistency with the full system.
  • Intended for rapid analysis, experimentation, or accessibility‑restricted accounts.

All distributions instantiate the same rhetorical taxonomy, analytical logic, and human-in-the-loop design philosophy.

 

📚 Folder structure

/
├── README.md
├── LICENSE.txt
├── CITATION.cff
├── CHANGELOG.md
│
├── static/
│   └── logo.png
│
├── CUSTOM_GPT/
│   ├── 00_SYSTEM_INSTRUCTIONS.txt
│   ├── 01_MODES.txt
│   ├── 02_TAXONOMY.md
│   └── README.md
│
├── CUSTOM_PROMPT_FULL/
│   ├── ARABIC_RHETORICAL_DEVICE_IDENTIFIER_CUSTOM_PROMPT.txt
│   └── README.md
│
└── CUSTOM_PROMPTS_LITE/
    ├── 00_ARABIC_RHETORICAL_DEVICE_IDENTIFIER_CUSTOM_PROMPT_ANALYSIS.txt
    ├── 01_ARABIC_RHETORICAL_DEVICE_IDENTIFIER_CUSTOM_PROMPT_EXPLAIN.txt
    ├── 02_ARABIC_RHETORICAL_DEVICE_IDENTIFIER_CUSTOM_PROMPT_CONVERSATION.txt
    ├── 03_ARABIC_RHETORICAL_DEVICE_IDENTIFIER_CUSTOM_PROMPT_CHALLENGE.txt
    └── README.md

 

📋 Prerequisites

  • Access to an AI platform such as ChatGPT, Claude, or Gemini.
  • Basic understanding of how to use the AI platform.

 

🚀 Quick Start

  1. Choose your distribution (Custom GPT or Standalone Prompt).
  2. Upload to your preferred AI platform.
  3. Start with "Run this prompt" or use conversation starters.

 

▶️ How to Use

The ARDI can be used in two environments which behave identically by design:

1️⃣ As a Custom GPT

2️⃣ As a Stand‑alone Prompt

 

⚠️ Limitations

  • AI-assisted identification requires human verification.
  • Output quality depends on underlying AI model capabilities.
  • The ARDI is not a replacement for expert human annotation.
  • Classical vs. contemporary rhetorical interpretations may vary

 

🔄 Versioning

The ARDI uses Semantic Versioning (SemVer).

 

🤝 How to contribute

This is a research artefact with versioned releases. Please contact the author for any suggestions or issues.

 

📖 How to Cite

APA: Marathe, M. (2025). Arabic Rhetorical Device Identifier (ARDI) (v0.1.0). Encyclopedia of Arabic Rhetoric. https://doi.org/10.5281/zenodo.18236000

Chicago: Marathe, Mandar. Arabic Rhetorical Device Identifier (ARDI), v0.1.0. Encyclopedia of Arabic Rhetoric, 2025. https://doi.org/10.5281/zenodo.18236000

BibTeX:

@software{ardi2025,
  author  = {Mandar Marathe},
  title   = {Arabic Rhetorical Device Identifier (ARDI)},
  year    = {2025},
  version = {0.1.0},
  url     = {https://doi.org/10.5281/zenodo.18236000}
}

 

📬 About the Author

Dr Mandar Marathe | SOAS Profile
PhD Researcher in Arabic Rhetoric | SOAS University of London
Project Home

Related Projects

Connect

LinkedIn ORCID Google Scholar

Last updated: 13 January 2025.

About

The Arabic Rhetorical Device Identifier - a custom GPT and AI system prompt package to assist in identifying Arabic rhetorical devices, in classical and contemporary Arabic texts, published by the Encyclopedia of Arabic Rhetoric (https://al-balagha.com).

Topics

Resources

License

Stars

Watchers

Forks