1.0.1 • Published 7 years ago

rasmify.js v1.0.1

Weekly downloads
2
License
LGPL-3.0
Repository
github
Last release
7 years ago

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

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');

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

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

7 years ago

1.0.0

7 years ago