#arabic #persian #numerology

abjad

Calculate the numerical abjad value of Arabic-script text

7 releases (4 breaking)

0.5.0 Jun 29, 2023
0.4.0 Jul 19, 2022
0.3.2 Mar 31, 2022
0.3.1 May 2, 2021
0.1.0 May 1, 2021

#743 in Text processing

25 downloads per month

MIT license

10KB
163 lines

abjad

This is a little library meant to facilitate calculating the numerical abjad value of a string of Arabic or Persian text.


lib.rs:

This library is meant to facilitate calculating the numerical abjad value of a string of text in Arabic or Persian (support for other Arabic-script languages may be added over time).

At the moment, this simply adds three methods for &str:

  • abjad returns a best-effort value, ignoring unrecognized characters.
  • abjad_collect_errors also records unrecognized characters in a Vec.
  • abjad_strict returns an error as soon as any character is not recognized.

Dependencies

~310–770KB
~18K SLoC