Taaweel docs Open CompareOpen app
On this page
  1. Overview
  2. Inputs
  3. Examples
  4. Summary
  5. Insight
  6. Charts
  7. Per-surah chart
  8. Corpus timeline
  9. Gaps between occurrences
  10. Per-surah occurrences in 3D
  11. Whole-Quran even–odd circle
  12. Reading panel
  13. Per-surah table
  14. Counting rules
  15. Sharing
  16. Copy a link to one section
  17. Links for people who are signed out

Mizan: Compare two words or phrases

Open Compare Raw Markdown Download all docs (one file)

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.

Open it at /numerical_analysis/compare.html (opens in the app; sign-in required), or with an example already filled in: نُور ↔ ظُلُمَٰت (opens in the app; sign-in required).

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.
  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.

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.

ParameterMeaning
p1, p2The first and second word or phrase (URL-encoded Arabic).
modeMatch mode: auto (default), exact or normalized.
sectionWhich section a link scrolls to and highlights: summary, insight, surah-chart, timeline, gaps, surah-3d, quran-map, table or rules.
rtab, rf, rwbw, rfullThe reading panel's tab and options.
measure, shape, color, detail, num, splitChart display options.
zi, zr, sx, sy, ss, gap, bg, modCircle zoom, position and sliders.
key, labels, rulesWhether the key, labels and rules are open.

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

  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.

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, 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.