quran / quran.com-api

Quran.com content APIs
https://api-docs.quran.foundation/docs/category/content-apis
MIT License
924 stars 192 forks source link

Any updates on adding corpus data to the API? #628

Open malikkotob opened 1 year ago

malikkotob commented 1 year ago

Assalamu'alaikum! It looks like @mmahalwy mentioned back in this issue https://github.com/quran/quran.com-api/issues/49 that the content of corpus Quran was being added to the API. Was that effort ever completed? Would love to consume that information for a project I'm working on.

kaisdukes commented 1 year ago

Salam @malikkotob. We are currently in the process of upgrading the corpus (full details on this new project here: https://github.com/kaisdukes/quranic-corpus). We have new modern REST-based APIs available. Also some good news, we have recently started a major project and have partnered with PhD linguists at several Arabic universities worldwide to improve the quality of the annotations. We can make this data available to you for your project no problem.

Example of the new morphology API: https://qurancorpus.app/api/morphology/word?location=104:4:2

Example of the new treebank API: https://qurancorpus.app/api/syntax?location=4:79&graph=3

Please note we are using a temporary domain (https://qurancorpus.app). This is just a working draft domain until we complete the corpus 2.0 datasets and are ready for full integration back to https://corpus.quran.com.

Any questions, please let us know. The corpus data is open source and available under the GNU public license, so more than happy to support you and answer any questions you might have.

We would also love to integrate these APIs with the main quran.com APIs once we have completed the annotations for corpus 2.0 (our current focus is treebank completion). The main exciting news is we now have volunteer PhD linguists working on this and the project is active again!