Abjad calculations are now in dervaze


dervaze screenshot

Abjad numerals is a number system where each letter represents a number in Arabic alphabet. For example ا (alef) is used for 1, م (meem) is used for 40. The words are additive, hence the word ما (ma) is 41.

The full table for the numerals are as follows.

{.sourceCode .text} ====== ======== ====== ====== ======== ====== ====== ======== ====== Value Letter Name Value Letter Name Value Letter Name ====== ======== ====== ====== ======== ====== ====== ======== ====== 1 ا alif 10 ى yāʼ 100 ق qāf 2 ب bāʼ 20 ك kāf 200 ر rāʼ 3 ج jīm 30 ل lām 300 ش shīn 4 د dāl 40 م mīm 400 ت tāʼ 5 ه hāʼ 50 ن nūn 500 ث thāʼ 6 و wāw 60 س sīn 600 خ khā 7 ز zāy 70 ع ʻayn 700 ذ dhāl 8 ح ḥāʼ 80 ف fāʼ 800 ض ḍād 9 ط ṭāʼ 90 ص ṣād 900 ظ ẓāʼ 1000 غ ghayn

The additional letters in Farsi and Ottoman are assigned values by their most similar counterpart in Arabic. For example چ (tcheem) gets its value from ج (jeem), 3.

The web application in dervaze should have two aspects. The first of these is converting a word into its numeric value. Each word, for example, صادق can have a numeric counterpart. When a user sees the word صادق, they can also see its numeral as 90 + 1 + 4 + 100 = 195.

The other application is more interesting. When a user enters the numeral 195, the application can list all words that correspond to this numeric value.

The first application can be done on the fly, but it's better to put these values into the database to not to calculate in every query anyway.

In dervaze's database, we opened a new field called abjad. This field is populated by the word's numeric counterpart. When a user enters a word query, abjad value is also reported.

When a user enters a numeric query like 195 instead of a word, the application builds another query. This time, it looks for the words which have this numeric value in their abjad fields.

Comments !