About   Subscribe   Contact   Random
Dr Mandar Marathe

1,000 Years of Arabic Rhetoric in 36,757 Lines of Code

📅 Sat 5 December 2026 at 06:03 GMT

When you start postgraduate research, they teach you about “hierarchies of knowledge.” It pops up in the context of selecting a good research project. “Hierarchies of knowledge” says that not all knowledge — and therefore not all research — is equal.

Research that simply documents something is low in the hierarchy. Research that systemises, conceptualises, and formalises knowledge gets progressively higher. And at the highest level is research that operationalises knowledge, because it brings together all the other levels, and crucially, allows new knowledge to be generated from it.

When I first heard this — probably during my Master’s in 2022 — I remember being really impressed by the idea. Applying it to my own research into Arabic rhetoric, I realised that identifying, describing, and counting rhetorical phenomena such as metaphors in a poem or scripture, was simply documentation: the lowest level of investigation.

I had to do better.

So I set out to systemise Arabic rhetorical device identification, as a first step, before documenting anything. In the process of doing so, I observed some trends, some recurring themes, occurring in the domain. I used these findings to conceptualise Arabic rhetorical phenomena, resulting in a new theoretical model. I call it the “Model for Rhetorical Action“. I formalised my findings by completely integrating the Model with the systematic identification process from earlier.

I then condensed 4 years of research into a 3MB data file containing 36,757 lines of code. It uses a knowledge-representation language called OWL that is specifically designed to efficiently express complex concepts and relationships. And I loaded the file into the leading text annotation platform, INCEpTION. The photo shows what I got: the whole of Arabic rhetoric (not just metaphors or whatever), ready to be annotated.

The file contains the specifications of 80 Arabic rhetorical devices, as described in the classical Arabic rhetorical theory which dates back over 1000 years. At the start of my PhD, I set myself six inclusion and exclusion criteria for which devices would be included, and seven principles about how I would organise, analyse, and present the classical theory. One of the earliest decisions was that rhetorical devices would be organised on the basis of how they worked — their linguistic operation such as a repetition or a deletion of a word — rather than the rhetorical effect they may cause. I called this a “Linguistic Operation-First” approach to rhetorical analysis.

In terms of scholarly provenance, I set myself a minimum standard: each rhetorical device must be attested to by at least three separate scholars. This was a significant intellectual upgrade from my Master’s where I was happy with just one source per device! The slimmest device is called Excellence of Division with 3 unique authorial sources. The heaviest one is Ellipsis is 14. Devices like Metaphor and Simile weigh in at 10 each. The mean is 7.25 unique authorial sources, and the median is 7.

Worth noting — these numbers often reflect how complicated the device’s linguistic operation is, and how much triangulating evidence was required to achieve a coherent position, rather than how dodgy the device’s existence might be.

Some of these 80 rhetorical devices have subtypes — 330 of them, in fact. Some devices such as Deliberate Ambiguity and Brevity are lonely bachelors with no subtypes. They pack a punch on their own. Others such as Rhetorical Interrogative, Rhetorical Imperative, and Relational Transfer move in large families with 35, 25, and 25 subtypes respectively. For them, the family connection matters. The average is 4.1 subtypes per device, and the median is 2. The file provides in total 410 annotation tags which can be used to annotate Arabic rhetorical phenomena in texts, at whatever level of granularity is required for a project.

As you can imagine, there was a lot of information to organise. I drew inspiration from how medical textbooks are organised, and how doctors use that information to diagnose diseases. Each rhetorical device has a core dataset consisting of its definition, unique linguistic operation, recognition criteria, diagnostic communicative effects, subtypes, examples, mimics, and sources. To make it easier to identify Arabic rhetorical devices in texts, I drafted six identification principles.

In case you are wondering — and yes, I should have mentioned — all my work is presented in English. There are already a ton of Arabic-language resources on rhetoric — al-balāgha — but relatively little for the non-Arabic native speaker. English is also the lingua franca for fields such as computational and quantitative linguistics and digital humanities. Where Arabic text is relevant and useful, I have provided it. But I want to expose the field to the rigour of modern scientific analysis, and English already brings its own terms, tools, and thinking for this. One of the consequences is that I had to devise English names for all classical Arabic rhetorical names and terms.

On my website — the Encyclopedia of Arabic Rhetoric — I freely (CC BY 4.0) provide the file… and if 410 annotation tags is too many to fathom (I know, I know!), there is a page that allows you to pick and choose whichever annotation tags your project needs, and you can download a customised version of the file. The work is available in both Turtle and JSON-LD serialisations of OWL, and as a lightweight SKOS concept scheme in JSON-LD. More resources are on their way.

There is still a lot to be done before the formal release, and all this is still a draft. But the Arabic Rhetorical Device Ontology — the successor to the Arabic Rhetorical Device Taxonomy from last year — is about to make an entrance, and you heard it here first!

It is my operationalisation of Arabic rhetorical analysis, the highest form of knowledge and research. I hope this work makes the other forms of research in Arabic rhetoric more rigorous, consistent, reproducible, and repeatable at scale.

Arabic Rhetorical Device Ontology
Mandar Marathe

Enjoyed this thought?

You can receive one deeper reflection each morning by email — a quiet moment in your day.

– Mandar

🔖 #ArabicNLP #ArabicRhetoric #ComputationalLinguistics #DigitalHumanities #INCEpTION #QuantitativeLinguistics #SemanticWeb #ADeeperThought

* Join the conversation on  LinkedIn