fawazahmed0 / hadith-api

Free Hadith API Service with Multiple Languages and Multiple Grades
The Unlicense
225 stars 46 forks source link

Grading issue in Al Albani - Sunan Nasai:36 #32

Open GibreelAbdullah opened 1 year ago

GibreelAbdullah commented 1 year ago

https://github.com/fawazahmed0/hadith-api/blob/1/editions/eng-nasai/36.json

it says Al Albani graded it Daif.

But

https://shamela.ws/book/1147/18#p1

says it is Sahih.

fawazahmed0 commented 1 year ago

Thanks brother, I got the grades from maktaba, but it seems that the website is closed now.

Thankfully, by mercy of Allah, I do happen to have a backup for maktaba and zubair ali zai grades

Anyways, the grades were extracted programmatically, so there is chance of mistakes here & there. Needs to be fixed manually. Let me know if you find more of these. I will fix all of them in batch to save some time

Update 23-03-23: Updated zubair ali zai backup

GibreelAbdullah commented 1 year ago

Maktaba has now moved to Shamela.ws

Anyway the issue is a bit different. This hadith has apart of text which is Sahih and a part which is Daif acc to Al Albani.

So this is present in both Sahih Nasai (https://shamela.ws/book/1147/18#p1) and Daif Nasai (https://shamela.ws/book/1148/32#p10)

Not sure how to represent it though.

Btw do you have the script which you used to parse maktaba website?

fawazahmed0 commented 1 year ago

All the scripts are available here . I don't remember the exact script. To get the exact script, you can clone the repo and do a search in all the files for al-maktaba.org keyword

unkn4wn commented 1 year ago

I scraped the gradings from another site and compared them with yours. I found 127 "major" differences. Is there any way to scrape these 127 numbers again from your backup site ? I could just replace yours with the one I scraped however I think thats a bad idea because there seem to be small differences between these two books and the best approach is to scrape all ahadith from one book.

Most of these problems occured after wrongly assuming that the hadith is "sahih/shadh/daeef" etc because the term is mentioned in the text. some examples: 5682 is "Sahih of the daeef under the hadith.." but you categorized it as daeef 4940 is "Sahih Maqtu' Makhluq al-Marfu'" but you categorized it as "Sahih Maqtu" 4642 is "Sahih without ... which is shadh" but you categorized it as "Shadh" and so on...

I made a textfile which contains all hadithnumbers which seem to have a different grading than the one I scraped. differentnumbers.txt

fawazahmed0 commented 1 year ago

During scraping, cleaning, prunning etc, I committed each time whenever I made any change. So you can refer the version history for each books grade here

Here is original hadith grade list for nasai

You can also check if there was any mistake during prunning for nasai grades (click on load diff for hadithfiles/783gradings.txt )

You will have to add the correct grades into info.json to fix this issue.

Note to self: The easiest way to fix this issue is to completely drop grades having multiple terms like sahih/daif etc.