Skip to content
Articles
Article

arabic_text_utils: Arabic numbers to words (tafqit), digits and slugs in pure Dart

by Abdeldjalil Chougui dev.to

5 min read

Any app that prints an invoice or a cheque in Arabic has to write the amount in words. This is called tafqit (تفقيط), and it is much harder than it looks. Arabic numbers change with the gender of the thing counted, and for 3 to 10 the gender is reversed. The counted noun is plural after 3 to 10, singular after 11 to 99, and singular again after hundreds and thousands. Two thousand dinars is not "…

Forum

Questions about this, or something to add?

Discuss on the forum

Report this · Wrote this? Claim it

FlutterX is supported by