isnady 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +524 -32
- package/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,70 +1,562 @@
|
|
|
1
|
+
<!-- generated from README.md by tools/sync_readme.py — edit README.md, not this file -->
|
|
1
2
|
<h1 align="center">📜 isnady <sub>إسناد</sub></h1>
|
|
2
3
|
|
|
3
4
|
<p align="center">
|
|
4
5
|
<strong>Hadith search built around the isnad, the chain of transmission</strong><br>
|
|
5
|
-
<sub>
|
|
6
|
+
<sub>Search the collections, read every chain narrator by narrator, and see how the scholars read it</sub>
|
|
6
7
|
</p>
|
|
7
8
|
|
|
8
9
|
<p align="center">
|
|
10
|
+
<a href="https://pypi.org/project/isnady/">
|
|
11
|
+
<img src="https://img.shields.io/pypi/v/isnady?style=for-the-badge&color=1D4777&logo=pypi&logoColor=white" alt="PyPI">
|
|
12
|
+
</a>
|
|
13
|
+
<img src="https://img.shields.io/pypi/pyversions/isnady?style=for-the-badge&color=A47E24&logo=python&logoColor=white" alt="Python">
|
|
14
|
+
<img src="https://img.shields.io/badge/Platform-Windows%20%7C%20Linux%20%7C%20macOS-5B6878?style=for-the-badge" alt="Platform">
|
|
9
15
|
<a href="https://www.npmjs.com/package/isnady">
|
|
10
16
|
<img src="https://img.shields.io/npm/v/isnady?style=for-the-badge&color=14304F&logo=npm&label=npm" alt="npm">
|
|
11
17
|
</a>
|
|
12
|
-
<a href="https://pypi.org/project/isnady/">
|
|
13
|
-
<img src="https://img.shields.io/pypi/v/isnady?style=for-the-badge&color=1D4777&logo=pypi&logoColor=white&label=app%20on%20PyPI" alt="PyPI">
|
|
14
|
-
</a>
|
|
15
18
|
<img src="https://img.shields.io/badge/License-MIT-D6B25E?style=for-the-badge" alt="License">
|
|
16
19
|
</p>
|
|
17
20
|
|
|
18
21
|
<p align="center">
|
|
19
|
-
<
|
|
22
|
+
<a href="#-why-isnady">Why</a> •
|
|
23
|
+
<a href="#-install">Install</a> •
|
|
24
|
+
<a href="#-quick-start">Quick Start</a> •
|
|
25
|
+
<a href="#-search">Search</a> •
|
|
26
|
+
<a href="#-narrators">Narrators</a> •
|
|
27
|
+
<a href="#-hadith-scholars">Scholars</a> •
|
|
28
|
+
<a href="#-books">Books</a> •
|
|
29
|
+
<a href="#-shia-rijal">Shia Rijal</a> •
|
|
30
|
+
<a href="#-search-by-meaning-ai">Meaning (AI)</a> •
|
|
31
|
+
<a href="#-chains-of-transmission">Chains</a> •
|
|
32
|
+
<a href="#-educational-by-design">Educational</a> •
|
|
33
|
+
<a href="#-appearance">Appearance</a> •
|
|
34
|
+
<a href="#-data-and-licences">Data</a> •
|
|
35
|
+
<a href="#%EF%B8%8F-cli">CLI</a> •
|
|
36
|
+
<a href="#-screenshots">Screenshots</a> •
|
|
37
|
+
<a href="#%EF%B8%8F-roadmap">Roadmap</a>
|
|
20
38
|
</p>
|
|
21
39
|
|
|
40
|
+
<p align="center">
|
|
41
|
+
<img src="https://raw.githubusercontent.com/bayramkotan/isnady/main/assets/screenshots/search-arabic.png" alt="Searching النيات finds بالنيات in Sahih al-Bukhari 1, with the chain above the text" width="850">
|
|
42
|
+
</p>
|
|
43
|
+
|
|
44
|
+
> **Pre-alpha (0.1.2).** Search and chains of transmission work today, on data you import
|
|
45
|
+
> in one command. Narrators, scholars, gradings and the rest are being built, in the open.
|
|
46
|
+
|
|
22
47
|
---
|
|
23
48
|
|
|
24
|
-
## 🧭 Where things stand
|
|
25
49
|
|
|
26
|
-
**
|
|
27
|
-
|
|
28
|
-
|
|
50
|
+
> **About this npm package.** `npm install isnady` installs a small JavaScript library that will grow into
|
|
51
|
+
> isnady's API for the web (isnady.net); it does **not** install the isnady application. The application is
|
|
52
|
+
> installed with Python (`pip install isnady`, or the one-line installers below) or downloaded as a desktop
|
|
53
|
+
> app from the [GitHub Releases](https://github.com/bayramkotan/isnady/releases/latest) page. The npm package
|
|
54
|
+
> always carries the same version number as the application.
|
|
55
|
+
>
|
|
56
|
+
> ```js
|
|
57
|
+
> import { info, version } from "isnady";
|
|
58
|
+
> console.log(version); // the isnady version, the same as on PyPI and GitHub
|
|
59
|
+
> console.log(info()); // { name, version, dataLoaded, homepage }
|
|
60
|
+
> ```
|
|
61
|
+
|
|
62
|
+
## 🎯 Why isnady
|
|
63
|
+
|
|
64
|
+
A hadith is two things: the text (*matn*) and the chain of people who passed it on
|
|
65
|
+
(*isnad*). Most hadith sites let you search the text and show a grade. isnady is built
|
|
66
|
+
the other way round: the chain comes first, because that is where the scholars of hadith
|
|
67
|
+
did their work.
|
|
68
|
+
|
|
69
|
+
- **The chain is read, not typed in.** isnady reads the chain from the Arabic text itself:
|
|
70
|
+
who narrated to whom, with which words, and whether it reaches the Prophet.
|
|
71
|
+
- **Nothing is guessed.** Where the wording cannot be read with confidence, the chain is
|
|
72
|
+
kept whole and marked, never split wrongly. A missing link is shown as missing.
|
|
73
|
+
- **Every fact has a source.** Every hadith, text and grade records where it came from,
|
|
74
|
+
under which licence.
|
|
75
|
+
- **Grades are shown as the scholars gave them.** Each grade keeps its scholar's name and
|
|
76
|
+
wording; isnady does not merge them or invent its own.
|
|
77
|
+
- **Window and command line, same engine.** Everything the window does, the command line
|
|
78
|
+
does too, with the same results.
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
## 📦 Install
|
|
83
|
+
|
|
84
|
+
### Desktop application
|
|
85
|
+
|
|
86
|
+
Download isnady for your system from the **[latest release](https://github.com/bayramkotan/isnady/releases/latest)** —
|
|
87
|
+
everything included, the AI features too:
|
|
88
|
+
|
|
89
|
+
| System | File |
|
|
90
|
+
|---|---|
|
|
91
|
+
| Windows 10/11 | `isnady-<version>-windows-setup.exe` — Windows may say the publisher is unknown (the app is not signed): *More info → Run anyway* |
|
|
92
|
+
| Linux | `isnady-<version>-linux-x86_64.AppImage` — make it executable (`chmod +x`) and run it |
|
|
93
|
+
| macOS, Apple silicon / Intel | `isnady-<version>-macos-arm64.dmg` / `…-macos-x86_64.dmg` — the first time, right-click the app and choose *Open* (it is not notarized) |
|
|
94
|
+
|
|
95
|
+
Put isnady on the desktop and in the applications menu with **Tools → Create Desktop Shortcut** (or
|
|
96
|
+
`iy shortcut`): the shortcut starts isnady the way it is installed — the AppImage, the application, or the
|
|
97
|
+
`isnady-gui` command of a Python install.
|
|
98
|
+
|
|
99
|
+
### With Python
|
|
100
|
+
|
|
101
|
+
One line, on any system. Install isnady wherever you like — for all users, for yourself, in a
|
|
102
|
+
virtual environment, with pipx: the same line installs it, and later updates every copy where it
|
|
103
|
+
is, asking for administrator rights only when a copy needs them. Nothing is ever removed.
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
# Linux and macOS
|
|
107
|
+
curl -fsSL https://raw.githubusercontent.com/bayramkotan/isnady/main/install.sh | bash
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
```powershell
|
|
111
|
+
# Windows (PowerShell)
|
|
112
|
+
irm https://raw.githubusercontent.com/bayramkotan/isnady/main/install.ps1 | iex
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
Or with pip:
|
|
29
116
|
|
|
30
117
|
```bash
|
|
31
118
|
pip install isnady
|
|
32
|
-
iy
|
|
119
|
+
isnady # or the short name: iy
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
Run inside a clone of this repository, the installer makes an editable (developer) install of
|
|
123
|
+
that clone instead.
|
|
124
|
+
|
|
125
|
+
The same program answers to several names: **`iy`** to type, **`isnady`** to read, and
|
|
126
|
+
`isnady-cli` kept from the first releases. Without arguments it opens the window; with
|
|
127
|
+
arguments it is the command line. On Windows, **`isnady-gui`** opens the window without a
|
|
128
|
+
console.
|
|
129
|
+
|
|
130
|
+
<details>
|
|
131
|
+
<summary><b>🐧 On Linux, pip may refuse to install</b></summary>
|
|
132
|
+
<br>
|
|
133
|
+
|
|
134
|
+
Most current distributions mark the system Python as *externally managed* (PEP 668), so a
|
|
135
|
+
plain `pip install` stops with `error: externally-managed-environment`. Two ways around it:
|
|
136
|
+
|
|
137
|
+
```bash
|
|
138
|
+
# Isolated — recommended, no system packages touched
|
|
139
|
+
pipx install isnady
|
|
140
|
+
|
|
141
|
+
# Into your user site — needs the override flag
|
|
142
|
+
pip install isnady --break-system-packages --no-cache-dir -U
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
</details>
|
|
146
|
+
|
|
147
|
+
### Something not right?
|
|
148
|
+
|
|
149
|
+
`iy update` updates every copy of isnady where it is installed. `iy doctor` lists every copy and
|
|
150
|
+
which one each command really starts — an older copy in the user folder can start before a newer
|
|
151
|
+
one elsewhere, so every copy is kept at the same version. The same report is under
|
|
152
|
+
**Help → Check Installation**. If an old copy starts even for `iy update`, run
|
|
153
|
+
`python3 -s -m isnady update` (Windows: `py -s -m isnady update`).
|
|
154
|
+
|
|
155
|
+
### Upgrading
|
|
156
|
+
|
|
157
|
+
```bash
|
|
158
|
+
iy update
|
|
33
159
|
```
|
|
34
160
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
chain read on the web and in the app always gives the same answer. Until that service
|
|
38
|
-
exists, the package only reports its version:
|
|
161
|
+
Your data stays where it is; a newer isnady upgrades the database in place the first time
|
|
162
|
+
it opens it.
|
|
39
163
|
|
|
40
|
-
|
|
41
|
-
|
|
164
|
+
---
|
|
165
|
+
|
|
166
|
+
## 🚀 Quick Start
|
|
167
|
+
|
|
168
|
+
isnady ships without hadith data: you choose the sources. One command brings in Sahih
|
|
169
|
+
al-Bukhari and Sunan Abi Dawud in Arabic and Turkish from the open
|
|
170
|
+
[fawazahmed0/hadith-api](https://github.com/fawazahmed0/hadith-api) collection (public
|
|
171
|
+
domain):
|
|
42
172
|
|
|
43
|
-
|
|
44
|
-
|
|
173
|
+
```bash
|
|
174
|
+
iy import fawazahmed0 https://cdn.jsdelivr.net/gh/fawazahmed0/hadith-api@1/editions.json \
|
|
175
|
+
--book bukhari --book abudawud --language ara --language tur --license Unlicense
|
|
45
176
|
```
|
|
46
177
|
|
|
47
|
-
|
|
178
|
+
Or open the window with `iy` and choose **File → Data Sources**: every built-in collection
|
|
179
|
+
(al-Bukhari, Muslim, Abu Dawud, al-Tirmidhi, al-Nasa'i, Ibn Maja, the Muwatta and three
|
|
180
|
+
forty-hadith books) and the Taqrib import with one click — or **Import all** — in the
|
|
181
|
+
languages you tick. You can add your own files or links there too, and move the data
|
|
182
|
+
folder anywhere you like.
|
|
183
|
+
|
|
184
|
+
On the command line:
|
|
185
|
+
|
|
186
|
+
```bash
|
|
187
|
+
iy search النيات # Arabic, with or without diacritics
|
|
188
|
+
iy search "niyetlere göre" # Turkish, English, any imported language
|
|
189
|
+
iy chain bukhari 1 # one chain, narrator by narrator
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
Importing takes a minute or two; the search index and the chains are built as part of it.
|
|
193
|
+
|
|
194
|
+
To identify the narrators in those chains, add Ibn Hajar's *Taqrib al-Tahdhib* — 8,824
|
|
195
|
+
narrators with his verdict on each — from the [OpenITI](https://github.com/OpenITI) corpus:
|
|
196
|
+
|
|
197
|
+
```bash
|
|
198
|
+
iy import taqrib https://raw.githubusercontent.com/OpenITI/0875AH/master/data/0852IbnHajarCasqalani/0852IbnHajarCasqalani.TaqribTahdhib/0852IbnHajarCasqalani.TaqribTahdhib.JK000121-ara1.completed
|
|
199
|
+
iy narrator الزهري
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
---
|
|
203
|
+
|
|
204
|
+
## 🔎 Search
|
|
205
|
+
|
|
206
|
+
| | |
|
|
207
|
+
|:--|:--|
|
|
208
|
+
| **Arabic without diacritics** | `الاعمال` finds `الأَعْمَالُ`. Alef forms, alef maqsura, hamza seats and ta marbuta are treated alike, so you type the way you normally write |
|
|
209
|
+
| **Attached prefixes** | `النيات` finds `بالنيات`, because Arabic joins bi-, wa-, fa- and al- to the word. *Whole words only* turns this off |
|
|
210
|
+
| **Latin-script text** | Case and accents are ignored: `NIYET`, `niyet` and `nîyet` are one word; `Muʿādh`, `Mu'adh` and `Muadh` too |
|
|
211
|
+
| **Match** | All words, any word, or the exact phrase |
|
|
212
|
+
| **Filters** | Book and language; the language filter also chooses which translations appear |
|
|
213
|
+
| **Grades** | Shown under each hadith with the scholar's name, exactly as given |
|
|
214
|
+
| **Highlighting** | On the original, diacritised text, diacritics included |
|
|
215
|
+
|
|
216
|
+
Results appear at once and fill in as you read; the window never waits for them.
|
|
217
|
+
|
|
218
|
+
### 👥 Narrators
|
|
219
|
+
|
|
220
|
+
The **Narrators** page lists every narrator of the imported rijal work — 8,824 from Ibn
|
|
221
|
+
Hajar's *Taqrib* — searchable in Arabic or in Latin letters (`Abu Hurayra`, `Zuhri`, `Ibn Umar`),
|
|
222
|
+
and filtered by tabaqa, rank and book. For each narrator: Ibn Hajar's verdict and its rank, the
|
|
223
|
+
tabaqa and death year, the books his hadith appear in, **whom he narrates from and who
|
|
224
|
+
narrates from him** in the imported chains, the compilers who narrate from him directly, and
|
|
225
|
+
every hadith whose chain includes him. On the Isnad Chains page a click on a narrator's name
|
|
226
|
+
opens him here.
|
|
227
|
+
|
|
228
|
+
Each narrator — and each scholar — is shown by the name he is **known by** (al-A'mash, Ibn 'Umar,
|
|
229
|
+
Abu Hurayra), with his full name and every part of it laid out: name, lineage, kunya, by-name,
|
|
230
|
+
nisbas, client of; the part he is known by is marked ★.
|
|
48
231
|
|
|
49
|
-
|
|
232
|
+
<p align="center">
|
|
233
|
+
<img src="https://raw.githubusercontent.com/bayramkotan/isnady/main/assets/screenshots/narrators.png" alt="Narrators — 'Abdullah b. 'Umar: Ibn Hajar's verdict, tabaqa, death year, teachers and students in the chains" width="850">
|
|
234
|
+
</p>
|
|
235
|
+
|
|
236
|
+
### 🎓 Hadith Scholars
|
|
50
237
|
|
|
51
|
-
|
|
52
|
-
|
|
238
|
+
The scholars whose work is in the imported data, and what the data measures of it:
|
|
239
|
+
**compilers** (their collection, the teachers their chains begin with, the Companions they end
|
|
240
|
+
with), **graders** (how they grade, and how far they agree with each other on the same hadith —
|
|
241
|
+
agreement, Cohen's kappa, and a strictness index: the classical *mutashaddid* / *mutasahil*,
|
|
242
|
+
measured), and **critics** of narrators (Ibn Hajar's twelve ranks). On Sunan Abi Dawud, for
|
|
243
|
+
example, Zubair 'Ali Za'i grades most strictly (−0.21) and agrees with al-Albani on 70% of the
|
|
244
|
+
hadith; the page also flags a pair of graders whose 98% agreement suggests the source did not keep
|
|
245
|
+
them independent.
|
|
246
|
+
|
|
247
|
+
<p align="center">
|
|
248
|
+
<img src="https://raw.githubusercontent.com/bayramkotan/isnady/main/assets/screenshots/scholars.png" alt="Hadith Scholars — al-Albani: his grades on Sunan Abi Dawud and his agreement with the other graders" width="850">
|
|
249
|
+
</p>
|
|
53
250
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
251
|
+
### 📚 Books
|
|
252
|
+
|
|
253
|
+
isnady is not only for searching: the **Books** section opens every imported work and reads it in
|
|
254
|
+
its own order. A hadith collection reads chapter by chapter, each hadith with its card (chain,
|
|
255
|
+
narrators, other narrations, grades) and the languages you choose; Ibn Hajar's *Taqrib* reads
|
|
256
|
+
letter by letter and name by name, each entry with its narrator a click away. Find within a
|
|
257
|
+
chapter, go to the previous or next one, and isnady remembers where you were. From any search
|
|
258
|
+
result, **In its book** opens the hadith where it stands, among the hadith of its chapter.
|
|
259
|
+
|
|
260
|
+
Books are not tied to hadith collections: a work is a tree of any depth (volume, book, chapter,
|
|
261
|
+
section) whose leaves are hadith, narrators' entries or paragraphs — so the commentaries, manuals
|
|
262
|
+
of fiqh and other works of the scholars can be read the same way as they are added.
|
|
263
|
+
|
|
264
|
+
<p align="center">
|
|
265
|
+
<img src="https://raw.githubusercontent.com/bayramkotan/isnady/main/assets/screenshots/books.png" alt="Books — reading Sahih al-Bukhari chapter by chapter, Arabic and Turkish, each hadith with its chain" width="850">
|
|
266
|
+
</p>
|
|
267
|
+
|
|
268
|
+
```bash
|
|
269
|
+
iy book # the books
|
|
270
|
+
iy book bukhari # its chapters
|
|
271
|
+
iy book bukhari 2 --language Turkish
|
|
272
|
+
iy book taqrib 1
|
|
57
273
|
```
|
|
58
274
|
|
|
59
|
-
|
|
60
|
-
|
|
275
|
+
### 🕌 Shia Rijal
|
|
276
|
+
|
|
277
|
+
The Imami tradition's judgments on narrators, on its own terms: al-Najashi's *Rijal* — 1,266
|
|
278
|
+
authors and narrators — read along the two axes of the Imami critics, **reliability** (thiqa;
|
|
279
|
+
praised — *jalil*, *wajh*, *'ayn*; weak) and **creed** (Imami, or Waqifi, Fathi, Zaydi, *'ammi* …),
|
|
280
|
+
which together give the classical four: an Imami *thiqa*, a praised narrator (*mamduh*), a *thiqa*
|
|
281
|
+
of another school (*muwaththaq*), a weak one. The critic's own words are always shown; a creed he
|
|
282
|
+
does not state stays unknown; nothing is mapped onto Ibn Hajar's twelve ranks. Checked on four
|
|
283
|
+
blind samples of entries, each round's misses corrected. The book itself reads in **Books**, and
|
|
284
|
+
the Shia narrators are kept apart from the (Sunni) chains: no chain link is matched to them.
|
|
285
|
+
|
|
286
|
+
<p align="center">
|
|
287
|
+
<img src="https://raw.githubusercontent.com/bayramkotan/isnady/main/assets/screenshots/shia-rijal.png" alt="Shia Rijal — al-Najashi on 'Ali b. al-Husayn b. Babawayh: his words and their reading on the Imami scale" width="850">
|
|
288
|
+
</p>
|
|
289
|
+
|
|
290
|
+
Next: al-Tusi's *Rijal* and *Fihrist*, al-'Allama al-Hilli's *Khulasat al-aqwal*, Ibn Dawud's
|
|
291
|
+
*Rijal*, al-Kashshi's reports, and the Four Books with their chains.
|
|
292
|
+
|
|
293
|
+
### 🧠 Search by meaning (AI)
|
|
61
294
|
|
|
62
|
-
|
|
295
|
+
Choose **Match → By meaning (AI)** to find hadith that say the same thing in other words or in
|
|
296
|
+
another language: `komşu hakları` finds the hadith on the neighbour's rights, a Turkish sentence
|
|
297
|
+
finds its Arabic original, and `إنما الأعمال بالنيات` gathers the narrations of the hadith on
|
|
298
|
+
intentions from every imported book. Each result shows how close it is in meaning (0–1), which
|
|
299
|
+
says nothing about authenticity.
|
|
63
300
|
|
|
64
|
-
|
|
65
|
-
-
|
|
66
|
-
|
|
301
|
+
The model is learnt on your computer from the texts you imported — Arabic beside its
|
|
302
|
+
translations is a parallel corpus, and cross-lingual latent semantic analysis learns the
|
|
303
|
+
concepts the languages share. Nothing is downloaded and no outside model is used. Measured on
|
|
304
|
+
al-Bukhari and Abu Dawud: for hadith the model never saw while learning, a Turkish translation
|
|
305
|
+
finds its Arabic original first 68% of the time and among the first ten 93% of the time (chance:
|
|
306
|
+
0.8%). For an exact quotation the ordinary word search stays the better tool.
|
|
307
|
+
|
|
308
|
+
The same step finds the **other narrations of each hadith** across the imported books
|
|
309
|
+
(takhrij): every result card says where else it is narrated — *Also narrated in: Sahih
|
|
310
|
+
al-Bukhari 5070 · 6689 · 6953 | Sunan Abi Dawud 2201* — and each number opens that hadith.
|
|
311
|
+
Only the texts are compared, never the chains; upright numbers share the text, italic ones
|
|
312
|
+
probably report the same event from the same Companion. In blind, hand-checked samples 34 of
|
|
313
|
+
35 pairs of the first kind and 18 of 20 of the second were right.
|
|
314
|
+
|
|
315
|
+
```bash
|
|
316
|
+
pip install "isnady[ai]" # numpy and scipy
|
|
317
|
+
iy ai build # a few seconds; or Tools → Build AI Indexes
|
|
318
|
+
iy search --mode meaning "komşu hakları"
|
|
319
|
+
iy tahric bukhari 1 # the other narrations of a hadith
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
---
|
|
323
|
+
|
|
324
|
+
## 🔗 Chains of transmission
|
|
325
|
+
|
|
326
|
+
Every Arabic text is read for its chain:
|
|
327
|
+
|
|
328
|
+
```
|
|
329
|
+
Sahih al Bukhari 1
|
|
330
|
+
1. حدثنا (narrated to us) الْحُمَيْدِيُّ عَبْدُ اللَّهِ بْنُ الزُّبَيْرِ
|
|
331
|
+
2. حدثنا (narrated to us) سُفْيَانُ
|
|
332
|
+
3. حدثنا (narrated to us) يَحْيَى بْنُ سَعِيدٍ الْأَنْصَارِيُّ
|
|
333
|
+
4. أخبرني (informed me) مُحَمَّدُ بْنُ إِبْرَاهِيمَ التَّيْمِيُّ
|
|
334
|
+
5. سمع (heard) عَلْقَمَةَ بْنَ وَقَّاصٍ اللَّيْثِيَّ
|
|
335
|
+
6. سمعت (I heard) عُمَرَ بْنَ الْخَطَّابِ
|
|
336
|
+
-> the Prophet
|
|
337
|
+
```
|
|
338
|
+
|
|
339
|
+
In the window, each result shows its chain as a row of names ending at the Prophet, and
|
|
340
|
+
**View chain** opens it as a timeline from the book to the Prophet, with the Arabic text
|
|
341
|
+
below: the chain in lighter ink, the text of the hadith in full ink.
|
|
342
|
+
|
|
343
|
+
### 👤 Who each narrator is
|
|
344
|
+
|
|
345
|
+
With Ibn Hajar's *Taqrib al-Tahdhib* imported, every name in a chain is matched to a
|
|
346
|
+
narrator, and the chain shows what Ibn Hajar says of him: his verdict in his own words, its
|
|
347
|
+
rank on Ibn Hajar's twelve-step scale, the narrator's *tabaqa* (generation) and his death
|
|
348
|
+
year.
|
|
349
|
+
|
|
350
|
+
A name is linked only when the evidence leaves one person: the words of the name, the book
|
|
351
|
+
marks (a narrator in al-Bukhari must be one Ibn Hajar marks خ), the order of generations
|
|
352
|
+
along the chain, and the last link before the Prophet being a Companion. When several
|
|
353
|
+
narrators remain — "Sufyan" can be al-Thawri or Ibn 'Uyayna — the chain says so and names
|
|
354
|
+
how many, rather than choosing one. Today about half of all names are identified; in blind,
|
|
355
|
+
hand-checked samples of the identified ones, the last fifty were all correct.
|
|
356
|
+
|
|
357
|
+
Names are kept exactly as written, with the clarifications the compilers added
|
|
358
|
+
(*"— yaʿnī Ibn Muḥammad —"*, *"mawlā Ibn ʿAbbās"*), because identifying each narrator is
|
|
359
|
+
a separate step that comes next.
|
|
360
|
+
|
|
361
|
+
<details>
|
|
362
|
+
<summary><b>📊 How well it reads today</b></summary>
|
|
363
|
+
<br>
|
|
364
|
+
|
|
365
|
+
Measured on Sahih al-Bukhari and Sunan Abi Dawud (12,852 chains):
|
|
366
|
+
|
|
367
|
+
| | Bukhari | Abu Dawud | Both |
|
|
368
|
+
|:--|:--:|:--:|:--:|
|
|
369
|
+
| Split into narrators | 85.5% | 71.9% | 79.9% |
|
|
370
|
+
| Of those, reaching the Prophet | | | 78.3% |
|
|
371
|
+
| Narrators per chain | | | 5.0 |
|
|
372
|
+
|
|
373
|
+
In a blind, hand-checked sample of 30 chains: **no wrong narrator**, 27 complete.
|
|
374
|
+
|
|
375
|
+
The rest are kept whole, each with its reason: *tahwil* (ح, a second chain joining), two
|
|
376
|
+
teachers at one link (*qiran*), a second chain after the first, or wording that could not be
|
|
377
|
+
read with confidence. Abu Dawud uses *qiran* and *tahwil* far more often than Bukhari, which
|
|
378
|
+
is why its share is lower. One known limit: a last narrator introduced only by *qāla*
|
|
379
|
+
("قال قال عبد الله") is not added, because the same words also begin stories.
|
|
380
|
+
|
|
381
|
+
</details>
|
|
382
|
+
|
|
383
|
+
---
|
|
384
|
+
|
|
385
|
+
## 🎓 Educational by Design
|
|
386
|
+
|
|
387
|
+
isnady teaches the science it uses. Every transmission term in a chain explains itself:
|
|
388
|
+
|
|
389
|
+
| Term | Reads | What the critics took it to mean |
|
|
390
|
+
|:--:|:--|:--|
|
|
391
|
+
| حدثنا | narrated to us | The teacher recited it to a group: heard directly |
|
|
392
|
+
| حدثني | narrated to me | Recited to the narrator alone: heard directly |
|
|
393
|
+
| أخبرنا | informed us | Often a text read back to the teacher (*ʿarḍ*) |
|
|
394
|
+
| أنبأنا | told us | Later often transmission by permission (*ijāza*) |
|
|
395
|
+
| سمعت | I heard | Direct hearing, stated explicitly |
|
|
396
|
+
| قرأت على | I read to | The narrator read the text back to the teacher |
|
|
397
|
+
| عن | from | Does not say how it was received (*ʿanʿana*); connected when the two could have met and the narrator is not known for *tadlīs* |
|
|
398
|
+
| أن | that | Treated by most critics like ʿan (*muʾannan*) |
|
|
399
|
+
|
|
400
|
+
The Learn section — hadith terminology, grading, *jarḥ wa taʿdīl* and the classical works,
|
|
401
|
+
each shown on real hadith and real chains — is on the roadmap.
|
|
402
|
+
|
|
403
|
+
---
|
|
404
|
+
|
|
405
|
+
## 🎨 Appearance
|
|
406
|
+
|
|
407
|
+
Every script has its own reading font, size, colour and line spacing — Arabic, Latin,
|
|
408
|
+
Cyrillic, Bengali and Tamil today, more as sources in other scripts arrive. The light and
|
|
409
|
+
the dark theme each keep their own colours, and the interface font can be changed too.
|
|
410
|
+
**Edit → Preferences** (Ctrl + ,) applies every change at once; each row has its own
|
|
411
|
+
Default button.
|
|
412
|
+
|
|
413
|
+
<p align="center">
|
|
414
|
+
<img src="https://raw.githubusercontent.com/bayramkotan/isnady/main/assets/screenshots/preferences.png" alt="Preferences — font, size, line spacing and colour for each script" width="760">
|
|
415
|
+
</p>
|
|
416
|
+
|
|
417
|
+
The same settings from the command line:
|
|
418
|
+
|
|
419
|
+
```bash
|
|
420
|
+
iy config list --prefix text.arabic # what is set, and what is changed
|
|
421
|
+
iy config set text.arabic.size 22
|
|
422
|
+
iy config set text.latin.family "Noto Serif"
|
|
423
|
+
iy config set colors.dark.gilt "#5A4A1E" # matched words in the dark theme
|
|
424
|
+
iy config reset text.arabic # back to the defaults
|
|
425
|
+
```
|
|
426
|
+
|
|
427
|
+
Settings live in `settings.json` in the isnady data folder, shared by the window and the
|
|
428
|
+
command line.
|
|
429
|
+
|
|
430
|
+
---
|
|
431
|
+
|
|
432
|
+
## 📚 Data and licences
|
|
433
|
+
|
|
434
|
+
isnady reads open formats and keeps the source of everything:
|
|
435
|
+
|
|
436
|
+
- **Supported now:** the [fawazahmed0/hadith-api](https://github.com/fawazahmed0/hadith-api)
|
|
437
|
+
JSON format, from a file or a URL, with or without authentication (username and
|
|
438
|
+
password, bearer token, or API key; credentials are never stored).
|
|
439
|
+
- **Rijal:** Ibn Hajar's *Taqrib al-Tahdhib* in OpenITI mARkdown — each narrator's name,
|
|
440
|
+
kunya, verdict, rank, tabaqa, death year and book marks, read by the rules Ibn Hajar sets
|
|
441
|
+
out in his own introduction. The OpenITI release does not state its licence in the
|
|
442
|
+
repository, so it is kept as tier C (used on your computer, never redistributed) until
|
|
443
|
+
it is confirmed.
|
|
444
|
+
- **Coming:** CSV, SQL/SQLite, OpenITI mARkdown, REST APIs and Shamela, so any collection
|
|
445
|
+
you have can be brought in.
|
|
446
|
+
|
|
447
|
+
Every source records a licence **tier**: **A** may be redistributed, **B** may be
|
|
448
|
+
redistributed under its conditions, **C** may not. Sources you add yourself stay on your
|
|
449
|
+
computer. **Help → Licences** lists every source in your database with its licence.
|
|
450
|
+
|
|
451
|
+
---
|
|
452
|
+
|
|
453
|
+
## ⌨️ CLI
|
|
454
|
+
|
|
455
|
+
Everything the window does also works without it — on a server, over SSH, or in a
|
|
456
|
+
script. The command line never loads Qt.
|
|
457
|
+
|
|
458
|
+
| Short | Full | What it does |
|
|
459
|
+
|:------|:-----|:-------------|
|
|
460
|
+
| `iy` | `isnady` | Open the window |
|
|
461
|
+
| `iy search WORDS` | `isnady search WORDS` | Search; `--mode all\|any\|phrase`, `--whole-words`, `--book`, `--language`, `--limit` |
|
|
462
|
+
| `iy chain BOOK NUMBER` | `isnady chain bukhari 1` | One chain, narrator by narrator, with who each one is; `--raw` adds the wording |
|
|
463
|
+
| `iy isnads` | `isnady isnads` | Read every chain and report per book; `--rebuild` reads them again |
|
|
464
|
+
| `iy ai build` | `isnady ai build` | Learn the meaning index from the imported texts (`iy ai status` to check) |
|
|
465
|
+
| `iy import najashi FILE` | `isnady catalog import najashi` | al-Najashi's Rijal: Shia narrators read on the Imami scale, and the book |
|
|
466
|
+
| `iy shortcut` | `isnady shortcut --no-desktop` | A desktop and applications-menu shortcut, with isnady's icon |
|
|
467
|
+
| `iy book [KEY [CHAPTER]]` | `isnady book bukhari 2` | The books; a book's chapters; a chapter read in order |
|
|
468
|
+
| `iy scholar [NAME]` | `isnady scholar albani` | The scholars in the data, or one of them with his measured statistics |
|
|
469
|
+
| `iy tahric BOOK NUMBER` | `isnady tahric bukhari 1` | Other narrations of a hadith in the imported books (takhrij) |
|
|
470
|
+
| `iy search --mode meaning WORDS` | `isnady search --mode meaning "komşu hakları"` | Search by meaning and across languages |
|
|
471
|
+
| `iy narrator NAME` | `isnady narrator "Ibn Umar"` | A narrator: Ibn Hajar's verdict and rank, tabaqa, death year, books, other names; with `--limit 1` also teachers, students and hadith |
|
|
472
|
+
| `iy import FORMAT FILE-OR-URL` | `isnady import …` | Import a source; `--book`, `--language`, `--license`, `--user`, `--token-env`, `--api-key-env` |
|
|
473
|
+
| `iy catalog list` | `isnady catalog list` | Built-in sources and your own, with what is imported — the same as File → Data Sources |
|
|
474
|
+
| `iy catalog import ID` | `isnady catalog import fawaz-muslim --language tur` | Import a listed source; `remove`, `add`, `delete` manage the list |
|
|
475
|
+
| `iy catalog import --all` | `isnady catalog import --all --language ara` | Every built-in source at once |
|
|
476
|
+
| `iy datadir [FOLDER]` | `isnady datadir /data/isnady` | Show or change where the database and settings live; `--as-is`, `--default` |
|
|
477
|
+
| `iy formats` | `isnady formats` | Formats that can be imported |
|
|
478
|
+
| `iy sources` | `isnady sources` | Imported sources, their licence and tier |
|
|
479
|
+
| `iy stats` | `isnady stats` | Hadith, texts, grades and chains per book |
|
|
480
|
+
| `iy remove KEY` | `isnady remove KEY` | Remove a source and everything imported from it |
|
|
481
|
+
| `iy config list\|get\|set\|reset` | `isnady config …` | Appearance and other settings — the same as Edit → Preferences |
|
|
482
|
+
| `iy update` | `isnady update` | Update every copy of isnady where it is installed (system, user, venv, pipx, clone) |
|
|
483
|
+
| `iy doctor` | `isnady doctor` | Every copy of isnady on this computer and which one each command starts |
|
|
484
|
+
| `iy -V` | `isnady -V` | Show the version (also `-v`, `--version`, `version`) |
|
|
485
|
+
| `iy -h` | `isnady -h` | Show help |
|
|
486
|
+
|
|
487
|
+
```console
|
|
488
|
+
$ iy search niyet --book abudawud --limit 1
|
|
489
|
+
43 hadith found in 8 ms
|
|
490
|
+
|
|
491
|
+
Sunan Abu Dawud #472
|
|
492
|
+
grades: Al-Albani: Hasan; Muhammad Muhyi Al-Din Abdul Hamid: Hasan; Shuaib Al Arnaut: Daif; Zubair Ali Zai: Daif
|
|
493
|
+
[Turkish] Ebu Hureyre (r.a.); Resulullah (Sallallahu aleyhi ve Sellem)'in şöyle buyurduğunu rivayet etmiştir: "Bir kimse mescid'e hangi [niyet]le gelirse nasibi ondan ibarettir"
|
|
494
|
+
```
|
|
495
|
+
|
|
496
|
+
---
|
|
497
|
+
|
|
498
|
+
## 📸 Screenshots
|
|
499
|
+
|
|
500
|
+
<p align="center">
|
|
501
|
+
<img src="https://raw.githubusercontent.com/bayramkotan/isnady/main/assets/screenshots/chain.png" alt="Isnad Chains — the chain of Sahih al-Bukhari 1 as a timeline from the book to the Prophet" width="850">
|
|
502
|
+
</p>
|
|
503
|
+
<p align="center">
|
|
504
|
+
<img src="https://raw.githubusercontent.com/bayramkotan/isnady/main/assets/screenshots/search-grades.png" alt="Search — Sunan Abi Dawud with each scholar's grade and the chain above the text" width="850">
|
|
505
|
+
</p>
|
|
506
|
+
<p align="center">
|
|
507
|
+
<img src="https://raw.githubusercontent.com/bayramkotan/isnady/main/assets/screenshots/chain-dark.png" alt="Dark theme — a seven-narrator chain from Sunan Abi Dawud" width="850">
|
|
508
|
+
</p>
|
|
509
|
+
<p align="center">
|
|
510
|
+
<img src="https://raw.githubusercontent.com/bayramkotan/isnady/main/assets/screenshots/chains-overview.png" alt="Chains overview — per-book statistics and what was kept whole" width="850">
|
|
511
|
+
</p>
|
|
512
|
+
|
|
513
|
+
---
|
|
514
|
+
|
|
515
|
+
## 🗺️ Roadmap
|
|
516
|
+
|
|
517
|
+
- **Narrators** — the other half of the names identified through teachers and students
|
|
518
|
+
(al-Mizzi's *Tahdhib al-Kamal*), the verdicts of other critics beside Ibn Hajar's, and
|
|
519
|
+
whether each link could have met the next.
|
|
520
|
+
- **Hadith scholars** — their lives in full, and more scholars as more collections and grades
|
|
521
|
+
are imported.
|
|
522
|
+
- **Shia rijal** — narrator verdicts from the Shia rijal works, beside the Sunni view.
|
|
523
|
+
- **Learn** — the sciences of hadith, shown on real hadith and real chains.
|
|
524
|
+
- **More sources and formats** — and adding your own from inside the window.
|
|
525
|
+
- **Glossary** — every Arabic term of hadith and the Islamic sciences explained where it
|
|
526
|
+
appears: hover or click a term, read its meaning in the interface language.
|
|
527
|
+
- **isnady.net** — the same engine on the web.
|
|
528
|
+
|
|
529
|
+
---
|
|
530
|
+
|
|
531
|
+
## 🔁 Versions and releases
|
|
532
|
+
|
|
533
|
+
One version number on GitHub, PyPI and npm, always. A release builds the Python package and the Windows,
|
|
534
|
+
Linux and macOS applications first; only when every build succeeds is anything published — PyPI, then the
|
|
535
|
+
[GitHub Release](https://github.com/bayramkotan/isnady/releases) with every file and its checksum. What each
|
|
536
|
+
version brought is in the [CHANGELOG](https://github.com/bayramkotan/isnady/blob/main/CHANGELOG.md). The
|
|
537
|
+
README on npm is made from this one.
|
|
538
|
+
|
|
539
|
+
## 🏗️ Build from Source
|
|
540
|
+
|
|
541
|
+
```bash
|
|
542
|
+
git clone https://github.com/bayramkotan/isnady.git
|
|
543
|
+
cd isnady
|
|
544
|
+
pip install -e .
|
|
545
|
+
iy
|
|
546
|
+
```
|
|
547
|
+
|
|
548
|
+
Python 3.10 or newer and PySide6. The command line alone needs no PySide6.
|
|
549
|
+
|
|
550
|
+
---
|
|
551
|
+
|
|
552
|
+
|
|
553
|
+
The desktop application of your own system: `pip install ".[ai]" pyinstaller`, then
|
|
554
|
+
`python packaging/build_app.py linux|windows|macos VERSION` (Windows also needs Inno Setup).
|
|
67
555
|
|
|
68
556
|
## 📝 License
|
|
69
557
|
|
|
70
|
-
MIT. Hadith data comes from separate sources, each under its own
|
|
558
|
+
MIT for the application code. Hadith data comes from separate sources, each under its own
|
|
559
|
+
licence, recorded with the data and listed under **Help → Licences**.
|
|
560
|
+
|
|
561
|
+
The Arabic and reading typeface is [Amiri](https://github.com/aliftype/amiri) by Khaled
|
|
562
|
+
Hosny, bundled under the SIL Open Font License 1.1 (`src/isnady/assets/fonts/OFL.txt`).
|
package/index.js
CHANGED