If your users bank in the Gulf or North Africa, one statement feed will mix Arabic and Latin script. A line can look like this (illustrative):
POS 8812 GEIDEA*مطعم النخيل CAIRO EG
That is a terminal number, a regional processor (Geidea), a merchant name in Arabic, and a city and country code in Latin letters. A parser built for STARBUCKS #1234 NEW YORK NY has no idea what to do with it.
Four things that break naive parsers
- Mixed script and direction. Arabic text is stored in logical order but displayed right to left. If you split on spaces and reverse or truncate, you can cut a name in the middle.
- Regional processors. Names like Geidea sit in front of the merchant the way SQ * does for Square. Strip them before you match, but keep them: they tell you the country.
- Local rails. mada, SADAD, sarie, STC Pay, urpay, Fawry and InstaPay lines are often transfers or bill payments, not shop purchases. Check what kind of line it is before you chart spend.
- One shop, many spellings. The same cafe can show up in Arabic, in a transliteration, and in an abbreviation, depending on the terminal.
Pay-later instalments from Tabby and Tamara add one more case: the line names the instalment provider, not the shop.
A practical approach
- Normalise first. Unicode-normalise, strip tatweel and diacritics, and fold common letter variants before you compare strings.
- Separate the channel, processor and terminal from the merchant text, then match the merchant text on its own.
- Keep a
kindfield (purchase, transfer, bill, refund, fee) and a confidence score. Do not force a merchant when you cannot tell. - Show uncertain results as "suggested" in your UI.
Try it
I built DescriptorAPI to do this over one HTTP call. There is a free plan and a browser playground:
- Playground: https://descriptorapi.com/playground
- Guide to the region: https://descriptorapi.com/learn/transaction-enrichment-mena
- Saudi lines: https://descriptorapi.com/learn/reading-saudi-card-statements
If you have lines it gets wrong, send them to me and I will fix them.
Drafted with AI help, edited and checked by me.



