theodore-s-beers/hawwaz
Abjad numeral calculation in Zig
This is a little Zig library that provides a function to calculate the abjad numeral value of a string of Arabic-script text. A few options can be configured: Mashriqi vs. Maghribi letter order, whether to count an alif madda as one or two alifs, etc. The logic is based on implementations that I've written in other languages, including TypeScript and Rust.
I hope to add more documentation here later. For the time being, it may be instructive to review the notes on my site abjadcalc.com.
To build the library and run tests:
zig build test