Taaweel docs Open PerspectivesOpen app
On this page
  1. Overview
  2. Text to study
  3. Measure each verse by
  4. Choosing a lens
  5. Lens controls
  6. The chart
  7. Headline numbers
  8. Insight
  9. The five tabs
  10. Chart tools
  11. Exporting
  12. Sharing
  13. Researcher mode
  14. Theme
  15. The lenses
  16. Map of the Quran
  17. The verse terrain
  18. Inequality of verses
  19. Through the order of revelation
  20. Memory from verse to verse
  21. Long-range scaling (DFA)
  22. Rhythms: spectrum and wavelets
  23. Phase space
  24. Verse endings (fawāṣil)
  25. Vocabulary growth (Heaps)
  26. Zipf's law across surahs
  27. Entropy rate
  28. Long-range information
  29. The letter chain
  30. How words spread
  31. What makes a surah distinctive
  32. Surah space
  33. Benford's law
  34. Divisibility heaping
  35. The even–odd circle
  36. The shell spiral
  37. The double helix
  38. Triangles, diamonds and towers
  39. The verse orbit
  40. Shape scoreboard

Mizan: Perspectives

Open Perspectives Raw Markdown Download all docs (one file)

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 (opens in the app; sign-in required).

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.

GroupLenses
Begin hereguide Map of the Quran
Shape of the textterrain The verse terrain · lorenz Inequality of verses · chronology Through the order of revelation
Memory & rhythmacf Memory from verse to verse · dfa Long-range scaling (DFA) · spectrum Rhythms: spectrum and wavelets · phase Phase space · rhyme Verse endings (fawāṣil)
Vocabulary & informationheaps Vocabulary growth (Heaps) · zipf Zipf's law across surahs · entropyrate Entropy rate · midecay Long-range information · markov The letter chain
Words & surahsburstiness How words spread · keyness What makes a surah distinctive · space Surah space
Numbers, honestlybenford Benford's law · residues Divisibility heaping
Shapescircle 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

TabShows
In plain wordsA non-technical explanation.
The mathematicsThe formulas and parameters.
How surprising is it?The comparison with chance; see base rates.
What it does not showWhat the result cannot establish; see honest limits.
Data tableThe 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 (opens in the app; sign-in required).

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.