zain_
ai lab · intervention
← all of the ai labProduct2026self

Marifa: A Companion for Reading Sacred Texts, Layer by Layer

Classical Sufi and Tamil-Islamic texts carry meaning on several levels at once, the literal surface and the inner, esoteric depth beneath it, across Arabic, Persian, and old Tamil in the same line. I built Marifa as a study companion that breaks a passage down word by word, roots and all, and holds both the outer and inner meaning without flattening either.

role
Solo build: designed the method, the prompt system, and the study workflow
stack
Applied AI · Prompt engineering · Knowledge systems · Linguistics · Personal tooling
status
shipped · in use

How I got here

I have a decades-long reading practice in ma'rifa, Islamic mysticism, centred on a page-by-page study of a classical text that moves fluidly between Arabic, Persian, and old, literary Tamil. The difficulty isn't just translation. These texts are deliberately layered: a single word carries a plain outer meaning (Zahir) and an inner, esoteric one (Batin), and the archaic Tamil is as opaque to a modern reader as the Arabic roots are.

Generic AI tools were worse than useless here. They'd smooth over what they didn't know and hand me a confident, wrong meaning. In a spiritual practice, a plausible fabrication is the one thing you cannot accept. I needed a companion built around precision and honest uncertainty, not fluency.

How I thought about it

The whole design rests on one non-negotiable: zero tolerance for invention. If a meaning is contested among scholars, the tool says so rather than picking one. If it isn't sure, it flags it. I would rather it stop than guess.

From there, the method mirrors how the texts actually work: you can't understand the inner meaning until you've done the literal one, and you can't do the literal one until you've identified what language each word is even in. So the companion always runs the same disciplined sequence: detect the language and root of each word first, then the outer meaning, then the inner meaning, then ground the abstract idea in a plain everyday analogy, and mirror the explanation back in proper Tamil-Islamic literary vocabulary, not generic or mismatched spiritual terms.

I was the accuracy gate at every step. The tool proposes; I verify against recognized scholarship before anything is kept.

What I actually did

I designed the method into a precise, repeatable system and encoded it as a study companion.

For any word or phrase, it runs the ladder in order: language and root detection (Arabic/Persian triconsonantal roots with their foundational meaning; classical Tamil roots with a modern-Tamil gloss so the archaic term is demystified), then Zahir, the strict literal translation, then Batin, the Sufi meaning as it applies to the seeker's path, then an analogy when the concept is abstract, each rendered bilingually in English and elevated literary Tamil.

Around the live breakdown, I built the other half: a persistent study store. The companion is the method; a structured knowledge base is the memory. Breakdowns get filed into atomic notes (one per concept, one per glossary word by language, one per page studied, one per scholar referenced) cross-linked so the whole map of the text builds up over time instead of evaporating after each session. Contested claims and anything needing a canonical cross-check are flagged into their own lists rather than quietly accepted.

photo drops here
A passage broken down the full ladder: each word's language and root, then Zahir (outer) and Batin (inner) meanings side by side in English and literary Tamil, closing with a grounding analogy
photo drops here
The persistent study store: atomic linked notes for concepts, glossary words by language, pages, and figures, with contested claims flagged rather than flattened

Where it landed

It's a companion I use in my own daily reading. It grew out of a tool I'd iterated on for a long time before I ever formalized it, and it's verified against the deployed version so the method stays exactly as I intend it, with nothing spiritual invented or altered.

I include it here for a specific reason. It's the clearest proof of a way of working I bring to everything: take a domain most tools treat carelessly, understand its real structure deeply enough to respect it, and design a system precise enough to be trusted with it. The subject is sacred; the discipline behind the build is the same one I bring to product.