Coder Social home page Coder Social logo

quran-sahih-international's Introduction

quRan

CRAN_Status_Badge DOI

Downloads Downloads lifecycle

An R package for the full text of the Qur'an

This package contains the complete text of the Qur'an in Arabic (with and without vowels) and in English (the Yusuf Ali and Saheeh International translations).

The text for each volume or translation was sourced from Tanzil and Al Quran Cloud.

Each volume is in a data frame with a row for each ayah, along with 18 columns of detailed metadata (including ayah number, surah number, surah name in Arabic and English, juz', hizb, and so on), ready for text analysis.

The package contains:

  • quran_ar: The Qur'an in Arabic (with vowels)
  • quran_ar_min: The Qur'an in Arabic (without vowels)
  • quran_en_yusufali: The Yusuf Ali English translation of the Qur'an
  • quran_en_sahih: The Saheeh International English translation of the Qur'an

Surah titles in Arabic, transliterated English, and translated English are all factors to preserve the correct order.

Installation

To install the current stable version of the package, type the following:

install.packages("quRan")
library(quRan)

Alternatively, you can install the development version from Github:

library(remotes)
install_github("andrewheiss/quRan")
library(quRan)

Usage

For some ideas on getting started with analyzing these texts, see Text Mining with R by Julia Silge and David Robinson, or Julia Silge's blog post on sentiment analysis of Jane Austen's novels. For help within R, try ?quran_ar or similar for getting started with the datasets.

Here's how to do some basic data manipulation with the data:

library(dplyr)
library(quRan)

quran_ar %>% 
  group_by(surah_title_en) %>% 
  summarize(total_ayat = n())
#> # A tibble: 114 x 2
#>    surah_title_en total_ayat
#>    <fct>               <int>
#>  1 Al-Faatiha              7
#>  2 Al-Baqara             286
#>  3 Aal-i-Imraan          200
#>  4 An-Nisaa              176
#>  5 Al-Maaida             120
#>  6 Al-An'aam             165
#>  7 Al-A'raaf             206
#>  8 Al-Anfaal              75
#>  9 At-Tawba              129
#> 10 Yunus                 109
#> # ... with 104 more rows

quran_ar %>% 
  filter(surah_title_en == "Al-Faatiha") %>% 
  select(surah, ayah, text)
#> # A tibble: 7 x 3
#>   surah  ayah text                                                
#>   <int> <int> <chr>                                               
#> 1     1     1 ุจูุณู’ู…ู ุงู„ู„ู‘ูŽู‡ู ุงู„ุฑู‘ูŽุญู’ู…ูŽูฐู†ู ุงู„ุฑู‘ูŽุญููŠู…ู                              
#> 2     1     2 ุงู„ู’ุญูŽู…ู’ุฏู ู„ูู„ู‘ูŽู‡ู ุฑูŽุจู‘ู ุงู„ู’ุนูŽุงู„ูŽู…ููŠู†ูŽ                               
#> 3     1     3 ุงู„ุฑู‘ูŽุญู’ู…ูŽูฐู†ู ุงู„ุฑู‘ูŽุญููŠู…ู                                       
#> 4     1     4 ู…ูŽุงู„ููƒู ูŠูŽูˆู’ู…ู ุงู„ุฏู‘ููŠู†ู                                      
#> 5     1     5 ุฅููŠู‘ูŽุงูƒูŽ ู†ูŽุนู’ุจูุฏู ูˆูŽุฅููŠู‘ูŽุงูƒูŽ ู†ูŽุณู’ุชูŽุนููŠู†ู                              
#> 6     1     6 ุงู‡ู’ุฏูู†ูŽุง ุงู„ุตู‘ูุฑูŽุงุทูŽ ุงู„ู’ู…ูุณู’ุชูŽู‚ููŠู…ูŽ                               
#> 7     1     7 ุตูุฑูŽุงุทูŽ ุงู„ู‘ูŽุฐููŠู†ูŽ ุฃูŽู†ู’ุนูŽู…ู’ุชูŽ ุนูŽู„ูŽูŠู’ู‡ูู…ู’ ุบูŽูŠู’ุฑู ุงู„ู’ู…ูŽุบู’ุถููˆุจู ุนูŽู„ูŽูŠู’ู‡ูู…ู’ ูˆูŽู„ูŽุง ุงู„ุถู‘ูŽุงู„ู‘ููŠู†ูŽ

Code of Conduct

This project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Credits

The text and translations are all open source or licensed under Creative Commons by Tanzil and Al Quran Cloud. The licenses have been converted to MIT here, due to CRAN's policy that the entire package use the same license throughout.


Tanzil Quran License

  • This quran text is distributed under the terms of a Creative Commons Attribution 3.0 License.

  • Permission is granted to copy and distribute verbatim copies of this text, but CHANGING IT IS NOT ALLOWED.

  • This quran text can be used in any website or application, provided its source (Tanzil.net) is clearly indicated, and a link is made to http://tanzil.net to enable users to keep track of changes.

  • This copyright notice shall be included in all verbatim copies of the text, and shall be reproduced appropriately in all files derived from or containing substantial portion of this text.


Text taken from AlQuran.cloud and the Islamic Network is open source

https://alquran.cloud/terms-and-conditions


Saheeh International Translation provided by the Qur'an Project with no rights reserved

See https://archive.org/stream/QuranTranslationBySaheehInternational/Quran%20-%20Translation%20by%20Saheeh%20International_djvu.txt


Fatihah background in hex icon from seeklogo.

quran-sahih-international's People

Contributors

andrewheiss avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.