← All work

Arabic NLP API: small, predictable Arabic text tools without a model

Stack
Python, FastAPI, pytest, Docker

Repository

endpoints
12
tests
7
POST /tafqit/currency
{ "amount": 1250.75 }

200 OK
{ "result": "فقط ألف ومئتان وخمسون جنيه وخمسة وسبعون قرش لا غير" }
Writing an amount as words, for invoices and cheques.

The problem

Arabic apps keep needing the same chores: normalising letter forms, transliterating, and writing amounts as words for invoices and cheques.

What I built

This FastAPI service does them with rules instead of a model, so the output is predictable and the container stays small. Twelve endpoints, seven tests. Dialect detection is a word-list heuristic and says so when the evidence is thin.