All Projects → alpancs → quranize

alpancs / quranize

Licence: MIT license
transform transliteration to Quran text

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to quranize

Quran-Pro-iOS
Description Qur’an Pro - القرآن الكريم offers all muslims the complete Holy Quran with verse by verse recitation, translation and transcription. The application is written in SWIFT 2.0
Stars: ✭ 21 (+61.54%)
Mutual labels:  quran
lexpy
Python package for lexicon; Trie and DAWG implementation.
Stars: ✭ 47 (+261.54%)
Mutual labels:  suffix-tree
SeaPearl.jl
Julia hybrid constraint programming solver enhanced by a reinforcement learning driven search.
Stars: ✭ 119 (+815.38%)
Mutual labels:  dynamic-programming
seqalign pathing
Rust implementation of sequence alignment / Levenshtein distance by A* acceleration of the DP algorithm
Stars: ✭ 17 (+30.77%)
Mutual labels:  dynamic-programming
ViterbiAlgorithm
Viterbi Algorithm for HMM
Stars: ✭ 26 (+100%)
Mutual labels:  dynamic-programming
secondary
Redis Secondary Indexing Module, been suspended see: https://github.com/RediSearch/RediSearch/
Stars: ✭ 33 (+153.85%)
Mutual labels:  indexing
iuliia-go
Transliterate Cyrillic → Latin in every possible way
Stars: ✭ 36 (+176.92%)
Mutual labels:  transliteration
VFIToolkit-matlab
A Matlab Toolkit for Macroeconomic Models using Value Function Iteration
Stars: ✭ 59 (+353.85%)
Mutual labels:  dynamic-programming
The-Ruby-Workshop
A New, Interactive Approach to Learning Ruby
Stars: ✭ 26 (+100%)
Mutual labels:  dynamic-programming
gdrive-index
An index server for Google Drive
Stars: ✭ 107 (+723.08%)
Mutual labels:  indexing
iuliia
Transliterate Cyrillic → Latin in every possible way
Stars: ✭ 62 (+376.92%)
Mutual labels:  transliteration
quran-extension
Replace the new tab page with Quran verses and beautiful nature pictures.
Stars: ✭ 47 (+261.54%)
Mutual labels:  quran
http-server-pwa
👾 http-server alike but for serving and rendering PWA: pwa-server
Stars: ✭ 14 (+7.69%)
Mutual labels:  indexing
LeetCode
Solution to LeetCode Problems in Python and Golang 🎯
Stars: ✭ 12 (-7.69%)
Mutual labels:  dynamic-programming
btree
A persistent B+Tree (clustered index) implementation in Rust.
Stars: ✭ 167 (+1184.62%)
Mutual labels:  indexing
kmeans1d
⭐ A Python package for optimal 1D k-means clustering.
Stars: ✭ 35 (+169.23%)
Mutual labels:  dynamic-programming
Pike-Modules
Various Pike modules
Stars: ✭ 15 (+15.38%)
Mutual labels:  dynamic-programming
quran
An easy way to typeset The Holy Quran in XeLaTeX.
Stars: ✭ 18 (+38.46%)
Mutual labels:  quran
iuliia-py
Transliterate Cyrillic → Latin in every possible way
Stars: ✭ 86 (+561.54%)
Mutual labels:  transliteration
circDeep
End-to-End learning framework for circular RNA classification from other long non-coding RNA using multimodal deep learning
Stars: ✭ 21 (+61.54%)
Mutual labels:  dynamic-programming

GoDoc Build Status codecov

Quranize

Quranize provides Alquran in Go representation. Original source of Alquran is taken from http://tanzil.net in XML format.

Quranize can transform alphabet into arabic using fast and efficient algorithm: suffix-tree for indexing and dynamic programming for parsing.

Documentation

https://godoc.org/github.com/alpancs/quranize

Example

Here is a minimal example.

package main

import (
  "fmt"

  "github.com/alpancs/quranize"
)

func main() {
  q := quranize.NewDefaultQuranize()
  quran := quranize.NewQuranSimpleEnhanced()

  encodeds := q.Encode("alhamdulillah hirobbil 'alamin")
  fmt.Println(encodeds)
  // Output: [الحمد لله رب العالمين]

  locations := q.Locate(encodeds[0])
  fmt.Println(locations)
  // Output: [{1 2 0} {10 10 10} {39 75 13} {40 65 10}]

  suraName, _ := quran.GetSuraName(locations[0].GetSura())
  fmt.Println(suraName)
  // Output: الفاتحة

  aya, _ := quran.GetAya(locations[0].GetSura(), locations[0].GetAya())
  fmt.Println(aya)
  // Output: الْحَمْدُ لِلَّهِ رَبِّ الْعَالَمِينَ
}

Related Project

https://github.com/alpancs/quranize-service

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].