People across the Levant type Arabic in Latin characters, using digits for the letters with no Latin equivalent. 3 for ain, 7 for haa, 2 for hamza. Every Arabic NLP pipeline that touches real user input runs into it.
I kept writing the same normalisation twice, so I packaged it.