Skip to content

telota/rasmify.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Reduce arabic text to its rasm, i.e. remove vocalization marks, diacritics so you only are left with a basic consonant skeleton.

For example, the first verse of the Qur'an as found on corpuscoranicum.de:

Compare the following examples:

Text with diacritics etc First sura of the Qur'an with diacritics etc

Text without diacritics (rasmified) First sura of the Qur'an rasmified

Try it

Check out the demo here

Installation

Require this package using npm. Run the following command in the terminal:

npm install rasmify.js

Usage

To convert an arabic string to its rasm, use the following code:

var rasmify = require('rasmify.js');

var arabicString = 'الفَاتِحَة';

// Should output الڡاٮحه
rasmify(arabicString);

PHP-Version

This package has also been implemented in PHP. Check out rasmify

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published