# Taaweel 2.0 and Mizan: product documentation

*One-file edition of https://taaweel.snapkodex.com/docs, 26 chapters, last changed 2026-11-24. Links point to https://taaweel.snapkodex.com.*

## Contents


**Concepts and method**

- [Taaweel — Overview](#ch-00-overview)
  - [What a run looks like](https://taaweel.snapkodex.com/docs/00-overview#what-a-run-looks-like)
  - [What you get at the end](https://taaweel.snapkodex.com/docs/00-overview#what-you-get-at-the-end)
  - [Where to go next](https://taaweel.snapkodex.com/docs/00-overview#where-to-go-next)
  - [Using the product](https://taaweel.snapkodex.com/docs/00-overview#using-the-product)
- [Origins — why Taaweel 2.0 exists](#ch-01-origins)
  - [The document that started it](https://taaweel.snapkodex.com/docs/01-origins#the-document-that-started-it)
  - [The gap it exposed](https://taaweel.snapkodex.com/docs/01-origins#the-gap-it-exposed)
  - [The idea](https://taaweel.snapkodex.com/docs/01-origins#the-idea)
- [The method, decoded](#ch-02-method)
  - [The one direction of inference](https://taaweel.snapkodex.com/docs/02-method#the-one-direction-of-inference)
  - [The fifteen moves, grouped](https://taaweel.snapkodex.com/docs/02-method#the-fifteen-moves-grouped)
  - [The invariants (enforced in code, not prose)](https://taaweel.snapkodex.com/docs/02-method#the-invariants-enforced-in-code-not-prose)
  - [The claim-strength ladder](https://taaweel.snapkodex.com/docs/02-method#the-claim-strength-ladder)
- [System architecture](#ch-03-architecture)
  - [The shape of the system](https://taaweel.snapkodex.com/docs/03-architecture#the-shape-of-the-system)
  - [Layered design](https://taaweel.snapkodex.com/docs/03-architecture#layered-design)
  - [Key design decisions](https://taaweel.snapkodex.com/docs/03-architecture#key-design-decisions)
- [The 13 stages](#ch-04-stages)
  - [Stage notes worth knowing](https://taaweel.snapkodex.com/docs/04-stages#stage-notes-worth-knowing)
- [The data it reads](#ch-05-data)
  - [The verse-fetching layer](https://taaweel.snapkodex.com/docs/05-data#the-verse-fetching-layer)
  - [Taaweel&#39;s own database](https://taaweel.snapkodex.com/docs/05-data#taaweel39s-own-database)
  - [Extending the data](https://taaweel.snapkodex.com/docs/05-data#extending-the-data)
- [The science layer](#ch-06-science)
  - [Three tiers of science](https://taaweel.snapkodex.com/docs/06-science#three-tiers-of-science)
  - [How a comparison runs (correspondence stage)](https://taaweel.snapkodex.com/docs/06-science#how-a-comparison-runs-correspondence-stage)
  - [Scientific unknowns are not negations](https://taaweel.snapkodex.com/docs/06-science#scientific-unknowns-are-not-negations)
  - [The examination&#39;s speculative pass](https://taaweel.snapkodex.com/docs/06-science#the-examination39s-speculative-pass)
- [Guardrails — uṣūl, ladder, terminology](#ch-07-guardrails)
  - [The uṣūl audit (U1–U16)](https://taaweel.snapkodex.com/docs/07-guardrails#the-uṣūl-audit-u1u16)
  - [The claim-strength ladder + the L7 gate](https://taaweel.snapkodex.com/docs/07-guardrails#the-claim-strength-ladder-the-l7-gate)
  - [Terminology discipline](https://taaweel.snapkodex.com/docs/07-guardrails#terminology-discipline)
  - [The failure modes these guard against](https://taaweel.snapkodex.com/docs/07-guardrails#the-failure-modes-these-guard-against)
- [The chat loops](#ch-08-chat)
  - [Refine → lock → run (before research)](https://taaweel.snapkodex.com/docs/08-chat#refine-lock-run-before-research)
  - [Discuss → regenerate from an angle (after research)](https://taaweel.snapkodex.com/docs/08-chat#discuss-regenerate-from-an-angle-after-research)
  - [Under the hood](https://taaweel.snapkodex.com/docs/08-chat#under-the-hood)
- [Provenance — the meta report](#ch-09-meta)
  - [What the page shows](https://taaweel.snapkodex.com/docs/09-meta#overview)
  - [Why it exists](https://taaweel.snapkodex.com/docs/09-meta#why-it-exists)
  - [Provenance in the data model](https://taaweel.snapkodex.com/docs/09-meta#provenance-in-the-data-model)
- [Taaweel 1.0 vs 2.0](#ch-10-taaweel-1-vs-2)
  - [Side by side](https://taaweel.snapkodex.com/docs/10-taaweel-1-vs-2#side-by-side)
  - [What Taaweel 2.0 takes from Taaweel 1.0](https://taaweel.snapkodex.com/docs/10-taaweel-1-vs-2#what-taaweel-20-takes-from-taaweel-10)
  - [What Taaweel 2.0 adds that Taaweel 1.0 has no equivalent for](https://taaweel.snapkodex.com/docs/10-taaweel-1-vs-2#what-taaweel-20-adds-that-taaweel-10-has-no-equivalent-for)
  - [Where 1.0&#39;s features go](https://taaweel.snapkodex.com/docs/10-taaweel-1-vs-2#where-1039s-features-go)
- [Operating Taaweel](#ch-11-operations)
  - [Run it](https://taaweel.snapkodex.com/docs/11-operations#run-it)
  - [Providers and models](https://taaweel.snapkodex.com/docs/11-operations#providers-and-models)
  - [The two workflows](https://taaweel.snapkodex.com/docs/11-operations#the-two-workflows)
  - [Offline safety net](https://taaweel.snapkodex.com/docs/11-operations#offline-safety-net)
  - [Cost discipline](https://taaweel.snapkodex.com/docs/11-operations#cost-discipline)
  - [Known boundaries (honest)](https://taaweel.snapkodex.com/docs/11-operations#known-boundaries-honest)

**Using Taaweel**

- [Getting started: account, sign-in and the basics](#ch-20-getting-started)
  - [The sidebar](https://taaweel.snapkodex.com/docs/20-getting-started#the-sidebar)
  - [Sign up](https://taaweel.snapkodex.com/docs/20-getting-started#sign-up)
  - [Verify your email](https://taaweel.snapkodex.com/docs/20-getting-started#verify-email)
  - [Onboarding questions](https://taaweel.snapkodex.com/docs/20-getting-started#onboarding-questions)
  - [Tours](https://taaweel.snapkodex.com/docs/20-getting-started#tours)
  - [Sign in](https://taaweel.snapkodex.com/docs/20-getting-started#sign-in)
  - [Your account](https://taaweel.snapkodex.com/docs/20-getting-started#account)
  - [Scholar registration](https://taaweel.snapkodex.com/docs/20-getting-started#scholar-registration)
  - [Feedback](https://taaweel.snapkodex.com/docs/20-getting-started#feedback)
  - [Where to go next](https://taaweel.snapkodex.com/docs/20-getting-started#where-to-go-next)
- [Research runs: from a question to a cited report](#ch-21-research-runs)
  - [Runs: your dashboard](https://taaweel.snapkodex.com/docs/21-research-runs#runs)
  - [Ask a question](https://taaweel.snapkodex.com/docs/21-research-runs#ask-a-question)
  - [Refine and lock the question](https://taaweel.snapkodex.com/docs/21-research-runs#refine-and-lock)
  - [Start a run](https://taaweel.snapkodex.com/docs/21-research-runs#start-a-run)
  - [The run page](https://taaweel.snapkodex.com/docs/21-research-runs#the-run-page)
  - [Claims and objections](https://taaweel.snapkodex.com/docs/21-research-runs#objections)
  - [Regenerate, or fork through a verse](https://taaweel.snapkodex.com/docs/21-research-runs#regenerate)
  - [Architecture, and rebuilding](https://taaweel.snapkodex.com/docs/21-research-runs#architecture)
  - [The report](https://taaweel.snapkodex.com/docs/21-research-runs#the-report)
  - [Delete a run](https://taaweel.snapkodex.com/docs/21-research-runs#delete-a-run)
- [Chats and attachments](#ch-22-chats-and-attachments)
  - [Chat sessions](https://taaweel.snapkodex.com/docs/22-chats-and-attachments#chat-sessions)
  - [Open a refinement chat](https://taaweel.snapkodex.com/docs/22-chats-and-attachments#new-chat)
  - [Attach a file to a chat](https://taaweel.snapkodex.com/docs/22-chats-and-attachments#chat-attachments)
  - [Attachments](https://taaweel.snapkodex.com/docs/22-chats-and-attachments#attachments)
  - [Pasted empirical sources](https://taaweel.snapkodex.com/docs/22-chats-and-attachments#pasted-sources)
- [Reports and document audits](#ch-23-reports-and-audits)
  - [Reports library](https://taaweel.snapkodex.com/docs/23-reports-and-audits#reports-library)
  - [Document audits](https://taaweel.snapkodex.com/docs/23-reports-and-audits#document-audits)
- [Numerics: count a word across the muṣḥaf](#ch-24-numerics)
  - [Overview](https://taaweel.snapkodex.com/docs/24-numerics#overview)
  - [Analyse a term](https://taaweel.snapkodex.com/docs/24-numerics#term)
  - [Co-occurrence](https://taaweel.snapkodex.com/docs/24-numerics#co-occurrence)
  - [Reading the results](https://taaweel.snapkodex.com/docs/24-numerics#reading-the-results)
- [Ontology: the concept graph](#ch-25-ontology)
  - [Overview](https://taaweel.snapkodex.com/docs/25-ontology#overview)
  - [Search](https://taaweel.snapkodex.com/docs/25-ontology#search)
  - [The tree](https://taaweel.snapkodex.com/docs/25-ontology#tree)
  - [Node page](https://taaweel.snapkodex.com/docs/25-ontology#node-page)
  - [Labeled verses and the verse page](https://taaweel.snapkodex.com/docs/25-ontology#labeled-verses)
  - [The graph explorer](https://taaweel.snapkodex.com/docs/25-ontology#graph)
- [Admin console](#ch-26-admin-console)
  - [Overview](https://taaweel.snapkodex.com/docs/26-admin-console#overview)
  - [First-run setup](https://taaweel.snapkodex.com/docs/26-admin-console#first-run-setup)
  - [Users](https://taaweel.snapkodex.com/docs/26-admin-console#users)
  - [All research](https://taaweel.snapkodex.com/docs/26-admin-console#all-research)
  - [Spend](https://taaweel.snapkodex.com/docs/26-admin-console#spend)
  - [Models](https://taaweel.snapkodex.com/docs/26-admin-console#models)
  - [Feedback queue](https://taaweel.snapkodex.com/docs/26-admin-console#feedback-queue)
  - [Scholar review](https://taaweel.snapkodex.com/docs/26-admin-console#scholar-review)
  - [Audit log](https://taaweel.snapkodex.com/docs/26-admin-console#audit-log)
  - [System](https://taaweel.snapkodex.com/docs/26-admin-console#system-health)
  - [Ontology curation](https://taaweel.snapkodex.com/docs/26-admin-console#ontology-curation)
- [Public pages: landing, features, docs and legal](#ch-27-public-pages)
  - [Landing](https://taaweel.snapkodex.com/docs/27-public-pages#landing)
  - [Features](https://taaweel.snapkodex.com/docs/27-public-pages#features)
  - [Documentation](https://taaweel.snapkodex.com/docs/27-public-pages#documentation)
  - [Credits](https://taaweel.snapkodex.com/docs/27-public-pages#credits)
  - [Legal pages](https://taaweel.snapkodex.com/docs/27-public-pages#legal)

**Mizan (numerical analysis)**

- [Mizan: Look up](#ch-30-mizan-lookup)
  - [Overview](https://taaweel.snapkodex.com/docs/30-mizan-lookup#overview)
  - [Search](https://taaweel.snapkodex.com/docs/30-mizan-lookup#search)
  - [Settings: how we count](https://taaweel.snapkodex.com/docs/30-mizan-lookup#settings-how-we-count)
  - [Results](https://taaweel.snapkodex.com/docs/30-mizan-lookup#results)
  - [The Calculation explorer](https://taaweel.snapkodex.com/docs/30-mizan-lookup#calculation-explorer)
  - [Atlas](https://taaweel.snapkodex.com/docs/30-mizan-lookup#atlas)
  - [Fibonacci studies](https://taaweel.snapkodex.com/docs/30-mizan-lookup#fibonacci)
  - [Other tools on this page](https://taaweel.snapkodex.com/docs/30-mizan-lookup#tools)
  - [What you&#39;ll get](https://taaweel.snapkodex.com/docs/30-mizan-lookup#what-you-get)
- [Mizan: Compare two words or phrases](#ch-31-mizan-compare)
  - [Overview](https://taaweel.snapkodex.com/docs/31-mizan-compare#overview)
  - [Inputs](https://taaweel.snapkodex.com/docs/31-mizan-compare#inputs)
  - [Summary](https://taaweel.snapkodex.com/docs/31-mizan-compare#summary)
  - [Insight](https://taaweel.snapkodex.com/docs/31-mizan-compare#insight)
  - [Charts](https://taaweel.snapkodex.com/docs/31-mizan-compare#charts)
  - [Reading panel](https://taaweel.snapkodex.com/docs/31-mizan-compare#reading-panel)
  - [Per-surah table](https://taaweel.snapkodex.com/docs/31-mizan-compare#table)
  - [Counting rules](https://taaweel.snapkodex.com/docs/31-mizan-compare#counting-rules)
  - [Sharing](https://taaweel.snapkodex.com/docs/31-mizan-compare#sharing)
- [Mizan: Perspectives](#ch-32-mizan-perspectives)
  - [Overview](https://taaweel.snapkodex.com/docs/32-mizan-perspectives#overview)
  - [Text to study](https://taaweel.snapkodex.com/docs/32-mizan-perspectives#text-to-study)
  - [Measure each verse by](https://taaweel.snapkodex.com/docs/32-mizan-perspectives#measure)
  - [Choosing a lens](https://taaweel.snapkodex.com/docs/32-mizan-perspectives#choosing-a-lens)
  - [The chart](https://taaweel.snapkodex.com/docs/32-mizan-perspectives#the-chart)
  - [The five tabs](https://taaweel.snapkodex.com/docs/32-mizan-perspectives#the-five-tabs)
  - [Chart tools](https://taaweel.snapkodex.com/docs/32-mizan-perspectives#chart-tools)
  - [Researcher mode](https://taaweel.snapkodex.com/docs/32-mizan-perspectives#researcher-mode)
  - [Theme](https://taaweel.snapkodex.com/docs/32-mizan-perspectives#theme)
  - [The lenses](https://taaweel.snapkodex.com/docs/32-mizan-perspectives#the-lenses)
- [Mizan: Al-Fātiḥah](#ch-33-mizan-fatihah)
  - [Overview](https://taaweel.snapkodex.com/docs/33-mizan-fatihah#overview)
  - [How the 7 verses are numbered](https://taaweel.snapkodex.com/docs/33-mizan-fatihah#numbering)
  - [Vowel held before a pause](https://taaweel.snapkodex.com/docs/33-mizan-fatihah#madd)
  - [Choosing a chapter](https://taaweel.snapkodex.com/docs/33-mizan-fatihah#choosing-a-lens)
  - [The five tabs](https://taaweel.snapkodex.com/docs/33-mizan-fatihah#the-five-tabs)
  - [Chart tools](https://taaweel.snapkodex.com/docs/33-mizan-fatihah#chart-tools)
  - [Researcher mode](https://taaweel.snapkodex.com/docs/33-mizan-fatihah#researcher-mode)
  - [The chapters](https://taaweel.snapkodex.com/docs/33-mizan-fatihah#the-chapters)
- [Mizan: counting rules and honesty principles](#ch-34-mizan-counting-rules)
  - [The three promises](https://taaweel.snapkodex.com/docs/34-mizan-counting-rules#principles)
  - [Settings: How we count](https://taaweel.snapkodex.com/docs/34-mizan-counting-rules#settings)
  - [The methods](https://taaweel.snapkodex.com/docs/34-mizan-counting-rules#methods)

**Help**

- [Frequently asked questions](#ch-40-faq)
  - [Getting started](https://taaweel.snapkodex.com/docs/40-faq#getting-started)
  - [Research](https://taaweel.snapkodex.com/docs/40-faq#research)
  - [Mizan](https://taaweel.snapkodex.com/docs/40-faq#mizan)
  - [Scholars and community](https://taaweel.snapkodex.com/docs/40-faq#scholars-and-community)
  - [Using the documentation](https://taaweel.snapkodex.com/docs/40-faq#using-the-documentation)

---

<a id="ch-00-overview"></a>

<!-- chapter: 00-overview | https://taaweel.snapkodex.com/docs/00-overview -->

## Taaweel — Overview

**Taaweel 2.0** (تأويل, "interpretation") is a research engine that studies the Qurʾān the way a disciplined
researcher would: it maps the whole corpus, treats every inherited translation as a hypothesis on
trial, gathers the word-level evidence, compares with science without letting science write meanings,
attacks its own conclusions, and then — and only then — commits to an answer with every claim cited.

It was developed as **Burhan**, a parallel engine beside Taaweel 1.0, and has now replaced it as
Taaweel 2.0. Its corpora are opened strictly read-only.

---

### What a run looks like

You type a rough question, chat to refine it, lock it, and press start. Thirteen stages then run:

```mermaid
flowchart LR
  Q["Your question\n(locked after refinement)"] --> P
  subgraph S13["13 automated stages"]
    P[Plan] --> C[Cartograph] --> CO[Collect] --> D[Dossier] --> PR[Properties]
    PR --> R[Referent trial] --> SC[Science] --> EX[Examination]
    EX --> H[Hypothesize] --> A[Adversarial] --> M[Model] --> AU[Audit] --> CP[Compose]
  end
  CP --> RPT["Report\n+ plain terms\n+ parallel architectures"]
```

Every stage writes its findings into an **evidence ledger** — a database of rows, each citing its
source (verse, hadith, tafsīr passage, lexicon entry, comparison). The final report is assembled
*from* that ledger, and every claim in it carries `[E-n]` citations that resolve to real rows.

### What you get at the end

- A formatted **report** that answers the question decisively — with a construction diagram,
  per-entity conclusions, and a plain-terms box after every technical section.
- A **"What is NOT X"** trial that tried and rejected the inherited translations.
- A **parallel architectures** section: alternative whole-constructions built from other readings
  of the same evidence, side by side.
- A **behind-the-scenes** page: every verse fetched, every passage read, every tafsīr and hadith
  consulted — what was selected and what was set aside.
- A **chat** to ask the report questions, and a **regenerate-from-angle** control.

### Where to go next

- [Origins: why Taaweel 2.0 exists](https://taaweel.snapkodex.com/docs/01-origins)
- [The method, decoded from the author](https://taaweel.snapkodex.com/docs/02-method)
- [System architecture](https://taaweel.snapkodex.com/docs/03-architecture)
- [The 13 stages in detail](https://taaweel.snapkodex.com/docs/04-stages)
- [The data it reads](https://taaweel.snapkodex.com/docs/05-data)
- [The science layer](https://taaweel.snapkodex.com/docs/06-science)
- [Guardrails: uṣūl, ladder, terminology](https://taaweel.snapkodex.com/docs/07-guardrails)
- [The chat loops](https://taaweel.snapkodex.com/docs/08-chat)
- [Provenance: the meta report](https://taaweel.snapkodex.com/docs/09-meta)
- [Taaweel 1.0 vs 2.0](https://taaweel.snapkodex.com/docs/10-taaweel-1-vs-2)
- [Operating Taaweel](https://taaweel.snapkodex.com/docs/11-operations)

### Using the product

Step-by-step guides, by task and by page:

- [Getting started: account, sign-in and the basics](https://taaweel.snapkodex.com/docs/20-getting-started)
- [Research runs: from a question to a cited report](https://taaweel.snapkodex.com/docs/21-research-runs)
- [Chats and attachments](https://taaweel.snapkodex.com/docs/22-chats-and-attachments)
- [Reports and document audits](https://taaweel.snapkodex.com/docs/23-reports-and-audits)
- [Numerics](https://taaweel.snapkodex.com/docs/24-numerics) and the [ontology](https://taaweel.snapkodex.com/docs/25-ontology)
- [Mizan: Look up](https://taaweel.snapkodex.com/docs/30-mizan-lookup), [Compare](https://taaweel.snapkodex.com/docs/31-mizan-compare), [Perspectives](https://taaweel.snapkodex.com/docs/32-mizan-perspectives), [Al-Fātiḥah](https://taaweel.snapkodex.com/docs/33-mizan-fatihah) and [counting rules](https://taaweel.snapkodex.com/docs/34-mizan-counting-rules)
- [Frequently asked questions](https://taaweel.snapkodex.com/docs/40-faq)

*Web version: https://taaweel.snapkodex.com/docs/00-overview*

---

<a id="ch-01-origins"></a>

<!-- chapter: 01-origins | https://taaweel.snapkodex.com/docs/01-origins -->

## Origins — why Taaweel 2.0 exists

### The document that started it

A human researcher wrote **As-Samawat wal-Ard** ("the heavens and the earth"), a research paper that
studies what the Qurʾān itself says about cosmic structure. The paper's power was never its
conclusion — it was its **method**:

- It counted *everything*: 190 occurrences of *samāwāt*, 181 verse-level co-occurrences with *arḍ*,
  133 exact adjacent pairings — counted, not remembered.
- It noticed that a term's "information system" changes with scale: verses pairing the heavens and
  the earth speak of creation and sovereignty; verses mentioning *arḍ* alone speak of rain, roads
  and people. **The referent must not be fixed before the scale is established.**
- It put the inherited translation on trial: if "mountains prevent the earth from shaking" fails
  geophysics, the translation — not the Qurʾān — is what fails.
- It worked within fiqh: the obligation to research flows from clear texts through stated juristic
  logic, never against it.
- It ended with a decisive, labelled opinion — not a survey.

### The gap it exposed

Existing tools (including Taaweel 1.0) were excellent **evidence collectors** — morphology, lexicon,
concordance, scoring — but had no **researcher**: nothing that plans, trials, attacks, concludes.
An LLM asked directly produces fluent answers with no corpus discipline and no way to check them.

### The idea

Encode the author's *method* — not his conclusions — into software:

1. deterministic code does everything countable (concordance, clustering, scoring, gating);
2. LLMs are reserved for judgment calls (positions, objections, prose);
3. every claim cites a ledger row, so the reader can audit everything;
4. the engine must **not be afraid to answer** — principles are guardrails, not brakes.

```mermaid
flowchart TD
  A["Taaweel 1.0\n(2018→): evidence collector\nmorphology · lexicon · concordance · scoring"] -->|"corpora, read-only"| B
  C["The author's method\n(As-Samawat wal-Ard paper)"] -->|"encoded as stages"| B
  B["Taaweel 2.0 (Burhan)\n(2026): the researcher\nplan → map → gather → trial → science →\nexamine → hypothesize → attack → model → audit → compose"]
  B --> R["Report with citations,\nplain terms, parallel architectures"]
```

The result generalizes: the same method runs on cosmology, psychology (*qalb/shuʿūr*), biology
(*ʿalaqa* stages), or any question where the Qurʾān describes reality or the self.

*Web version: https://taaweel.snapkodex.com/docs/01-origins*

---

<a id="ch-02-method"></a>

<!-- chapter: 02-method | https://taaweel.snapkodex.com/docs/02-method -->

## The method, decoded

The full decode lives in `docs/METHOD.md` (15 moves, M1–M15). This page is the
practical summary — the moves, and where the engine enforces them.

### The one direction of inference

**Text → properties → reconstructed entity → comparison with the world.** Never the reverse.

- Science may **falsify a translation** (it shows a reading asserts something false).
- Science may **never author a meaning** (no finding tells you what a word means).
- Comparison afterwards is labelled *comparison, not identity*.

### The fifteen moves, grouped

| Group | Moves |
| --- | --- |
| Frame | M1 question triage (revelation / empirical / bridge) · M2 ordered authority chain · M3 the translation is a defendant |
| Map | M4 careless counting is a bug · M5 information systems (paired / continued / isolated) · M6 scale before referent |
| Gather | M7 four-source word studies · M8 grammar as data · M9 property ledger before referent (with absences) |
| Test | M10 unmaking reveals structure · M11 proportion anomalies re-open questions · M12 hard-case confrontation · M13 triple survival + the rescue ban |
| Conclude | M14 triangulation (transmitted vs endorsed) · M15 mainstream-beside-proposal, then the labelled climb |

### The invariants (enforced in code, not prose)

1. **A translation is a human conclusion** — it is Hypothesis 1, tried like any alternative.
2. **Scale before referent** — the engine sorts every occurrence into paired/continued/isolated
   systems before anything else.
3. **Triple survival** — a reading must pass linguistics, context and physical reality *together*;
   failing one, or surviving only by interpretive rescue, rejects it however widely held.
4. **Ledger completeness** — a candidate must carry every property the text gives, not the
   convenient ones. Absence is data: "no material named" is recorded as a property.
5. **Blind comparison** — before science scoring, term names are stripped ("X", "Y") so a label
   can't choose the winner.
6. **Scope partition** — cosmic-scope properties are never judged against earthly candidates, nor
   earthly against cosmic.
7. **Terminology discipline** — until meaning is established, the term is called **Ard**, not
   "the earth". English words are candidates in brackets, never names.
8. **Symmetric falsifiability** — every conclusion states what would overturn it.
9. **Scientific unknowns are not negations** — "composition unknown" is silence, never contradiction.
10. **The answer is mandatory** — the uṣūl audit revises elements; it never withholds the whole
    answer unless creed itself is violated.

### The claim-strength ladder

Every conclusion carries a level; the audit enforces the climb.

```mermaid
flowchart LR
  L1["L1 lexical fact\n(lexicons)"] --> L2["L2 contextual reading\n(co-text)"] --> L3["L3 cross-verse synthesis\n(Qurʾān explains Qurʾān)"]
  L3 --> L4["L4 falsification\n(a reading fails a test)"] --> L5["L5 research inference\n(labelled as our own)"] --> L6["L6 scientific comparison\n(blind score, not identity)"]
  L6 -. "identity gate:\nflagged fit + zero conflicts" .-> L7["L7 identity claim\n('Ard IS dark matter')"]
```

L7 is gated **in code**: if the blind comparison names the entity with standing conflicts, the
verdict is capped at L6 and the blocking conflicts are printed in the warrant.

*Web version: https://taaweel.snapkodex.com/docs/02-method*

---

<a id="ch-03-architecture"></a>

<!-- chapter: 03-architecture | https://taaweel.snapkodex.com/docs/03-architecture -->

## System architecture

### The shape of the system

Taaweel 2.0 is a Fastify app (`src/`) with its own SQLite database, its own port (3901) and a
server-rendered dashboard. It is self-contained: its corpora live in its own `data/corpora/`, opened **read-only**.

```mermaid
flowchart TD
  subgraph User["You"]
    U1["Refine chat"] --> U2["Lock question"] --> U3["Run"] --> U4["Report + chat + regenerate"]
  end
  subgraph Server["Taaweel (Fastify :3901)"]
    API["REST API\n/api/*"] --> ENG
    DASH["Dashboard\n/dashboard/*"] --> ENG
    DOCS["Docs viewer\n/docs"]
    ENG["Research engine\n13-stage runner"]
    ENG --> LED[("Evidence ledger\nburhan.db")]
    ENG --> ART[("Artifacts\nreport-N.md")]
    CHAT["Chat service\nrefine · discuss"] --> ENG
  end
  subgraph Read["Read-only corpora (data/corpora)"]
    Q[("Quran text\n6,236 verses · 77k tokens · roots")]
    L[("Lane lexicon\n+ classical dictionaries")]
    T[("Tafsīr ×5\nṬabarī · Kathīr · Quṭubī · Baghawī")]
    H[("Hadith\n34k reports, graded")]
  end
  LLM["LLM provider\ndeepseek / GLM / openai"]
  ENG -->|"SELECT only"| Q & L & T & H
  ENG -->|"judgment calls, JSON-validated"| LLM
  U1 & U4 --> API
```

### Layered design

| Layer | Files | Responsibility |
| --- | --- | --- |
| Config | `src/config.ts` | ports, paths, provider, per-stage models, `provider:model` specs |
| Data | `src/db.ts`, `src/repos/*` | Taaweel's own tables (runs, ledger, claims, chats…) + read-only corpus repos |
| LLM | `src/llm/*` | provider-agnostic client, JSON extraction + zod validation + retry, cost table, mock fixtures |
| Method | `src/pipeline/*`, `src/services/*` | the 13 stages, cartography, anchors, trial, science, examination, uṣūl |
| Interface | `src/routes/*` | REST API, dashboard, report viewer, meta report, docs |
| Seeds | `src/seed.ts` | attribute-lexeme families (cosmic, psyche, biology…) + starter hadith |

### Key design decisions

1. **Everything through the ledger.** Stages never talk to each other directly; each reads the
   ledger the previous ones wrote. That makes runs **resumable** (rebuild-from any stage) and every
   claim **auditable** (the `[E-n]` chain).
2. **Code decides what code can decide.** Concordance, clustering, pairing stats, scope
   partitioning, blind scoring, fit arithmetic, the L7 gate, terminology guards — all pure code.
   The LLM judges, drafts, and objects — inside zod-validated contracts with retry.
3. **The engine is provider-agnostic.** DeepSeek, GLM (Z.AI), OpenAI, OpenRouter or a deterministic
   mock — one env var. Cheap models work because the pipeline decomposes reasoning into small,
   grounded, code-checked steps.
4. **Corpora are pristine.** Corpus connections are opened `readonly` with `query_only = ON`; all
   writes go to `taaweel/data/`.
5. **The report is assembled, not authored.** Deterministic sections (corpus map, ledger, trials)
   come straight from the database; LLM prose fills only the discussion and answer, and its
   citations are validated against the ledger before printing.

*Web version: https://taaweel.snapkodex.com/docs/03-architecture*

---

<a id="ch-04-stages"></a>

<!-- chapter: 04-stages | https://taaweel.snapkodex.com/docs/04-stages -->

## The 13 stages

Each stage is a zod-contracted unit that reads the ledger and writes to it. Runs are resumable;
`rebuild-from <stage>` re-runs that stage and everything after it.

```mermaid
flowchart TD
  P["1 PLAN\nquestion → research design:\ndomain profile · target terms (+contrast) ·\nanswer contract"] --> C
  C["2 CARTOGRAPH\nexhaustive concordance per term:\nevery occurrence → information systems\n(paired / continued / isolated) + pairing stats"] --> CO
  CO["3 COLLECT\nbroad evidence:\nverses · corpus stats · lexicon · sequence markers"] --> D
  D["4 DOSSIER\nanchor sweep (domain vocabulary) → anchors,\nword studies (Lane + classical),\ntafsīr positions per mufassir, targeted hadith,\nroot-contrast studies (rawāsī↔jibāl)"] --> PR
  PR["5 PROPERTIES\nthe property ledger: every property the words\ngive each term, grounded against the Arabic,\nunmaking passages, scope tags"] --> R
  R["6 REFERENT TRIAL\n'What is NOT X': the inherited translation tried\nas H1; blind property tests; verdicts per\ninformation system — computed in code"] --> SC
  SC["7 CORRESPONDENCE\nblind, scope-partitioned science scoring:\nmatch / conflict / silent per property;\nfit computed in code"] --> EX
  EX["8 EXAMINATION\ncollective reading · patterns & variants ·\ntextual gaps · science-seam gaps ·\nspeculative resonances (suggest-only) ·\nwhole commentary + possible outcomes"] --> H
  H["9 HYPOTHESIZE\nclaims from the ledger, each labelled:\nepistemic status + ladder level L1–L6"] --> A
  A["10 ADVERSARIAL\nred team attacks every claim;\nhard cases mined from the corpus;\nobjections ledger"] --> M
  M["11 MODEL\nthe architecture: prerequisites (hadith) →\nphases stitched by the text's own markers →\ncomponents, relations, mermaid diagram"] --> AU
  AU["12 AUDIT\nuṣūl principles U1–U16 checked; objections\nruled (answered/sustained/carried); revisions\napplied; entity verdicts; L7 gate; U15 fiqh;\nparallel architectures"] --> CP
  CP["13 COMPOSE\nreport assembled from the ledger:\ndeterministic sections + LLM discussion,\nplain-terms boxes, citations validated"]
```

### Stage notes worth knowing

- **Plan** emits the *answer contract* — what a complete answer must state — and the *domain
  profile* (cosmological, psychological, biological…) that drives sweep vocabulary and science
  catalogues downstream. A route guard forces bridge questions through the full pipeline.
- **Cartograph** is the author's M4: the counts (190/188, 181, 135) are computed here and feed the
  report's corpus map. Terms are also clustered into *information systems* by attribute signatures.
- **Dossier** records *term-contrast studies* (root A vs root B — e.g. rawāsī↔jibāl, judged
  `object_serves_function`) and *sweep provenance* (every passage seen, selected or set aside).
- **Referent trial** verdicts are computed in code from test outcomes — a fail anywhere, or survival
  only by rescue, rejects a reading however mainstream.
- **Examination** is the "read the material as a whole" pass: collective readings, patterns with
  variants, gaps in the gathered material itself, and speculative-science resonance (which may
  suggest, never decide).
- **Audit** owns the **L7 gate**: an identity claim ("Ard IS dark matter") survives only if the
  blind comparison flags that entity with zero standing conflicts — otherwise it is downgraded to
  L6 in code, with the blocking conflicts printed.
- **Compose** validates every `[E-n]` against the ledger and drops unresolvable citations.

*Web version: https://taaweel.snapkodex.com/docs/04-stages*

---

<a id="ch-05-data"></a>

<!-- chapter: 05-data | https://taaweel.snapkodex.com/docs/05-data -->

## The data it reads

Taaweel reads four corpora — all local, all opened **read-only** (`readonly: true` +
`query_only = ON`). No research-time network fetch of Quranic content ever happens; the only
online calls in a run go to the LLM provider.

| Corpus | Contents | Source | Used by |
| --- | --- | --- | --- |
| **Quran text** | 6,236 verses (Uthmani + plain), 77,429 word tokens, root per token | `quran_lexicon.db` (from Taaweel 1.0) | concordance, sweeps, every quoted verse |
| **Lexicon** | Lane's Arabic-English Lexicon (5,321 roots / 35,897 entries) + 31 classical dictionaries | `quran_lexicon.db` + crawler | word studies, root-contrast studies |
| **Tafsīr ×5** | al-Ṭabarī, Ibn Kathīr (Ar + En), al-Qurṭubī, al-Baghawī — 6,236 rows each | tafsīr DBs + quran.com fetcher | per-mufassir positions on anchor passages |
| **Hadith** | 34,155 graded reports across 7 collections (Ar + En) | hadith-api importer | targeted hadith dossier, property support |

### The verse-fetching layer

`src/repos/corpus.ts` exposes deterministic fetchers — the report's every Arabic quote comes from
here, never from model memory:

```ts
corpus.verse(41, 9)                  // one verse
corpus.versesBetween(41, 9, 12)      // a passage
corpus.findOccurrences("السماوات")   // the concordance: every occurrence, every verse
corpus.rootConcordance("رسي")        // every verse carrying a root
corpus.verseTokens(2, 29)            // word-by-word tokens with roots
```

> Note on Uthmani orthography: the superscript alef (U+0670) in `سَمَٰوَٰتٍ` is a real letter.
> Taaweel matches on the Uthmani text — reproducing the paper's 190/188 counts exactly — because
> the corpus's plain-text column drops that alef.

### Taaweel's own database

`data/taaweel.db` (the app's own read-write database): questions + refinement chats, runs
and per-stage jobs (tokens, cost, attempts), run events, occurrence maps and classes, the evidence
ledger, claims + claim-evidence links, objections, model artifacts, reports, manual (user-supplied)
science sources, and both chat histories.

### Extending the data

```powershell
npx tsx scripts/fetchHadith.ts bukhari muslim   # full graded collections (public-domain API)
npx tsx scripts/fetchTafsir.ts qurtubi          # also: baghawi | saddi | wasit | muyassar
npx tsx scripts/importTafsir.ts some.db         # any tafsir DB with the same table layout
```

*Web version: https://taaweel.snapkodex.com/docs/05-data*

---

<a id="ch-06-science"></a>

<!-- chapter: 06-science | https://taaweel.snapkodex.com/docs/06-science -->

## The science layer

Science enters the method in exactly one place — **after** the text has fixed its referents — and
in exactly one direction: it may falsify a translation, never author a meaning.

### Three tiers of science

| Tier | What | Role | Catalogues |
| --- | --- | --- | --- |
| **Proven** | established knowledge, authorities named | may **falsify** a translation; scored match/conflict/silent | cosmology ×9, planetary ×4, psychology ×10, biology ×7 |
| **Speculative** | strongly believed, unproven (dark-matter particle, inflation, multiverse, IIT, Orch-OR…) | may **suggest** (resonance) — never decides | cosmological ×6, psychological ×5, biological ×3 |
| **User-supplied** | your attached sources | recorded, shown in the report's *Empirical verification* section | manual |

### How a comparison runs (correspondence stage)

```mermaid
flowchart LR
  P["Property ledger\n(158 grounded properties,\nscope-tagged cosmic/earthly)"] --> BL["BLINDING\nsubject → 'X'\ncounterpart → 'Y'\n(one small call per chunk)"]
  BL --> J
  SP["Scope partition"] --> J["JUDGE\nentry × chunk of 40:\nmatch | conflict | silent\n(one call each, JSON-validated)"]
  J --> FIT["FIT IN CODE\n(matches − conflicts) / judged"]
  FIT --> SYN["SYNTHESIS\nopen questions, earthly parallels,\nrejected popular parallels"]
```

- **Blinding** removes the term's ordinary name so a label can't bias the judge — the failure that
  once made every dark-matter property come back "silent".
- **Scope partition** never judges cosmic properties against earthly candidates (rivers vs dark
  energy is a category error) — and vice versa.
- **Complete coverage**: every property of every term is judged against every relevant candidate;
  fit arithmetic is code, not vibes.

### Scientific unknowns are not negations

"Composition unknown" is **silence, not contradiction**. Where science affirms a reality but not
its nature (dark matter: substance-hood, gravity and history are established; the particle is not),
the established part is judged as established and the unknown part is recorded as silence. An
undetected particle is never counted against existence. The catalogue itself carries the full
context — including the early-universe plasma phase in which dark and ordinary matter were mixed —
so the judge sees the whole story, not a stripped list.

### The examination's speculative pass

After proven scoring, the examination stage runs the speculative catalogue against the blinded
properties with three verdicts: **resonance / no_resonance / tension** — "if this speculation turned
out true, would this property find a natural correlate?" Resonances are recorded per term and feed
the **parallel architectures** in the conclusion, always labelled *suggests, never establishes*.

*Web version: https://taaweel.snapkodex.com/docs/06-science*

---

<a id="ch-07-guardrails"></a>

<!-- chapter: 07-guardrails | https://taaweel.snapkodex.com/docs/07-guardrails -->

## Guardrails — uṣūl, ladder, terminology

Taaweel is engineered so that discipline is **structural**, not stylistic. Three mechanisms do the
work; the audit checks all of them on every run.

### 1. The uṣūl audit (U1–U16)

Before an answer is issued, the architecture is checked against sixteen principles. A failed
principle **revises or relabels the element it touches** — it never withholds the answer unless
creed itself (U8) fails.

| | Principle | One-line rule |
| --- | --- | --- |
| U1 | Wording is primary | meaning from the Arabic, not the translation |
| U2 | Qurʾān explains Qurʾān | stitch sequences only through the text's own markers |
| U3 | Sunnah governs | ṣaḥīḥ/ḥasan reports carry weight; grading stated |
| U4 | Companions above later opinion | departures must be linguistically possible and name whom they leave |
| U5 | Established Arabic (lugha) | stay inside the lexicons' attested range |
| U6 | Context and scale | fix the scale before the referent |
| U7 | Conditions of taʾwīl | qarīna + linguistic possibility + no qaṭʿī contradiction |
| U8 | Creedal soundness (tanzīh) | divine acts affirmed without likeness |
| U9 | Empiricism falsifies, never authors | the physical check must actually be performed |
| U10 | Whole-corpus consistency | survive the hard verses, not only the friendly ones |
| U11 | Restraint on the unseen (tawaqquf) | details the text withholds stay open |
| U12 | Legitimate multiplicity | scope-valid readings coexist; adoption is stated |
| U13 | Honest labelling | labels qualify the answer; they don't replace it |
| U14 | Triple survival | linguistics + context + physical reality, or rejected |
| U15 | Juridical inference follows uṣūl al-fiqh | rulings derived *with* fiqh logic (dalīl → dalāla → ʿilla → hukm), never against a naṣṣ, never from empiricism |
| U16 | Plain speech after precision | every technical conclusion carries a plain-language restatement |

U15 is the author's own move: the paper derives *researching the signs* as a farḍ kifāyah from
clear texts through stated juristic steps. The engine supports exactly that — and marks it
not-applicable when the question implies no ruling.

### 2. The claim-strength ladder + the L7 gate

Claims are labelled L1–L6 (lexical → comparison); the **identity claim L7** is gated in code: it
survives only if the blind comparison flags the entity with **zero standing conflicts**. Otherwise
the verdict is capped at L6 and the blocking conflicts are printed in the warrant. The report shows
the gate working — you can always see *why* an identity was not admitted.

### 3. Terminology discipline

Until meaning is established, entities are called by their originals — **Ard, As-Samawat,
Ar-Rawasi, Qalb** — never "the earth" or "the mountains". Thirteen reasoning prompts carry this
rule; translations appear only in brackets as adopted or rejected candidates. This removes the
quietest form of circular reasoning: a system that calls Ard "the earth" while testing whether Ard
is the earth has already voted.

### 4. The failure modes these guard against

| Failure | Guard |
| --- | --- |
| Translation capture | terminology discipline + contrast studies + H1-on-trial |
| Concordism (science picks meaning) | one-direction inference + comparison-not-identity labels |
| Apologetic rescue | the rescue rule in the trial — rescue itself is a fail |
| Cherry-picking | full-ledger coverage + provenance (meta report) |
| Hedged referents | one concrete referent per hypothesis, verdict in code |
| Silent-science bias | blinding + scope partition + U17-style unknown handling |
| Withholding the answer | the audit's governing rule: revise, don't retreat |

*Web version: https://taaweel.snapkodex.com/docs/07-guardrails*

---

<a id="ch-08-chat"></a>

<!-- chapter: 08-chat | https://taaweel.snapkodex.com/docs/08-chat -->

## The chat loops

Two conversations wrap the automated pipeline — the same two capabilities Taaweel 1.0 users loved.

### 1. Refine → lock → run (before research)

```mermaid
sequenceDiagram
  participant U as You
  participant R as Refiner (LLM)
  U->>R: "dreams in the quran"
  R->>U: Which do you mean — nature, interpretation, or the vocabulary (ruʾyā, ḥulm, manām)?
  U->>R: The vocabulary, and how the terms differ.
  R->>U: Proposed: "What do ruʾyā, ḥulm and manām signify, and how do they differ across their occurrences?" (ready)
  U->>U: edit if you wish, then LOCK
  U->>R: start run — the pipeline researches the locked question only
```

- The chat lives in a per-question workspace (`/dashboard/questions/:id`): messages, the proposed
  refined question, an editable lock box.
- Locking stores the refined text; the run's **plan stage researches the locked question**, not the
  rough original. API: `POST /api/questions/:id/chat | lock | run`.

### 2. Discuss → regenerate from an angle (after research)

```mermaid
sequenceDiagram
  participant U as You
  participant RC as Report chat (LLM)
  participant C as Compose stage
  U->>RC: "in simple words, nafs vs ruh?"
  RC->>U: grounded answer from the report's own sections, with [E-n] citations
  U->>C: ↻ "regenerate from angle: the three states of nafs as a moral journey"
  C->>U: new report version — same ledger & conclusions, new emphasis
```

- **Discuss** is grounded: the chat receives the report's answer, entity verdicts, parallel
  architectures, and objections ledger — and answers only from that material.
- **Regenerate** re-runs only the *compose* stage (~90 seconds, ~$0.02): same conclusions, new
  emphasis, opening with one sentence that names the angle. The report's version number increments;
  old versions stay on disk.

### Under the hood

| Piece | Where |
| --- | --- |
| Refiner prompt (ask-one-question / propose-when-ready) | `src/prompts/refine.md` |
| Report-chat prompt (grounded, ≤250 words, points to angle-regeneration) | `src/prompts/report_chat.md` |
| Chat service (history, persistence, LLM turn) | `src/services/chat.ts` |
| Tables | `question_chats`, `report_chats`, `questions.locked/refined`, `runs.angle` |
| API | `POST|GET /api/questions/:id/chat`, `/lock`, `/run`; `POST|GET /api/runs/:id/report-chat`; `POST /api/runs/:id/regenerate` |
| Dashboard | `/dashboard/questions/:id` workspace; chat + angle forms on every run page |

*Web version: https://taaweel.snapkodex.com/docs/08-chat*

---

<a id="ch-09-meta"></a>

<!-- chapter: 09-meta | https://taaweel.snapkodex.com/docs/09-meta -->

## Provenance — the meta report

The author's rule: *careless counting is a bug*. His 190/181/133 numbers persuade because they can
be checked. Taaweel's **meta report** gives every run the same property — a behind-the-scenes page
that shows exactly what the research touched. Zero LLM cost: it renders the pipeline's own records.

Open it from any run page or report header: **"behind the scenes"** (`/dashboard/runs/:id/meta`).

### What the page shows
The page, **Behind the scenes — run #id**, opens with totals (**Tokens in / out**, **Est. cost**, **Stages**, **Provider**) and then six numbered cards. Open any card to drill down.

#### 1. The Quran verses it counted
Per subject term: every occurrence fetched from all 6,236 verses, grouped by information system (by form and by root). Expand a class and read the actual verse list.

#### 2. The passages it swept
Every passage the anchor sweep *saw*, split into *selected for deep analysis* vs *seen but set aside*, with scores and the vocabulary that matched.

#### 3. The tafsīr it read
Every passage, grouped per mufassir, with the exact verse keys.

#### 4. The hadith it consulted
Every carried report with collection, number and grading, and which were weighed and carried forward.

#### 5. The user files it read
Your attachments and how each was used (see [File roles](https://taaweel.snapkodex.com/docs/22-chats-and-attachments#file-roles)).

#### 6. Everything recorded, by kind
The full evidence-ledger counts; every row is one `[E-n]` citation in the report.

### Why it exists

| It answers | With |
| --- | --- |
| "Did you cherry-pick verses?" | fetched vs analyzed, selected vs set aside — per term |
| "Which mufassirūn did you actually read?" | per-source passage lists |
| "What did the hadith search return?" | every carried report with grading |
| "What did this run cost and touch?" | tokens, cost, stage list, evidence counts |

### Provenance in the data model

- **Fetched (cartography)**: `occurrence_maps` + `occurrence_classes` — every occurrence's verse ref
  is stored in `member_refs_json`.
- **Fetched (sweep)**: every scored candidate is persisted as evidence kind `sweep_candidate`
  (`selected: true|false`) — selected ones simultaneously become `anchor_passage` rows.
- **Analyzed**: every `evidence_items` row (verses, tafsīr positions, hadith, lexicon entries,
  properties, comparisons, examination rows) — the same rows the report cites.

The rule this page enforces is simple: **nothing is claimed that cannot be drilled down to; nothing
is read that cannot be shown.**

*Web version: https://taaweel.snapkodex.com/docs/09-meta*

---

<a id="ch-10-taaweel-1-vs-2"></a>

<!-- chapter: 10-taaweel-1-vs-2 | https://taaweel.snapkodex.com/docs/10-taaweel-1-vs-2 -->

## Taaweel 1.0 vs 2.0

Taaweel 2.0 was developed as **Burhan**, a parallel app beside Taaweel 1.0. The two had different
jobs. **Taaweel 1.0** answers *"what do the words and verses mean,
morphologically and lexically?"* — a superb evidence collector. **Taaweel 2.0** answers *"what is the
best-supported research conclusion about this question?"* — a researcher that uses Taaweel 1.0's
evidence and goes all the way to a defended, cited verdict.

```mermaid
flowchart LR
  subgraph T["Taaweel 1.0 (apps/api · :3001)"]
    T1["Refine chat"] --> T2["Topics &\nArabic synonyms"] --> T3["Verse finder\n(root + string)"] --> T4["Morphology\n(kalimat)"] --> T5["Shortlist\nLLM scoring"] --> T6["Synthesis\nlexicon combinations"] --> T7["PARI report\n(plan·act·review)"]
  end
  subgraph B["Taaweel 2.0 (:3901)"]
    B1["Plan\n(profile, contract)"] --> B2["Cartograph\n(full-corpus maps)"] --> B3["Dossier\n(anchors · words · tafsīr · hadith · contrasts)"] --> B4["Property ledger\n(grounded, scoped)"] --> B5["Referent trial\n(code-computed verdicts)"] --> B6["Blind science\n(scope-partitioned)"] --> B7["Examination\n(patterns · gaps)"] --> B8["Audit\n(U1–U16 · L7 gate)"] --> B9["Report\n(+ parallel architectures)"]
  end
  T3 -. "corpora, read-only" .-> B3
  T6 -. "no dependency" .-> B
```

### Side by side

| | **Taaweel 1.0** | **Taaweel 2.0** |
| --- | --- | --- |
| **Question** | "Which verses, which morphemes, which lexicon readings?" | "What is the best-supported answer — and what would change it?" |
| **Verse discovery** | connotation → synonym → root/string finder | exhaustive concordance per term + domain vocabulary sweeps; **counts everything** |
| **What LLMs do** | shortlist, synthesis scores, PARI prose | judgment calls only: positions, objections, labels, prose — every output zod-validated |
| **Verification** | ontology path checks, falsifier in Taʾwīl (single-verse tool) | referent trial per system, red team, uṣūl audit U1–U16, L7 gate — on every run |
| **Science** | not in the pipeline | blind, scope-partitioned, proven + speculative tiers, fits computed in code |
| **Conclusions** | readings and scores per verse | decisive answer, entity verdicts, **parallel architectures**, falsification triggers |
| **Citations** | appendix listing | every `[E-n]` validated against the ledger; drillable provenance page |
| **Question intake** | refine chat | refine chat **with lock** — research runs on the locked text |
| **Post-report** | discuss chat + regenerate | discuss chat **grounded in the report's ledger** + regenerate-from-angle |
| **Stack** | Fastify :3001 + React app, own DB | Fastify :3901, server-rendered dashboard, own DB; reads its corpora read-only |
| **LLM posture** | OpenAI Responses/vector-store centric | provider-agnostic (deepseek/GLM/openai/openrouter/mock); decomposed small calls for cheap models |

### What Taaweel 2.0 takes *from* Taaweel 1.0

- The corpora (Quran text, tokens, roots, Lane, tafsīr DBs) — **read-only**, the reason Taaweel 2.0
  exists as a parallel app: zero risk to the production system.
- Design principles proven there: deterministic code first, resumable stage runs, NDJSON progress,
  per-step cost accounting.
- The two chat experiences — refined here with locking and angle regeneration.

### What Taaweel 2.0 adds that Taaweel 1.0 has no equivalent for

Corpus cartography with information systems · the property ledger with grounding · the referent
trial with code verdicts · root-contrast studies · blind scope-partitioned science · speculative
resonance · holistic examination (patterns, gaps) · the uṣūl audit with revisions · the
claim-strength ladder with the L7 gate · parallel architectures · terminology discipline · the
provenance meta report.

### Where 1.0's features go

Taaweel 2.0 takes over 1.0's accounts and admin, the lexicon and verse tools, and the ontology (see
the roadmap in `docs/taaweel-2-plan.md`). 1.0's own research pipeline (steps 5/6, PARI reports) is
retired: 2.0's engine replaces it.

*Web version: https://taaweel.snapkodex.com/docs/10-taaweel-1-vs-2*

---

<a id="ch-11-operations"></a>

<!-- chapter: 11-operations | https://taaweel.snapkodex.com/docs/11-operations -->

## Operating Taaweel

### Run it

```powershell
cd taaweel
npm install
copy .env.example .env      # provider + keys
npm run data -- import <folder with the source DBs>
npm run dev                 # http://127.0.0.1:3901/dashboard
```

For a production install (build, `npm start`, health checks, shutdown) see the README's
*Production* section; for deploying (Docker, plain Node, cPanel), backups, monitoring and
retention, see `deploy/README.md`.

### Providers and models

`TAAWEEL_PROVIDER` = `mock | deepseek | zai | openai | openrouter`. Keys resolve: admin-saved key (Models → API keys) →
`TAAWEEL_<PROVIDER>_API_KEY` → `<PROVIDER>_API_KEY`, from this app's own `.env`. Per-stage overrides:
`TAAWEEL_MODEL_PLAN / _EXTRACT / _REASON / _COMPOSE` (each accepts `provider:model`).

Cheap models work — the pipeline decomposes reasoning into small, grounded, code-checked calls.
Typical full-run cost on `deepseek-chat`: **$0.6–1.0**; a compose-only regeneration: **~$0.02**.

### The two workflows

**Dashboard**: *New research* → refine chat → lock → run (live stage progress) → report →
discuss chat / regenerate-from-angle / science sources / rebuild-from-stage → behind-the-scenes page.

**API**:

| Method | Path | Purpose |
| --- | --- | --- |
| POST | `/api/questions` | create question (+ first run) |
| POST/GET | `/api/questions/:id/chat` | refinement chat |
| POST | `/api/questions/:id/lock` | lock the refined question |
| POST | `/api/questions/:id/run` | create a run for a locked question |
| POST | `/api/runs/:id/start` · `/stop` | run control |
| GET | `/api/runs/:id/events?since=` | NDJSON live events |
| GET | `/api/runs/:id` · `/ledger` · `/report.md` | state, ledger, report |
| POST/GET | `/api/runs/:id/report-chat` | discuss the report |
| POST | `/api/runs/:id/regenerate` | regenerate from an angle |
| POST | `/api/runs/:id/sources` | attach user-supplied empirical sources |
| POST | `/api/objections/:id/resolve` | resolve a ledger objection |
| GET | `/dashboard/runs/:id/meta` | the provenance page |
| GET | `/docs` · `/docs/:slug` · `/docs/:slug.md` · `/docs/export` | this documentation |

### Offline safety net

`npm run smoke` runs the entire pipeline against the **mock provider** (56 checks, no network, no
keys) — the same plumbing the live runs use. Use it after every code change.

### Cost discipline

- Deterministic code does everything countable; LLM calls are small and JSON-validated.
- Every stage records tokens and cost (`pipeline_jobs`); run pages show totals.
- Rebuild-from lets you re-run only what a change invalidates (e.g. `--rebuild-from audit` ≈ $0.05).

### Known boundaries (honest)

- GLM/Z.AI is fully wired but needs account balance to execute live runs.
- Rāzī's *Mafātīḥ al-Ghayb* is not yet in any fetchable catalogue; al-Wahīdī's *al-Wasīṭ* is
  available (`fetchTafsir.ts wasit`).
- With very cheap models, judgment-call stages can vary between runs (e.g. how far the cosmic
  reading of Ard goes); the code gates (blinding, scope partition, L7, terminology) bound that
  variance, and the report shows its own audit trail either way.

*Web version: https://taaweel.snapkodex.com/docs/11-operations*

---

<a id="ch-20-getting-started"></a>

<!-- chapter: 20-getting-started | https://taaweel.snapkodex.com/docs/20-getting-started -->

## Getting started: account, sign-in and the basics

This chapter takes you from a first visit to a working account: how to sign up, sign in, read your AI allowance, take the tour, apply as a scholar and tell the team what you think. Every step names the exact button or field as it appears on screen. Links marked ↗ open the app and ask you to sign in first if you are signed out; you land on the page you clicked afterwards.

> **New here?** Read [the overview](https://taaweel.snapkodex.com/docs/00-overview) for what Taaweel is, then come back and follow *Sign up* below. If you only want to look around, the [Features page](https://taaweel.snapkodex.com/features) shows real screens without an account.

### The sidebar
Once you are signed in, the **sidebar** on the left (the **bottom bar** on a phone) lists everything you can open:

| Item | Opens | What it is |
|---|---|---|
| **New research** | [/dashboard/chats](https://taaweel.snapkodex.com/dashboard/chats) | A chat where you phrase and refine a new question. |
| **Runs** | [/dashboard](https://taaweel.snapkodex.com/dashboard) | Your research runs, newest first. |
| **Reports** | [/dashboard/reports](https://taaweel.snapkodex.com/dashboard/reports) | Every finished report in one searchable list. |
| **Chats** | [/dashboard/chats](https://taaweel.snapkodex.com/dashboard/chats) | Refinement chats and report discussions. |
| **Audits** | [/dashboard/audits](https://taaweel.snapkodex.com/dashboard/audits) | Checks of documents you supplied. |
| **Numerics** | [/dashboard/numerics](https://taaweel.snapkodex.com/dashboard/numerics) | Counts a word across the whole muṣḥaf, no AI involved. |
| **Ontology** | [/ontology](https://taaweel.snapkodex.com/ontology) | A map of the concepts the Qurʾān's words point to. |
| **Features** | [/features](https://taaweel.snapkodex.com/features) | Annotated screenshots of how Taaweel works. |
| **Docs** | [/docs](https://taaweel.snapkodex.com/docs) | This documentation. |
| **Feedback** | [/feedback](https://taaweel.snapkodex.com/feedback) | Tell the team about a problem or an idea. |
| **Mizan** | [/numerical_analysis/](https://taaweel.snapkodex.com/numerical_analysis/) | The numerical-analysis tool (opens in a new tab). |
| **Admin console** | [/admin](https://taaweel.snapkodex.com/admin) | Administrators only. |

At the bottom of the sidebar your name opens [your account](https://taaweel.snapkodex.com/account) and **Sign out** ends the session on this device.

- The **brand** at the top ("Taaweel 2.0 · Qurʾān research engine") always takes you back to your dashboard.
- The **breadcrumbs** in the top bar show where you are and how to go back up.
- The **moon/sun button** in the top bar switches between the light and the dark theme; the choice is remembered.
- On a phone, the **bottom bar** is the same navigation placed under your thumb, and the menu button in the top bar opens the full sidebar.

### Sign up
You can create your own account when sign-up is open (the **Start researching** button on the [landing page](https://taaweel.snapkodex.com/) only appears then).

1. Open the landing page and click **Start researching**, or go straight to [/register](https://taaweel.snapkodex.com/register). *Result: the "Create your account" card opens.*
2. Type your **Email address**. *We email a one-time code to it before the account is created.*
3. Optionally type your **Name**. *It is how the app greets you.*
4. Choose a **Password** of at least 10 characters. A passphrase of several words is best.
5. Click **Send verification code →**. *A 6-digit code is emailed to you and you move to the verification page.*
6. Finish with [Verify your email](#verify-email) below.

If you are a trained scholar, you can also use the **Register as Ālim-e-Deen** link under the form; see [Scholar registration](#scholar-registration).

#### What an account unlocks
The panel beside the form ("What an account unlocks") lists what you get: the research pipeline, your own reports and chats, the document audits, the Numerics page, the ontology and Mizan. Browsing the documentation, the Features page and the legal pages never needs an account.

#### The AI allowance
Free to create, but research runs use an AI provider that costs money, so every account has a **daily** and a **monthly** allowance and a limit on **how many runs may be in progress at once**. The small print under the form tells you this. See [Reading your usage](#usage) to check where you stand.

### Verify your email
After **Send verification code →** you land on **Verify your email**.

1. Open the email and copy the 6-digit code. *It expires after 10 minutes.*
2. Type it into **Verification code**.
3. Click **Verify and create account**. *Your account is created, you are signed in and you arrive at your dashboard (or, for a new account, at the short onboarding questions).*

If nothing arrives, check spam, then click **Send a new code**. There is a 30-second wait between codes and at most 4 resends. **Start over** returns you to the sign-up form, for example if you mistyped the address.

### Onboarding questions
Right after verification you see three short questions: what you want to do with the Qurʾān here, what you want to explore with numbers and patterns, and what would make Taaweel worthwhile for you. You can tick several answers and add your own words under **Other**. Taaweel uses them to choose which **tour** to offer first: for example a student is shown how to open a refinement chat, a researcher the pipeline trace, a skeptic Mizan's counting rules. Nothing is locked by your answers: every page stays reachable, and you can retake any tour later.

### Tours
A **tour** is a short guided walk over the real page: it highlights one thing at a time and says what it does.

- Click **Take the tour** in the top bar to start the tour for your role again.
- Small round **i** buttons beside sections and fields open a tooltip. Its **Read the docs** link jumps to the matching section of this documentation.
- You can dismiss a tour at any time; it will not reopen by itself once you finish or skip it.

### Sign in
1. Go to [/login](https://taaweel.snapkodex.com/login), or click **Sign in** at the top of the landing page.
2. In **Email or username** type the identifier of your account. *Anything containing @ is treated as an email address.*
3. Type your **Password** and click **Sign in**. *You are returned to the page you were trying to reach, or to the dashboard.*

If you open a link to an app page while signed out, you are first sent to the landing page and, after signing in, brought back to that exact page, including the query string of a shared [Mizan Compare](https://taaweel.snapkodex.com/docs/31-mizan-compare#sharing) link. If you have no account, **Create one** starts [Sign up](#sign-up) (when sign-up is open).

### Your account
Open [/account](https://taaweel.snapkodex.com/account) (click your name at the bottom of the sidebar). It has these cards:

- **Profile**: your name, email and role badge (*user* or *admin*).
- **Ālim-e-Deen**: your scholar-application status; see [Scholar registration](#scholar-registration).
- **AI usage**: see below.
- **Change password** and **Signed-in devices**: see below.

#### Reading your usage
The **AI usage** card has three rows:

| Row | Meaning |
|---|---|
| **Today (UTC)** | Cost today against your daily limit. |
| **This month (UTC)** | Cost this month against your monthly limit. |
| **Research runs at once** | How many runs you may have in progress together. |

A run that would exceed a limit stops with an **AI budget reached** page and the buttons **Go back** and **See your usage**. Limits reset on UTC days and months. Numerics, the ontology and Mizan's counts do not use AI and are never charged against your allowance (only Mizan's optional **Explain the analysis** and **Ask about these results** do).

#### Change your password
1. On [/account](https://taaweel.snapkodex.com/account) find **Change password**.
2. Type your **Current password** and a **New password** (at least the minimum length shown).
3. Click **Change password**. *Your other devices are signed out; this one stays signed in.*

#### Signed-in devices
**Signed-in devices** lists each session with **Last seen (UTC)**, **IP** and **Browser**. If you do not recognise one, click **Sign out everywhere else**, then change your password.

### Scholar registration
Taaweel invites trained scholars to register as **Ālim-e-Deen**, so their feedback on methodology can be recognised and reviewed.

1. If you are signed in go to [/register/scholar](https://taaweel.snapkodex.com/register/scholar) (also linked from [/account](https://taaweel.snapkodex.com/account) as **Apply as Ālim-e-Deen**). If you are not, the same page also asks for a sign-in name and a password and creates a verified account for you.
2. Fill in **Full name**, **Specialization** (for example Tafsīr, Ḥadīth, Fiqh, Uṣūl, Aqīdah, Arabic), **Degree name** (for example ʿĀlimiyyah, Ijāzah, MA Islamic Studies), **Institute name**, **Teacher name(s)** and **Contact number** with the country code. The contact number is seen by reviewers only.
3. Choose your **Orientation** (your sect, or *Prefer not to say*) and, if you wish, add **Notes on your orientation**. These are private to the review team.
4. Optionally describe your teaching, writing or work in **Tell us about yourself**.
5. Click the submit button. *You see an "applied" confirmation and the status card.*

Your status on [/account](https://taaweel.snapkodex.com/account) is *under review*, then *verified* or *not accepted*. You can open the form again at any time (**View or update application**) to revise it.

### Feedback
[/feedback](https://taaweel.snapkodex.com/feedback) is public; you do not need to be signed in.

1. Choose a **Category**: *Answer / research output*, *Methodology*, *Sources & citations*, *Bug or technical problem*, *Suggestion* or *Other*.
2. In **Where did you see it?** optionally give a question reference, a page or a URL.
3. Describe what you expected and what you saw in **Tell us what happened**.
4. Optionally add your **Name** and, if you want a reply, a **Contact** email.
5. Click **Send feedback →**. *A confirmation appears and the message goes to the administrators' feedback queue.*

### Where to go next

- Ask your first question: [Research runs](https://taaweel.snapkodex.com/docs/21-research-runs#ask-a-question).
- Not sure how to phrase it? Start in a [chat](https://taaweel.snapkodex.com/docs/22-chats-and-attachments#new-chat).
- Prefer numbers? Try [Numerics](https://taaweel.snapkodex.com/docs/24-numerics) or [Mizan](https://taaweel.snapkodex.com/docs/30-mizan-lookup).
- Questions? See the [FAQ](https://taaweel.snapkodex.com/docs/40-faq).

*Web version: https://taaweel.snapkodex.com/docs/20-getting-started*

---

<a id="ch-21-research-runs"></a>

<!-- chapter: 21-research-runs | https://taaweel.snapkodex.com/docs/21-research-runs -->

## Research runs: from a question to a cited report

A **research run** is Taaweel's main job: you give it a question, and a thirteen-stage pipeline counts the verses, reads the tafsīr and hadith, tests claims against the uṣūl, and composes a cited report. This chapter is the how-to for the whole journey: ask, refine, lock, run, watch, read, question and extend. For *why* each stage exists see [Method](https://taaweel.snapkodex.com/docs/02-method) and [The thirteen stages](https://taaweel.snapkodex.com/docs/04-stages).

### Runs: your dashboard
[/dashboard](https://taaweel.snapkodex.com/dashboard) is your research home. From top to bottom:

- **Research, the disciplined way** is the heading banner.
- Four tiles count **Runs**, **In flight**, **Completed** and the active **Provider**.
- **Start new research** is where every piece of research begins; see [Ask a question](#ask-a-question).
- **Research runs** lists all your runs, with these columns: **Run** (the `#id` and the AI provider), **Status**, **Question** (click it to open), **Progress** (stages completed out of thirteen) and **Created**.
- The **New research** button at the bottom right is a shortcut to a [new chat](https://taaweel.snapkodex.com/docs/22-chats-and-attachments#new-chat).

#### Run status
The **Status** chip is one of:

| Status | Meaning |
|---|---|
| **queued** | Waiting for a free slot; a position and an estimate are shown. |
| **running** | A stage is working now. |
| **done** | All stages finished and a report was composed. |
| **error** | A stage failed; Taaweel retries automatically (see [Failures](#failures)). |
| **aborted** | The run was stopped; finished stages are kept and you can resume. |

### Ask a question
1. Open [/dashboard](https://taaweel.snapkodex.com/dashboard) and find **Start new research**. *Until you have asked a question, the page says "No runs yet".*
2. In **Research question** type your question (at least 5 characters). Plain language is fine, and Arabic may be typed too, for example *how does the Qurʾān relate qalb to shuʿūr?*
3. Click **Start refining**. *The question workspace opens at `/dashboard/questions/<id>` with status **draft**: the Refiner answers once and you can improve the wording before any research money is spent.*

You can also start in a chat: see [Open a refinement chat](https://taaweel.snapkodex.com/docs/22-chats-and-attachments#new-chat). Both routes end in the same workspace.

### Refine and lock the question
A good question is narrow, answerable from the text and clear about what would count as evidence. The Refiner helps you get there.

1. In **Message to the refiner** describe what you want, or answer its questions, then click **Send**. *The Refiner replies in the chat box; a **proposed:** line shows the reworded question.* Repeat as often as you like. Each turn is stored; if a turn fails, a notice appears and your text is kept so you can resend.
2. When the wording is right, scroll to **Lock the question**. The **Final research question** box is pre-filled with the latest proposal; edit it freely.
3. Click **Lock this question**. *The status badge changes from **draft** to **locked** and the wording is frozen for the whole pipeline: a locked question can no longer be edited.*
4. To go a different way instead, click **Start a new chat instead**.

The same refine-and-lock flow exists inside a [chat](https://taaweel.snapkodex.com/docs/22-chats-and-attachments#chat-sessions). From a run page, **Refinement chat** returns you to the chat the question came from.

### Start a run
1. On a locked question click **Start research run**. *A run is created and you are taken to its page, status **queued**, with your position and an estimated start.*
2. Your allowance applies: if starting would exceed your daily or monthly limit, or the number of runs at once, an **AI budget reached** page appears with **Go back** and **See your usage**. See [AI allowance](https://taaweel.snapkodex.com/docs/20-getting-started#ai-allowance).

### The run page
[/dashboard/runs/&lt;id&gt;](https://taaweel.snapkodex.com/dashboard) is one run: its progress, evidence and answer. Its parts, in the order you meet them:

- **Run #id**: the heading card. Chips show how it relates to others (see [Deep dives and forks](#deep-dives-and-forks)).
- **Progress bar**: "N of 13 stages complete". The page refreshes itself while the run works.
- **Tokens in / out**, **Est. cost**, **Provider**, **Models**: what the run has cost and which models did the work. See [Operating Taaweel](https://taaweel.snapkodex.com/docs/11-operations#cost-discipline).
- **Read report vN**, **Discuss this report**, **Pipeline trace** and **Markdown**: the actions that open the answer or its evidence.
- **Pipeline stages**: each of the thirteen stages with **Status**, **Model**, **Attempts**, **Tokens** and **Error**. Stages such as *Correspondence* ("Scientific correspondence and gaps") and *Referent trial* ("what is NOT the subject") show how the pipeline separates what the text says from what science says.
- Further cards appear as the stages produce them: [corpus maps](#corpus-maps), the [verse universe](#verse-universe), **Claims**, the **Objections ledger**, [Attachments](https://taaweel.snapkodex.com/docs/22-chats-and-attachments#attachments), [Regenerate](#regenerate), [Document audits](https://taaweel.snapkodex.com/docs/23-reports-and-audits#document-audits), [Architecture](#architecture) and **Discuss this report**.

#### Queue
A queued run shows **Queued — position n** with a rough start time. Runs start in order as capacity frees up; nothing is lost if you close the tab.

#### Failures and stopped runs
- **This run failed** (red notice): Taaweel retries a failed stage automatically. To retry immediately click **Retry failed stage now**. Stages that succeeded are never redone.
- **This run was stopped**: click **Resume run**. *It continues from where it stopped, keeping every finished stage.*
- If a run seems stuck, tell an administrator; they have restart tools (see [Run tools](https://taaweel.snapkodex.com/docs/26-admin-console#run-tools)).

#### Deep dives and forks
Chips at the top of a run show lineage: **deep dive of #n** (a child created with [Deeper research](#deeper-research)), **verse-lens fork of #n** (created with a [lens verse](#verse-lens)) and **forks: …** (children of this run). Click a chip to open that run.

#### Corpus maps
For each term the pipeline counted, a card shows "N occurrences · M verses" and a table of **Class**, **Verses** and **Attributes**: how the term's verses fall into groups. Expand a class to read the verses. This is the same material listed in the [pipeline trace](https://taaweel.snapkodex.com/docs/09-meta#counted-verses).

#### Verse universe
**Verse universe — and the deeper research** lists every verse the research touched and how closely it was read. The table has **Passage**, **State**, **Why it is here** and **Score**:

- **analyzed**: read closely by the later stages.
- **seen**: swept and scored, but set aside.
- **counted**: part of the term counts only.

This card appears once the dossier stage has run.

#### Deeper research
You can send more passages into close analysis without redoing the whole run.

1. In the **Verse universe** table tick the passages you want read more deeply (**check seen** ticks all *seen* ones, **uncheck all** clears). *The estimate line shows LLM calls, a cost range and minutes for your selection.*
2. Choose the **Depth**: how thoroughly each chosen passage is read.
3. Optionally type **Why deeper? (optional, recorded on each anchor)**. *The note is stored on every anchor you add.*
4. Click **Launch deeper research**. *A child run (a **deep dive**) is created and linked to this one.*

### Claims and objections
- **Claims** lists each claim with an **ID**, the **Claim**, its **Status** (its epistemic standing), its **Level** on the claim-strength ladder and what **Supports** it. See [Guardrails](https://taaweel.snapkodex.com/docs/07-guardrails).
- **Objections ledger** lists the criticisms the adversarial stage raised: **ID**, **Claim**, **Objection**, **Sev** and **Resolve**.

To record your own judgement on an objection:

1. In the row, change the select to **open**, **resolved** or **carried**.
2. Type a **resolution note** if you want one.
3. Click **save**. *Your decision is stored with the run and appears in the report's account of unresolved objections.*

### Regenerate, or fork through a verse
Under **Regenerate the report — or fork it through one verse**:

1. In the **New angle** box type the angle you want, for example "focus on the rawāsī anchoring function".
2. Leave **Lens verse (optional)** empty to re-compose the report from the new angle. *A new report version is added to the same run.*
3. Click **Regenerate**.

#### Verse lens
To examine the whole corpus through one verse, fill **Lens verse (optional)** with `surah:ayah` or `surah:ayah-ayah` (for example `13:17` or `2:255-257`) and click **Regenerate**. *A new run, a **verse-lens fork**, is created and linked as `lens #id`; your original run is untouched.*

### Architecture, and rebuilding
**Architecture (the answer)** shows the answer's states or components with their standing. Use it to see how the conclusions fit together.

#### Rebuild
To re-run part of the pipeline, for example after adding a [pasted source](https://taaweel.snapkodex.com/docs/22-chats-and-attachments#pasted-sources):

1. Open the select **Rebuild the answer from** and choose a stage (for a new empirical source, *Referent trial*).
2. Click **Rebuild**. *That stage and every later one re-run; earlier evidence is kept.*

### The report
When the last stage finishes, **Read report vN** opens [the report](https://taaweel.snapkodex.com/dashboard) at `/dashboard/runs/<id>/report`.

- **Contents** (a list on the side, or a menu on a phone) jumps between sections.
- Each **`[E-n]`** chip is a citation: it points to a row of the evidence ledger, which you can open in the [pipeline trace](https://taaweel.snapkodex.com/docs/09-meta#evidence-ledger).
- Coloured **status chips** in tables show how firmly a claim stands; see [Guardrails](https://taaweel.snapkodex.com/docs/07-guardrails).
- The top-bar icons are **Discuss this report**, **Pipeline trace**, **Download markdown** and **Print or save as PDF**.
- **Discuss this report** (a button at the end) opens a chat limited to this report version; see [Chat loops](https://taaweel.snapkodex.com/docs/08-chat).

Every report version is also on the [Reports library](https://taaweel.snapkodex.com/docs/23-reports-and-audits#reports-library).

### Delete a run
1. On [/dashboard](https://taaweel.snapkodex.com/dashboard) find the run in **Research runs**.
2. Click the trash icon (**Delete this run**). *A confirmation reads "Delete run #N and everything it produced…".*
3. Confirm. *The run, its reports, chats and evidence are removed. This cannot be undone.* Download the report first (see [Export](https://taaweel.snapkodex.com/docs/23-reports-and-audits#export)) if you want to keep it.

*Web version: https://taaweel.snapkodex.com/docs/21-research-runs*

---

<a id="ch-22-chats-and-attachments"></a>

<!-- chapter: 22-chats-and-attachments | https://taaweel.snapkodex.com/docs/22-chats-and-attachments -->

## Chats and attachments

Chats are where you talk to Taaweel: before research, to shape a question, and after, to question a finished report. Attachments are how your own material enters the work, always through a declared role. This chapter covers both.

### Chat sessions
[/dashboard/chats](https://taaweel.snapkodex.com/dashboard/chats) lists all your conversations. The columns are **#**, **Kind**, **Title**, **Linked** (the question or run it belongs to), **Messages** and **Last activity**. Two buttons, **All sessions** and **With messages**, hide empty sessions. The trash icon deletes a chat; the run it led to stays.

Open one to see the **Chat #id** page: the conversation so far, a **Message** box and **Send**. For the design behind it see [The chat loops](https://taaweel.snapkodex.com/docs/08-chat).

#### Chat kinds
| Kind | Used for |
|---|---|
| **refine** | Shaping a question before research; ends in a locked question. |
| **report** | Discussing a finished report; answers come from that report only. |

### Open a refinement chat
1. Click **New research** in the sidebar, or open [/dashboard/chats](https://taaweel.snapkodex.com/dashboard/chats).
2. In **New chat → Research question** type your question (at least 5 characters) and click **Open chat**. *The Refiner answers once and the chat opens at `/dashboard/chats/<id>`.*
3. Keep talking: type in **Message** and click **Send**. The Refiner asks clarifying questions and proposes better wording.
4. When satisfied, fill **Final research question**, click **Lock this question**, then **Start research run**. *You arrive on the [run page](https://taaweel.snapkodex.com/docs/21-research-runs#the-run-page).* The same flow lives on the [question workspace](https://taaweel.snapkodex.com/docs/21-research-runs#refine-and-lock).

### Attach a file to a chat
Inside a chat, open **Attach a file to this chat**:

1. Choose a role: **Chat only — context** (the file stays in the chat) or one of the research roles described under [File roles](#file-roles).
2. Pick the **File**, optionally add a **Source title** and a **Caption**.
3. Click **Attach**. *The file appears in the chat; a research-role file is carried into the run you start.*

### Attachments
On a run page, the **Attachments** card lets you add a file to the research. Files enter the research **only through a role**: the role says what the file is allowed to do.

1. Open the run and find **Attachments**.
2. Under **Role this file enters the research with** choose a role (see below).
3. Pick the **File**. Allowed types are `.txt`, `.md` and `.html`.
4. Optionally type the **Source title if from a document (provenance)** and a **Caption**.
5. Click **Attach**. *The file is listed with a role chip, its provenance, its size in characters and a status (extracted → consumed).* The trash icon removes it.

#### File roles
| Role | What the file may do |
|---|---|
| **Evidence** | Count as evidence, and may even falsify a translation. |
| **Claim seed** | Supply a reading to be *tested*, never assumed. Keep the **Source title** so provenance follows every claim. |
| **Method** | Supply a framework for the work to follow. |
| **Research subject** | A document to be [audited](https://taaweel.snapkodex.com/docs/23-reports-and-audits#document-audits), not trusted. |

Nothing in a file is treated as true merely because you attached it. The guardrails in [Guardrails](https://taaweel.snapkodex.com/docs/07-guardrails) apply to attached material too.

#### Provenance
The **Source title** you give is shown beside every claim the file produces. A claim marked *user-proposed* came from your claim seed; one marked *from-source: …* names the document. In the [pipeline trace](https://taaweel.snapkodex.com/docs/09-meta#user-files) you can see how each file was used.

### Pasted empirical sources
To let the physical-correspondence checks cite a scientific source:

1. On the run page open the fold **Pasted empirical sources (n)**.
2. Fill **Title**, **URL** and **Key excerpt or finding**.
3. Click **Attach source**. *It becomes available to the correspondence checks and the uṣūl audit.*
4. To make the checks use it, [rebuild](https://taaweel.snapkodex.com/docs/21-research-runs#rebuild) the answer from *Referent trial*.

*Web version: https://taaweel.snapkodex.com/docs/22-chats-and-attachments*

---

<a id="ch-23-reports-and-audits"></a>

<!-- chapter: 23-reports-and-audits | https://taaweel.snapkodex.com/docs/23-reports-and-audits -->

## Reports and document audits

Two shelves: the **Reports library**, where every finished report lives, and **Audits**, where Taaweel checks documents *you* supply, statement by statement.

### Reports library
[/dashboard/reports](https://taaweel.snapkodex.com/dashboard/reports) ("Every answer, in one place") lists every finished report.

1. Look at the four tiles: **Reports**, **Versions**, **Runs with reports** and **Provider**.
2. Type in **Search reports**. *Rows filter as you type, matching the question, the run number or the provider.* **Clear search** resets.
3. Read the table: **Run**, **Question**, **Run status**, **Version**, a *fixture* badge for built-in sample reports, and **Composed** (when).
4. Click a row. *The report opens.* See [The report](https://taaweel.snapkodex.com/docs/21-research-runs#the-report) for how to read it.

#### Export
- **All reports at once:** in the top bar click **Download all reports as one markdown file** (`/dashboard/reports/export.md`). *You get every report on the shelf in one file.*
- **One report:** open it and use **Download markdown**, or **Print or save as PDF**.

### Document audits
An audit takes a document of yours (a paper draft, an article, a lecture transcript) and examines each statement against the Qurʾān and the sources, without you having to trust either the document or the audit.

#### Start an audit

1. Open a run and attach your file with the role **Research subject** (see [File roles](https://taaweel.snapkodex.com/docs/22-chats-and-attachments#file-roles)).
2. In **Document audits (research subject)** click **Audit this document**. *You are taken to `/dashboard/audits/<id>`; status **running**.*

#### The audits list

[/dashboard/audits](https://taaweel.snapkodex.com/dashboard/audits) ("Document audits") has one row per audit: **#**, **Status**, **Document**, **Run**, **Stage** and **Updated**. Click a row to open it.

#### Reading an audit
The audit page (**Document audit #id**) starts with the status and, while it runs, a **Stop** button that cancels it. Tiles show the **Stage**, **Tokens in / out**, **Est. cost** and **Started**. Then, as each part completes:

##### Rollup
**Rollup** is the overall judgement: a summary, the count of statements per verdict, and lists of **Strengths** and **Strains**.

##### Cross-reference pass
**Cross-reference pass** looks across statements for **Kind**, **Finding**, the **Statements** involved and a severity (**Sev**): contradictions, repetitions and gaps that no single statement shows.

##### Statements
**Statements** lists each extracted claim: **ID**, **Type**, **Statement**, **Verdict** and **Tier**. Open **Drill-down** on a row to see the citation checks and, for claims about the natural world, the **Blind science check**: a verdict, the authority consulted and why. The verdicts are explained in [Guardrails](https://taaweel.snapkodex.com/docs/07-guardrails).

*Web version: https://taaweel.snapkodex.com/docs/23-reports-and-audits*

---

<a id="ch-24-numerics"></a>

<!-- chapter: 24-numerics | https://taaweel.snapkodex.com/docs/24-numerics -->

## Numerics: count a word across the muṣḥaf

Numerics is a **deterministic concordance**: it counts every token of the muṣḥaf and involves no AI at all. The same input always gives the same answer, and it never touches your AI allowance.

### Overview
Open [/dashboard/numerics](https://taaweel.snapkodex.com/dashboard/numerics), "Numerical analysis of the Qurʾānic corpus". Use it to answer "how often does this word occur, in which forms, in which surahs, and where does it appear beside another word?" For wider numbers (letters, abjad, patterns and their base rates) use [Mizan](https://taaweel.snapkodex.com/docs/30-mizan-lookup).

### Analyse a term
1. In **Term to analyse** type an Arabic word, for example `نفس`, or click one of the **Try:** examples (such as نفس, قلب or روح).
2. Click **Analyse**. *The page shows the profile below.*

### Co-occurrence
To find verses where two words meet, fill **Co-occurrence term** with a second Arabic word before clicking **Analyse** (for example term `نور`, co-occurrence `هدى`). *A card **Co-occurrence with …** lists the verses that contain both words.*

### Reading the results
- **Stats tiles**: **Occurrences**, **Distinct verses**, **Surahs** and **Derived forms**.
- **Derived forms (Uthmani)**: the spellings found and how often each occurs.
- **Distribution by surah**: where the word concentrates.
- **Occurrences in context**: the first 40 verses with the matching word highlighted.

Because nothing is generated, anything you see here can be reproduced by hand against the muṣḥaf.

*Web version: https://taaweel.snapkodex.com/docs/24-numerics*

---

<a id="ch-25-ontology"></a>

<!-- chapter: 25-ontology | https://taaweel.snapkodex.com/docs/25-ontology -->

## Ontology: the concept graph

The ontology is a curated graph of **concepts** and **entities** that the Qurʾān's words point to, with every verse labeled word by word. It is read-only for you; administrators curate it (see [Ontology curation](https://taaweel.snapkodex.com/docs/26-admin-console#ontology-curation)).

### Overview
Open [/ontology](https://taaweel.snapkodex.com/ontology). The first card introduces the graph and shows its size: the number of nodes, approved links and verses labeled. Below it are **The graph** (a tree), **Labeled verses**, and a link **Explore the graph** to the interactive view.

#### Concept or entity?
A node's badge says **concept** (an idea such as *mercy*) or **entity** (the thing itself, such as a mountain or a prophet). The distinction keeps the graph honest: an idea is not the object it is sometimes described with.

### Search
1. In **Find a concept or entity (label or alias)** type a name (aliases work too).
2. Click **Search**. *Matching nodes are listed; click one to open it.*

### The tree
**The graph** card shows the hierarchy. Expand a branch to load its children (one level at a time); **Expand all** and **Collapse all** act on the whole tree. Large branches open as an explorer instead of a list.

### Node page
A node page (`/ontology/nodes/<id>`) has a header with its **kind**, subtype and status badges, a description and aliases, then three cards:

- **Under**: its parents.
- **Contains**: its children.
- **Verses labeled with it**: references you can click.

### Labeled verses and the verse page
**Labeled verses** (with a pager) lists verses that have been labeled word by word. Click one to open the verse page.

#### Verse page
`/ontology/verses/<surah>/<ayah>` shows the verse, who labeled it and when, then:

- **The verse as a whole**: verse-level labels with their rationale.
- **Word by word**: each word's path through the graph (its chain) and a confidence value.

### The graph explorer
Click **Explore the graph** (or open [/ontology/graph](https://taaweel.snapkodex.com/ontology/graph)) for the whole concept graph, interactively.

1. **Search concepts and entities ( / )**: press `/` to jump to the search box, type and pick a result. *The node is highlighted.*
2. Click any node. *The side panel shows its details.*
3. Drag nodes to pin them; **Unpin** releases them.
4. Use the zoom buttons (**+**, **−**, **fit**) or the mouse wheel. The stats line states what is currently shown.

#### Layouts
**Layout** switches between **Network**, **Rings by depth** and **Trees**.

#### Colour
**Colour by** chooses branch, kind or status. The **legend** explains the colours.

#### Size
**Size by** chooses connections, verses labeled or uniform.

#### 2D and 3D
The **2D / 3D** switch gives a flat view or a rotating three-dimensional one.

#### The side panel
The panel has three tabs: **Node** (details of what you selected), **View** (display filters) and **Explore** (exploration tools).

#### Share and export
- **Copy link** copies a link to this exact view (search, selected node and every setting live in the address). Anyone who opens it, once signed in, sees what you saw.
- **Export** downloads the graph.

*Web version: https://taaweel.snapkodex.com/docs/25-ontology*

---

<a id="ch-26-admin-console"></a>

<!-- chapter: 26-admin-console | https://taaweel.snapkodex.com/docs/26-admin-console -->

## Admin console

For administrators only. Everyone else gets a 403 on these pages. The console is kept apart from the research app: when you are under `/admin` or `/dashboard/models` the sidebar switches to **Overview, Users, All research, Spend, Models, Feedback queue, Scholars, Audit log, System** and **Back to the app**.

### Overview
[/admin](https://taaweel.snapkodex.com/admin) is the front door: cards for **Users**, **All research**, **Spend**, **Models**, **Feedback queue**, **Scholars**, **Audit log** and **System**. Each card opens one area.

### First-run setup
On a fresh install [/setup](https://taaweel.snapkodex.com/setup) offers **Create the admin account**; the first account becomes the administrator. You need the one-time **token** printed in the server log, then an **Email or username**, a display **name** and a **password** of at least the minimum length. Once an account exists the page redirects away.

### Users
[/admin/users](https://taaweel.snapkodex.com/admin/users) ("Accounts") lists everyone who can sign in: **Account**, **Role**, **Status**, **Runs** and **Last sign-in (UTC)**.

#### The sign-up switch
The toggle at the top reads "Sign-up is open" or "Sign-up is closed". Click it to open or close registration at runtime, without a restart.

#### Manage a user
Click **Manage** on a row. You can:

- **Make admin** or **Make user** (the Access control).
- **Suspend** or **Reactivate** the account.
- **Sign out everywhere**.
- Type a **New password** and save: *the user's sessions are all ended.*
- Type the confirmation under **Delete account**: *the account is removed; their research is kept, unowned.*

Every action is written to the [audit log](#audit-log).

#### Create a user
**Create an account**: fill **Email or username**, **Name**, **Temporary password** and **Role**, and submit. Hand the credentials to the person; they should change the password under [Account](https://taaweel.snapkodex.com/docs/20-getting-started#change-password).

### All research
[/admin/research](https://taaweel.snapkodex.com/admin/research) ("Research by user") shows every run: **Run**, **Made by**, **Status**, **Question** and **Created (UTC)**. The select filters by owner, or by *Unowned*.

#### Start a queued run
On a queued row click **Start now**. *The run starts at once, ahead of its place in the queue, and the owner is emailed.*

#### Run tools
On any run page, admins see **Admin tools** with **Restart from scratch** and **Delete run**, for stuck or unwanted runs.

### Spend
[/admin/spend](https://taaweel.snapkodex.com/admin/spend) ("AI spend"). **This month, everyone** shows the total against the ceiling.

#### Limits
- **Default limits**: `userDailyUsd`, `userMonthlyUsd`, `globalMonthlyUsd` and `userMaxConcurrentRuns`; **0 means no limit**. Click **Save defaults**.
- **Per user**: shows **Today**, **Month** and **All time** and lets you override the day limit, the month limit and the runs-at-once for one person; click **Save**.

### Models
[/dashboard/models](https://taaweel.snapkodex.com/dashboard/models) ("The models behind the research") shows tiles for **Active provider**, **Provider key**, **Model roles** and **Pipeline stages**.

#### Providers
**Providers**: pick one in the select and click **Switch provider**. *It is used from the next call.*

#### API keys
**API keys** lists **Provider**, **Key in use** (only the last four characters are shown) and a box to **Set or replace** it.

#### Who runs what
**Who runs what — the pipeline, stage by stage** lists which role and model each stage uses and its cost tier.

#### The seven roles
Cards for **Reasoning, Extraction, Planning, Hypothesis, Adversarial, Architecture** and **Composition**. Click **Change this model**, choose, and **Save model**.

#### Model catalogue
**Model catalogue — strengths, weaknesses, cost** lists prices per million tokens and what each model is good at. **Refresh prices** updates them.

#### Call settings
**How every call is made** holds the shared call parameters; click **Save call settings**.

### Feedback queue
[/admin/feedback](https://taaweel.snapkodex.com/admin/feedback) ("Inbox") shows each message as `#id · Category`. Mark it **new**, **reviewed** or **resolved**.

### Scholar review
[/admin/scholars](https://taaweel.snapkodex.com/admin/scholars) lists **Ālim-e-Deen applications** with status *pending*, *verified* or *rejected*. Open one to read the details and set the status.

### Audit log
[/admin/audit](https://taaweel.snapkodex.com/admin/audit) ("Admin actions") lists **When**, **Admin**, **Action**, **Account**, **Detail** and **IP**, newest first. It cannot be switched off.

### System
[/admin/system](https://taaweel.snapkodex.com/admin/system). **Health** shows the version, the database, the corpus, the queue and errors.

#### Backups
**Backups** shows the schedule and the last result. **Back up now** makes a database backup immediately.

#### Housekeeping
**Housekeeping**: **Clean up now** removes orphaned files and old logs.

#### Recent errors
**Recent errors** lists the last server errors.

### Ontology curation
[/ontology/admin](https://taaweel.snapkodex.com/ontology/admin) has four tabs: **Labeling**, **Proposals**, **Kinds** and **Worker**.

#### Labeling
**Run the ontology mapping**: choose **What to map** (all or chosen surahs, a surah, an ayah), type `ALL` to confirm a whole-corpus run, optionally limit to the first N verses, tick **Skip verses that are already labeled** and **One labeler call per word**, pick a model and click **Start mapping**.

#### Runs
**Runs** is the history: **#**, **Scope**, **Status**, **Verses**, **Model**, **Started**, with **Stop**, **Resume** and **Delete**. Open one for its cost breakdown and verses.

#### Proposals
**Proposed links** and **Proposed nodes** are what the labeler suggested: **Approve**, **Reject**, **Change relation**, and **Merge nodes** for duplicates.

#### Kinds
**Concept or entity?** finds concept nodes that are really physical things. Click **Scan concept nodes**, review the **Not only a concept** table and apply.

#### Worker
**Worker** is the background curator: **Status** (**Run one pass now**, **Queue a rescan of labeled verses**), **Settings** (jobs per pass, AI calls per minute and its spending ceiling; **Save settings**) and **Recent events**.

*Web version: https://taaweel.snapkodex.com/docs/26-admin-console*

---

<a id="ch-27-public-pages"></a>

<!-- chapter: 27-public-pages | https://taaweel.snapkodex.com/docs/27-public-pages -->

## Public pages: landing, features, docs and legal

Everything on this page is open to anyone, without an account.

### Landing
The [front page](https://taaweel.snapkodex.com/) introduces Taaweel 2.0. The top bar jumps to the sections **Method**, **Sources**, **Pipeline**, **Features** and **Ālim-e-Deen**. **Sign in** is at the right; **Start researching** appears when sign-up is open. Signed-in visitors are sent to their dashboard instead.

The sections, in order: the hero with headline numbers (such as 6,236 verses indexed), the film, the method, the sources (including tafsīr and hadith), the thirteen-stage pipeline, a preview of features, and an invitation to scholars to register.

#### Launch film
A two-minute film about Taaweel plays in the **film** section of the landing page.

#### Footer links
The footer links to **Register**, **Register as Ālim-e-Deen**, **All features**, **Feedback**, **Terms**, **Privacy** and **Credits**.

### Features
[/features](https://taaweel.snapkodex.com/features) ("Every feature, on a real screen.") shows eight annotated screens: the runs dashboard, a complete run, a report, the corpus, the evidence ledger, the critique and audit, the concept graph and Mizan. Click a screen to open it; the numbered chips point at what to notice. The page ends with a link to register or sign in.

### Documentation

You are reading it. [/docs](https://taaweel.snapkodex.com/docs) is the landing index: pick a journey for your role, search all chapters with `/` or Ctrl-K, or [download everything as one Markdown file](https://taaweel.snapkodex.com/docs/taaweel-docs.md).

### Credits
[/credits](https://taaweel.snapkodex.com/credits) ("With thanks.") lists who built and contributed to Taaweel: the kinds of contribution recognised (**How they contributed**) and **Contributors**.

### Legal pages
- [Terms](https://taaweel.snapkodex.com/terms): the rules for using Taaweel.
- [Privacy](https://taaweel.snapkodex.com/privacy): what data Taaweel stores and why.
- [Disclaimer](https://taaweel.snapkodex.com/disclaimer) ("Research Disclaimer"): what Taaweel's output is and is not. It is research assistance, not a fatwā.

*Web version: https://taaweel.snapkodex.com/docs/27-public-pages*

---

<a id="ch-30-mizan-lookup"></a>

<!-- chapter: 30-mizan-lookup | https://taaweel.snapkodex.com/docs/30-mizan-lookup -->

## Mizan: Look up

**Mizan** (*mīzān*, the balance) is Taaweel's numerical-analysis tool. Type a verse, a surah or a word and it shows its numbers (words, letters, abjad totals, pattern checks) together with **the rule that produced each number** and an honest base rate for how surprising it is. Mizan is part of Taaweel: you must be signed in, and it uses your Taaweel account.

This chapter is the **Look up** page, the front page of Mizan. The other pages are [Compare](https://taaweel.snapkodex.com/docs/31-mizan-compare), [Perspectives](https://taaweel.snapkodex.com/docs/32-mizan-perspectives) and [Al-Fātiḥah](https://taaweel.snapkodex.com/docs/33-mizan-fatihah); the rules behind every number are in [Counting rules](https://taaweel.snapkodex.com/docs/34-mizan-counting-rules).

### Overview
Open [/numerical_analysis/](https://taaweel.snapkodex.com/numerical_analysis/) (or **Mizan** in the Taaweel sidebar). The top bar links **Look up**, **Compare**, **Perspectives**, **Al-Fātiḥah** and **How it works**; the brand at the left returns here. Under the search box a **What you'll get** sample shows what a result looks like, and **See the page, annotated** (inside Taaweel only) opens an annotated screenshot.

#### Opening Mizan
The first time you open Mizan after a restart, you may see **Starting Mizan…** for a few seconds; the page opens by itself. If it shows **Mizan isn't running**, wait a minute and reload, then tell an administrator if it persists.

#### Light and dark
The Look-up page follows your system theme. The **Compare**, **Perspectives** and **Al-Fātiḥah** pages have a moon/sun button in the top bar (`themeBtn`) that switches theme and remembers your choice.

### Search
1. Click into **Verse, surah or word**.
2. Type what you want (see [formats](#input-formats)) or click an [example](#examples).
3. Click **Show numbers**. *Mizan resolves your input and runs the analyses; progress is shown, and then the **Results** card appears.*

Mizan always tells you how it understood your input in the **Let's fix the input** / "what was understood" area under the box: a verse range, a surah, a root, or a word. If it could not understand you, it says what to type instead.

#### Input formats
| You type | Mizan analyses |
|---|---|
| `2:255` | One verse (Āyat al-Kursī). |
| `1:1-7` | A range of verses. |
| `surah:18` | A whole surah. |
| `root:رحم` | Every word from the root. |
| an Arabic word, e.g. `نور` | That word across the Qurʾān. |

#### Examples
The chips under the box are one-click examples: *Ayat al-Kursi*, *Al-Fātiḥah*, *Surah Al-Ikhlāṣ*, *The root رحم* and *The word نور*.

### Settings: how we count

The collapsed bar **How we count** shows the current rules. Defaults suit most people; open it to change them. Every choice, and why it matters, is explained in [Counting rules: settings](https://taaweel.snapkodex.com/docs/34-mizan-counting-rules#settings).

#### Update results
After changing a rule, click **Update results**. *Everything re-runs under the new rule, and the rule is shown beside each number. A progress bar shows the run.*

#### Show what will run
Click **Show what will run (without running it)** to preview a plan: which analyses will run and which will be blocked and why, before anything is computed.

### Results
The **Results** card appears after a run. It starts with a line of meta (what was analysed, the counting profile and a run id; for a surah it adds **See surah N through 24 perspectives →**, which opens [Perspectives](https://taaweel.snapkodex.com/docs/32-mizan-perspectives)).

#### Verse context and the scope warning
For a verse, a card shows it with its neighbours. If your *scope* setting makes the numbers wider than your entry (for example the whole surah), a warning says so and offers **Analyze just … instead**.

#### Summary tiles
Tiles show the headline numbers: **words**, **letters**, **distinct words**, **abjad total**, **letter variety**, **word variety** and **occurrences** (for a word search).

#### Charts
Chart groups: *Overview*; *Letters & abjad — what the text is made of*; *Your verse vs the whole Quran*; *Patterns vs chance — how surprising is each one?*; *Patterns & structure*. Every chart can be enlarged and exported.

#### Reading the rows
Below the charts, each analysis is a **row** with a coloured dot (ran successfully, blocked, or failed), a friendly name, a family pill and the value.

1. Click a row to open it. *You see a plain explanation and a **How surprising?** line with the base rate and p-value.*
2. Read the rule shown with the number.
3. Open the evidence (below).

##### Evidence
Inside a row, **Show exactly what was counted (evidence)** lists the exact letters and items counted, so you can check them against the muṣḥaf by hand.

##### Blocked analyses

**Not possible for this input (n) — show why** lists analyses that cannot run here, each with its reason (for example "Choose 'Letters' to enable this"). Mizan would rather say *not possible* than invent a number; see [Honest limits](https://taaweel.snapkodex.com/docs/34-mizan-counting-rules#honest-limits).

#### Exports
Under the results: **Download readable report (HTML)**, **Download data table (CSV)** and **Download full data (JSON)**. The JSON includes the run id and the counting rules so someone else can reproduce it.

#### Explain the analysis
Click **✨ Explain the analysis**. *An AI-written explanation appears, labelled with its provider and model and a disclaimer.* The numbers in the tables remain authoritative; if the explanation and a table disagree, trust the table. This uses your AI allowance.

#### Ask about these results
In **💬 Ask about these results** type a question in the box ("how does my verse map onto the histogram?") and click **Send**. *Answers are drawn from this report only.* **clear** resets the conversation.

### The Calculation explorer
After a verse lookup, **Calculation explorer — exactly how the numbers are made** opens the abjad sum word by word.

1. Click a word chip. *It opens letter by letter, with each letter's value and the equation.*
2. Use **← previous verse** and **next verse →** to step through a range.
3. Read *The full abjad addition, word by word* and **Rules used**, the rules applied on the server.

### Atlas
**Atlas — shapes across the whole Quran** places every verse as a point and shows where your word falls.

1. In **word to plot** type a word (for example الله) and click **Plot word**.
2. Choose the colour: words, letters, abjad or letters per word.
3. Tick overlays, then pick a view.

#### Overlays
**Fibonacci sizes**, **abjad divisible by 19** and **chapter bubbles (occurrences)**.

#### Views
Five views of the same data: **Chapter–verse map**, **Word positions**, **Occurrence timeline**, **Gap distances** and **3D** (drag to rotate).

### Fibonacci studies
**Fibonacci studies — runs of ≥ 3 consecutive** scans the whole Qurʾān for unbroken Fibonacci runs. Four tabs: **Consecutive verses**, **Consecutive words in verses**, **Cumulative sums** and **Fibonacci chapters**. Pick the measure (and chapter) and read the honesty note, which says what a "pattern" means here and how often it would happen by chance.

### Other tools on this page
**Or pick what you want to do** links to *Look up a passage*, *Compare two words*, *Explore perspectives* and *Study Al-Fātiḥah*. The **Al-Fatihah overview** card (button **Show Al-Fatihah overview**) puts the opening surah's numbers next to the classical sources, kept apart from numerical hypotheses; see [its panel](https://taaweel.snapkodex.com/docs/33-mizan-fatihah#overview-panel).

### What you'll get
A typical result for `surah:112`: counts of words and letters, the abjad total, a set of number checks (divisibility, Fibonacci, golden ratio), comparisons with the whole Qurʾān, and long-range statistics, each in its own row, each with its rule, base rate and evidence.

*Web version: https://taaweel.snapkodex.com/docs/30-mizan-lookup*

---

<a id="ch-31-mizan-compare"></a>

<!-- chapter: 31-mizan-compare | https://taaweel.snapkodex.com/docs/31-mizan-compare -->

## Mizan: Compare two words or phrases

**Compare** (`compare.html`, *muqāranah*) sets two Arabic words or phrases side by side: how often each appears, where, whether they appear together, and what that does and does not mean. Its address holds every setting, so **a copied link reproduces exactly what you saw**. See [Sharing](#sharing).

Open it at [/numerical_analysis/compare.html](https://taaweel.snapkodex.com/numerical_analysis/compare.html), or with an example already filled in: [نُور ↔ ظُلُمَٰت](https://taaweel.snapkodex.com/numerical_analysis/compare.html?p1=%D9%86%D9%8F%D9%88%D8%B1&p2=%D8%B8%D9%8F%D9%84%D9%8F%D9%85%D9%8E%D9%B0%D8%AA).

### Overview
Top to bottom the page has the **inputs**, a **status** line, two **side headings** with counts, an **insight** sentence, the **charts**, the **reading panel**, the **per-surah table** and the **counting rules**.

### Inputs
1. In **First word or phrase** type Arabic. A phrase matches the words in order with none between.
2. In **Second word or phrase** type the other side. **⇄** swaps the two.
3. Choose **Match mode**: *auto* (for a single word, its word family), *exact* or *normalized* (the bare surface form). See [Matching](https://taaweel.snapkodex.com/docs/34-mizan-counting-rules#matching).
4. Click **Compare**. *The page fills in below; prompts and errors appear in the status line under the buttons.*

#### Examples
Chips under the inputs fill both boxes: *نُور ↔ ظُلُمَٰت*, *ٱلرَّحْمَٰن ↔ ٱلرَّحِيم*, *فِي سَبِيلِ ٱللَّهِ ↔ ٱلْحَمْدُ لِلَّهِ*.

### Summary
The two side headings give each side's headline counts: occurrences, the number of surahs and the first and last place it appears.

### Insight
A plain-language line, "Reading the comparison …", states what the pair shows: for example which word is more spread out, and whether they co-occur more or less than chance. It is a reading of the numbers, not an interpretation of meaning.

### Charts
Five charts, each in a card with a **Link** button and view toggles. Chart ids (used in links): `surah-chart`, `timeline`, `gaps`, `surah-3d`, `quran-map`.

#### Per-surah chart
Occurrences per surah for both sides.

#### Corpus timeline
Where the words fall along the whole text, in order. The *per occurrence* toggle measures per occurrence instead of per surah.

#### Gaps between occurrences
Distances between successive appearances: evenly spread words have small, regular gaps; clustered words have a few large ones.

#### Per-surah occurrences in 3D
A rotatable version of the per-surah chart. Drag to rotate.

#### Whole-Quran even–odd circle
All 6,236 verses on one circle with your matches marked.

- The toolbar has **◀ match** and **match ▶** to jump between matches, **+**, **−** and **Fit all** to zoom, **Save PNG**, **Key** and **? How to read this**.
- **Go to** zooms to a verse (`2:255`), a surah (`18`) or a ring number (`#3000`).
- Sliders: **Zoom**, **Surah gap**, **Background**; selects **Detail** and **Colour**.

### Reading panel
Three tabs let you read what you matched, in context:

- **About**: *Spellings found*, *Same root, other forms* (tap one to compare with that form instead), *Often in the same verse* and **Read the first match →**.
- **Verse**: the verse being read.
- **Matches**: every match with its verse.

### Per-surah table
**Per-surah table** holds the data behind the charts. **CSV** and **JSON** buttons download it.

### Counting rules

At the bottom, **Counting rules (stated by the engine, verbatim)** shows the exact rules used for this comparison. See [Counting rules](https://taaweel.snapkodex.com/docs/34-mizan-counting-rules#principles).

### Sharing
The address bar is the state. Every option you set is written into the query string as you go; nothing is stored on the server.

| Parameter | Meaning |
|---|---|
| `p1`, `p2` | The first and second word or phrase (URL-encoded Arabic). |
| `mode` | Match mode: `auto` (default), `exact` or `normalized`. |
| `section` | Which section a link scrolls to and highlights: `summary`, `insight`, `surah-chart`, `timeline`, `gaps`, `surah-3d`, `quran-map`, `table` or `rules`. |
| `rtab`, `rf`, `rwbw`, `rfull` | The reading panel's tab and options. |
| `measure`, `shape`, `color`, `detail`, `num`, `split` | Chart display options. |
| `zi`, `zr`, `sx`, `sy`, `ss`, `gap`, `bg`, `mod` | Circle zoom, position and sliders. |
| `key`, `labels`, `rules` | Whether the key, labels and rules are open. |

Parameters at their default are left out to keep links short.

#### Copy a link to one section

1. Run a comparison.
2. Find the **Link** button in the corner of a section (**Copy link to this section**).
3. Click it. *The full link is copied, with `section=<id>` added, and "Link copied" confirms it.* If your browser blocks the clipboard, a prompt shows the link to copy by hand.

When someone opens such a link, the page re-runs the comparison, scrolls to the section and highlights it.

#### Links for people who are signed out

A link to Compare needs a sign-in. Someone who is signed out is taken to the landing page (its address carries the original link as `?next=`) and, after signing in or [registering](https://taaweel.snapkodex.com/docs/20-getting-started#sign-up), is brought back to the *same* link with every parameter intact. You can therefore paste a Compare link into a message to a colleague without worrying about whether they have an account yet.

*Web version: https://taaweel.snapkodex.com/docs/31-mizan-compare*

---

<a id="ch-32-mizan-perspectives"></a>

<!-- chapter: 32-mizan-perspectives | https://taaweel.snapkodex.com/docs/32-mizan-perspectives -->

## Mizan: Perspectives

**Perspectives** (`explore.html`, *zawāyā al-naẓar*) looks at one surah, or the whole Qurʾān, through one mathematical **lens** at a time: 24 lenses grouped by theme. Each lens states a question, shows a chart and tells you plainly what the result **does not** show.

Open [/numerical_analysis/explore.html](https://taaweel.snapkodex.com/numerical_analysis/explore.html).

### Overview
The page has, from the top: **Text to study**, **Measure each verse by**, the **Researcher** switch, the theme button, the **lens rail** at the left, then the lens header, controls, chart, tiles, insight and **five tabs**.

### Text to study
Use the **Text to study** select to pick a surah (or the whole Qurʾān); **‹** and **›** step to the previous or next surah (keys `[` and `]`). Every lens analyses this text.

### Measure each verse by
**words**, **letters** or **abjad**: what a verse's size means in lenses that use verse length.

### Choosing a lens
The **rail** lists lenses by group (mobile: a select). The header shows the lens's number, its group and **the question it asks**. Move with **← →** (lens) or the **pager** buttons.

| Group | Lenses |
|---|---|
| Begin here | `guide` Map of the Quran |
| Shape of the text | `terrain` The verse terrain · `lorenz` Inequality of verses · `chronology` Through the order of revelation |
| Memory & rhythm | `acf` Memory from verse to verse · `dfa` Long-range scaling (DFA) · `spectrum` Rhythms: spectrum and wavelets · `phase` Phase space · `rhyme` Verse endings (fawāṣil) |
| Vocabulary & information | `heaps` Vocabulary growth (Heaps) · `zipf` Zipf's law across surahs · `entropyrate` Entropy rate · `midecay` Long-range information · `markov` The letter chain |
| Words & surahs | `burstiness` How words spread · `keyness` What makes a surah distinctive · `space` Surah space |
| Numbers, honestly | `benford` Benford's law · `residues` Divisibility heaping |
| Shapes | `circle` The even–odd circle · `spiral` The shell spiral · `helix` The double helix · `silhouette` Triangles, diamonds and towers · `orbit` The verse orbit · `shapeboard` Shape scoreboard |

#### Lens controls
Each lens may have its own **controls** (for example a *Height* setting) under the header.

### The chart
A lens's chart sits in the chart card with a status line and a short help text. Under it:

#### Headline numbers
Tiles with the lens's key numbers.

#### Insight
One sentence reading the result. Some lenses add extra tables or notes.

### The five tabs
| Tab | Shows |
|---|---|
| **In plain words** | A non-technical explanation. |
| **The mathematics** | The formulas and parameters. |
| **How surprising is it?** | The comparison with chance; see [base rates](https://taaweel.snapkodex.com/docs/34-mizan-counting-rules#base-rates). |
| **What it does not show** | What the result cannot establish; see [honest limits](https://taaweel.snapkodex.com/docs/34-mizan-counting-rules#honest-limits). |
| **Data table** | The numbers behind the chart. |

Read **What it does not show** first if you are sceptical; it is the page's most important tab.

### Chart tools
The toolbar above the chart: a view selector, **⟲ Reset** (key `R`), **⤢** full screen (key `F`) and, on 3D lenses, camera presets **Iso / Front / Top / Side** and **⟳ Spin**.

#### Exporting
Click **PNG**, **SVG**, **CSV** or **JSON** to download the chart or its data.

#### Sharing
Click **Link**. *It copies an address of the form `explore.html#<lens id>?target=<surah>&measure=<words|letters|abjad>…` that opens exactly this lens and view.* Anyone who opens it, after signing in, sees what you saw. Example: [the terrain lens on surah 18](https://taaweel.snapkodex.com/numerical_analysis/explore.html#terrain?target=18&measure=words).

### Researcher mode
Tick **Researcher**. *The mathematics tab opens by default and an extra line shows the API call and the random seed behind the view.* It is for people who want to reproduce a figure.

### Theme
The moon/sun button switches light and dark.

### The lenses

Each lens has a section below. Its text is the question it asks. The data, tabs and limits are in the page itself.

#### Map of the Quran
Where to start. A guided map of the lenses and what each one is for.

#### The verse terrain
What is the landscape of verse lengths across a surah? Peaks and valleys of verse size.

#### Inequality of verses
How unequal are verse lengths? A Lorenz curve and Gini coefficient.

#### Through the order of revelation
Does anything change when surahs are placed in order of revelation rather than mushaf order?

#### Memory from verse to verse
Does a long verse tend to follow a long verse? Autocorrelation of verse lengths.

#### Long-range scaling (DFA)
Does the fluctuation of verse length show long-range memory?

#### Rhythms: spectrum and wavelets
Are there hidden periodicities in the verse lengths?

#### Phase space
How does each verse's size relate to the next, drawn as a path?

#### Verse endings (fawāṣil)
How are the rhyming endings of verses distributed?

#### Vocabulary growth (Heaps)
How fast does new vocabulary appear as the text goes on?

#### Zipf's law across surahs
Do word frequencies follow a power law in each surah?

#### Entropy rate
How predictable is each next letter?

#### Long-range information
How far apart can two letters be and still tell you about each other?

#### The letter chain
What does a letter-to-letter Markov chain of the text look like?

#### How words spread
Are words clustered in bursts, or spread evenly?

#### What makes a surah distinctive
Which words are characteristic of this surah against the rest?

#### Surah space
How close or far are surahs from one another by vocabulary?

#### Benford's law
Do the leading digits of the counts follow Benford's distribution?

#### Divisibility heaping
Do counts pile up on multiples of a number more than chance predicts?

#### The even–odd circle
All verses on one circle, coloured by parity of their size.

#### The shell spiral
The verses laid out along a spiral.

#### The double helix
A two-strand 3D view of verse sizes.

#### Triangles, diamonds and towers
Verse sizes as stacked silhouettes.

#### The verse orbit
Verse sizes as orbits around a centre.

#### Shape scoreboard
A comparison of all the shape lenses against random orderings, so you can see which "shapes" are ordinary.

*Web version: https://taaweel.snapkodex.com/docs/32-mizan-perspectives*

---

<a id="ch-33-mizan-fatihah"></a>

<!-- chapter: 33-mizan-fatihah | https://taaweel.snapkodex.com/docs/33-mizan-fatihah -->

## Mizan: Al-Fātiḥah

**Al-Fātiḥah** (`fatihah.html`, *sabʿan min al-mathānī*, "seven of the oft-repeated") is a guided workbench on the opening surah. It shares the layout of [Perspectives](https://taaweel.snapkodex.com/docs/32-mizan-perspectives): a rail of chapters, a chart toolbar, five tabs and a pager. What differs is the two settings that change how the seven verses are counted.

Open [/numerical_analysis/fatihah.html](https://taaweel.snapkodex.com/numerical_analysis/fatihah.html).

### Overview
A guided study of the seven oft-repeated verses. Start with the **Reading guide** chapter; it explains what each chapter asks. The workbench keeps what the classical sources say about the surah (Qurʾān 15:87; Bukhārī 4704; Muslim 395) separate from numerical hypotheses.

#### The overview panel on the Look-up page
On [Look up](https://taaweel.snapkodex.com/docs/30-mizan-lookup#tools) the card **Al-Fatihah overview** (button **Show Al-Fatihah overview**) gives the surah's numbers beside those classical sources. Expand **Why does Al-Fatihah have its own panel?** for the reasoning.

### How the 7 verses are numbered
Scholars number the verses of Al-Fātiḥah in two classical ways: **Kūfī** (the basmalah is verse 1) and **Madanī** (the basmalah is not counted as a verse, so the last verses divide differently). Choose one under **How the 7 verses are numbered**; every number on the page follows your choice.

### Vowel held before a pause
**Vowel held before a pause (beats)** chooses **2**, **4** or **6**: the length of the long vowel at a stop. Ḥafṣ recitation allows each. It matters for any chapter that measures sound or rhythm.

### Choosing a chapter
The **rail** (a select on a phone) lists chapters by group. The header shows the chapter's title and the question it asks. Use **← →** or the pager's previous and next buttons.

### The five tabs
Same as in Perspectives: **In plain words**, **The mathematics**, **How surprising is it?**, **What it does not show** and **Data table**. See [the tabs](https://taaweel.snapkodex.com/docs/32-mizan-perspectives#the-five-tabs).

### Chart tools
**Reset**, camera presets and **Spin** for 3D chapters, **PNG**, **SVG**, **CSV**, **JSON**, **Link** (copies a link to this exact chapter and settings) and full screen. Same buttons as in [Perspectives](https://taaweel.snapkodex.com/docs/32-mizan-perspectives#chart-tools).

### Researcher mode
Tick **Researcher** to show seeds, API calls, raw data and derivations.

### The chapters

#### Begin here

##### Reading guide
What each chapter asks and how to read it.

#### Structure

##### The shape of the surah
The surah's seven verses and their sizes drawn as a shape.

##### The fold
What the surah looks like folded on itself.

##### All 105 pairings
Every pair of the seven verses (105 in all) compared.

#### Repetition

##### Recurrence
Which letters and words repeat, and where.

##### Harmonics of repetition
The repetitions as a spectrum of rhythms.

#### Information

##### The information sphere
The surah's letters laid out by how much information they carry.

##### The entropy spectrum
How predictable the letters are at different scales.

##### Twenty-one present, seven absent
Which letters of the alphabet occur and which do not.

#### Sound

##### The path of the voice
The route the voice takes through the places of articulation.

##### The ṣifāt hypercube
The letters' phonetic attributes placed in a hypercube.

##### Rhythm and rhyme
How the verses end and move.

#### Network

##### The natural cut
Where a network of the surah's elements divides naturally.

##### Umm al-Kitāb
The surah's place in the whole as the "mother of the Book".

#### Research

##### Research lab
Pick a signal and test it yourself, with exports and the researcher details.

*Web version: https://taaweel.snapkodex.com/docs/33-mizan-fatihah*

---

<a id="ch-34-mizan-counting-rules"></a>

<!-- chapter: 34-mizan-counting-rules | https://taaweel.snapkodex.com/docs/34-mizan-counting-rules -->

## Mizan: counting rules and honesty principles

A number is a *measurement under stated rules*, not a proof of an interpretation. This chapter explains the promises behind every Mizan number and the settings that change them.

### The three promises
On the Look-up page the section **How Mizan counts — and why you can trust it** lists three promises. Every Mizan result is built on them.

1. **One fixed text.** Mizan uses one edition of the text, so a number cannot drift between runs (see below).
2. **Rules you can see.** The rule used for every number is shown beside it, and **Counting rules (stated by the engine, verbatim)** on the Compare page lists them in full.
3. **Honest limits.** When something cannot be counted under your rule, Mizan says so instead of inventing a value.

**Our honesty principle**, quoted on the Look-up page: a number is a measurement under stated rules, not proof of an interpretation. *What does this platform cover?* (the registry card) lists the analyses available.

#### One fixed text
Mizan analyses a fixed corpus: the Ḥafṣ ʿan ʿĀṣim recitation in Uthmani script. The line under the search box shows which edition is loaded. **Rules used** in the Calculation explorer lists the rules the server applies (for example how a shaddah is counted).

#### Honest limits
- **Not possible for this input (n) — show why** lists blocked analyses with the reason and what to change.
- The **Fibonacci honesty** note states what a "pattern" means in that study and how often it would arise by chance.
- Every Perspective has a tab **What it does not show**.

#### Base rates
An unusual number is only interesting if it is unusual *against what chance would produce*. Rows show **How surprising?** with a p-value and a base rate, and Perspectives has the tab **How surprising is it?**. Remember that if you test many patterns, some will look rare by luck: a small p-value for one hand-picked pattern is weak evidence.

#### Reproducibility
Each run has an id and records its rule. The JSON export includes both. Under **Advanced: reuse an exact run (idempotency key)** you can type a key: submitting the same key again returns the earlier run instead of recomputing, so two people can look at identical numbers.

### Settings: How we count
The **How we count** bar on the Look-up page has five numbered questions. The defaults suit most people.

#### Matching
**How should we find your word?** (single Arabic words only):

| Choice | Behaviour |
|---|---|
| **Smart match** | The word and its family (suffixes, articles). Default. |
| **Exact spelling only** | Only the same spelling, vowel marks included. |
| **Ignore vowel marks** | The same letters regardless of vowels. |
| **Same root** | Every word from the same root. |

On the Compare page, **Match mode** (*auto*, *exact*, *normalized*) is the same idea: auto is smart match for a single word; exact and normalized match the bare surface form.

#### Scope
**Where should we look?**

- **Just what I entered**
- **The matched words themselves**
- **The whole surah**
- **Compare with the whole Quran**

Wider scopes give wider numbers; a warning appears when the numbers are wider than your entry.

#### Counting unit
**What should we count?**

- **Words**
- **Letters — as written**
- **Letters — simplified**
- **All characters**

The unit changes totals dramatically (a diacritic is a "character" but not a letter). The rule is shown beside every result; compare totals under two units to see how much of a pattern depends on the counting choice.

#### Depth
**How deep should the analysis go?** *Quick overview*, *Word study*, *Research checks* or *Everything possible*. Deeper levels run more analyses and take longer.

### The methods
Each result row is one named analysis. The names you see are friendly; underneath each is a method id. The catalogue:

- **Verse vs. whole-Quran comparison**
- **Number of words**, **Number of letters**, **All characters (technical)**, **Different words**, **Different roots**
- **Most frequent words**, **Most frequent roots**, **Length summary**, **Length across verses**
- **Where it appears**, **Middle word**, **Gaps between appearances**, **Word-length series**, **Repeated words**
- **Fibonacci check**, **Golden ratio test**, **Golden section positions**, **Number properties**, **Divisibility by 19**
- **Abjad total**, **Letter variety**, **Word variety**, **Word frequency pattern**, **How common is this word**
- **Compressibility**, **Counting-rule comparison**, **Recitation timing**
- **Long-range memory (DFA)**, **Memory from verse to verse**, **Inequality of verse lengths**, **Vocabulary growth**
- **Verse endings**, **Benford's law**, **Characteristic words**, **Chaos analysis**, **Hidden rhythms (Fourier)**
- **Compare readings**, **Randomness comparison test**

Open any row to read its own explanation, its rule and its evidence.

*Web version: https://taaweel.snapkodex.com/docs/34-mizan-counting-rules*

---

<a id="ch-40-faq"></a>

<!-- chapter: 40-faq | https://taaweel.snapkodex.com/docs/40-faq -->

## Frequently asked questions

Real questions from scholars, students, researchers, scientists, newcomers and Mizan users, with short answers and a link to the full steps.

### Getting started

#### Do I need an account to read the documentation or see the features?
No. [/docs](https://taaweel.snapkodex.com/docs), [/features](https://taaweel.snapkodex.com/features), the legal pages and [/feedback](https://taaweel.snapkodex.com/feedback) are open to everyone. Research, Numerics, the ontology and Mizan need a free account. See [Sign up](https://taaweel.snapkodex.com/docs/20-getting-started#sign-up).

#### The verification email never arrived. What now?
Check your spam folder, then click **Send a new code** on the verification page. There is a 30-second wait between codes and at most 4 resends; the code expires after 10 minutes. If the address was wrong, click **Start over**. See [Verify your email](https://taaweel.snapkodex.com/docs/20-getting-started#verify-email).

#### Can I sign in with a username instead of an email?
Yes. The **Email or username** box accepts either; anything containing `@` is treated as an email address. See [Sign in](https://taaweel.snapkodex.com/docs/20-getting-started#sign-in).

#### Will I be charged for using Taaweel?
Creating an account is free. Research runs use a paid AI provider, so each account has a daily and monthly allowance and a limit on simultaneous runs, shown on your [account page](https://taaweel.snapkodex.com/docs/20-getting-started#usage). Numerics, the ontology and Mizan's counts use no AI and cost nothing against your allowance.

#### Is it safe to click around? Can I break something?
Nothing you do while reading, searching or browsing changes anything. The only destructive buttons are the trash icons (**Delete this run**, delete chat) and they ask you to confirm. See [Delete a run](https://taaweel.snapkodex.com/docs/21-research-runs#delete-a-run).

### Research

#### How do I ask a good question?
Start in a chat, not the dashboard. The Refiner asks clarifying questions and proposes tighter wording. Narrow, answerable-from-the-text questions work best. See [Refine and lock](https://taaweel.snapkodex.com/docs/21-research-runs#refine-and-lock).

#### What does "locked" mean, and can I change it later?
Locking freezes the wording the whole pipeline will research, so the report answers exactly the question you approved. To research different wording, start a new chat or fork with [Regenerate](https://taaweel.snapkodex.com/docs/21-research-runs#regenerate).

#### How long does a run take, and why is mine "queued"?
Runs wait for capacity in order; the page shows your position and an estimate and refreshes itself, so you can close the tab. See [Queue](https://taaweel.snapkodex.com/docs/21-research-runs#queue).

#### My run failed. Did I lose my money?
A failed stage is retried automatically, and stages that finished are never redone. Click **Retry failed stage now** to retry at once, or **Resume run** for a stopped run. See [Failures](https://taaweel.snapkodex.com/docs/21-research-runs#failures).

#### What do the `[E-n]` citations in the report mean?
Each chip points to one row of the evidence ledger: a verse, a tafsīr passage, a hadith, a lexicon entry or a comparison. Open the [pipeline trace](https://taaweel.snapkodex.com/docs/09-meta#evidence-ledger) to see the row.

#### How do I know the report didn't cherry-pick verses?
The pipeline trace lists every occurrence counted, every passage swept and every passage set aside, with scores. See [Provenance](https://taaweel.snapkodex.com/docs/09-meta).

#### Is the output a fatwā?
No. Taaweel is research assistance. Claims carry an epistemic status and an L-level on the claim-strength ladder, and nothing at the top of the ladder is given without checks. Read [Guardrails](https://taaweel.snapkodex.com/docs/07-guardrails) and the [disclaimer](https://taaweel.snapkodex.com/disclaimer).

#### Can I add my own source or paper?
Yes, through a role: **Evidence**, **Claim seed**, **Method** or **Research subject**. Nothing is trusted just because you attached it. See [File roles](https://taaweel.snapkodex.com/docs/22-chats-and-attachments#file-roles) and [Pasted empirical sources](https://taaweel.snapkodex.com/docs/22-chats-and-attachments#pasted-sources).

#### How do I audit a paper I wrote (or someone else wrote)?
Attach it as **Research subject**, then click **Audit this document**. See [Document audits](https://taaweel.snapkodex.com/docs/23-reports-and-audits#document-audits).

#### How do I test a scientific claim?
Ask a question with a physical referent, add an empirical source, then rebuild from *Referent trial*; the report's correspondence section and the audit's **Blind science check** separate what the text says from what science says. See [Rebuild](https://taaweel.snapkodex.com/docs/21-research-runs#rebuild).

#### How do I download a report?
Open it and use **Download markdown**, or use **Print or save as PDF**. To take everything, see [Export](https://taaweel.snapkodex.com/docs/23-reports-and-audits#export).

### Mizan

#### What is Mizan, and is it part of Taaweel?
Mizan is Taaweel's numerical-analysis tool. It opens from the sidebar, shares your sign-in and has its own pages. See [Mizan: Look up](https://taaweel.snapkodex.com/docs/30-mizan-lookup#overview).

#### Does Mizan prove anything about the Qurʾān?
No. A number is a measurement under stated rules, not proof of an interpretation. Every result shows its rule, its base rate and what it does *not* show. See [Principles](https://taaweel.snapkodex.com/docs/34-mizan-counting-rules#principles).

#### Why did my numbers change when I changed a setting?
Counting units and scope change totals. The rule is shown beside every number, so compare totals under two units to see how much a "pattern" depends on the counting choice. See [Settings](https://taaweel.snapkodex.com/docs/34-mizan-counting-rules#settings).

#### What does "Not possible for this input" mean?
That analysis cannot run under your input or rule, and Mizan says why instead of inventing a value. See [Honest limits](https://taaweel.snapkodex.com/docs/34-mizan-counting-rules#honest-limits).

#### How do I send someone the exact comparison I am looking at?
On Compare, click **Link** in the corner of a section, or copy the address bar: it holds every setting. If they are signed out, they are taken to sign in and then back to the same link. See [Sharing](https://taaweel.snapkodex.com/docs/31-mizan-compare#sharing).

#### Can I get the data behind a chart?
Yes: **CSV** and **JSON** buttons on Compare's table, **PNG / SVG / CSV / JSON** in the Perspectives toolbar, and the three downloads on the Look-up results. See [Exports](https://taaweel.snapkodex.com/docs/30-mizan-lookup#exports).

#### Which edition of the text does Mizan use?
One fixed edition (Ḥafṣ, Uthmani script), shown under the search box. See [One fixed text](https://taaweel.snapkodex.com/docs/34-mizan-counting-rules#fixed-text).

#### What is "Researcher mode"?
A switch on Perspectives and Al-Fātiḥah that opens the mathematics tab by default and shows the API call and seed behind each view. See [Researcher mode](https://taaweel.snapkodex.com/docs/32-mizan-perspectives#researcher-mode).

### Scholars and community

#### How do I register as an Ālim-e-Deen?
Fill the form at [/register/scholar](https://taaweel.snapkodex.com/register/scholar). Your orientation and contact number are visible to reviewers only. See [Scholar registration](https://taaweel.snapkodex.com/docs/20-getting-started#scholar-registration).

#### Where do I report a mistake in an answer?
[/feedback](https://taaweel.snapkodex.com/feedback), category *Answer / research output*, *Methodology* or *Sources & citations*. See [Feedback](https://taaweel.snapkodex.com/docs/20-getting-started#feedback).

#### Who built Taaweel?
The people and organisations who contributed, and how they contributed, are named on the [Credits](https://taaweel.snapkodex.com/credits) page.

### Using the documentation

#### How do I search these docs?
Press `/` or `Ctrl`+`K` anywhere in the docs and type. Results link to the exact section.

#### Can I download all the docs as one file?
Yes. [taaweel-docs.md](https://taaweel.snapkodex.com/docs/taaweel-docs.md) contains every chapter in order with a table of contents and absolute links, and the Download button on the docs landing page fetches the same file.

*Web version: https://taaweel.snapkodex.com/docs/40-faq*

---
