I'm Ashraf Magdy (ghs), an Egyptian developer and cybersecurity specialist, and I build AshMovis, a free Arabic index of films, series and actors.

The hardest bug I hit was not in the code. It was in the data: the same Arabic name written five different ways.

The problem

A visitor types an actor's name the way they pronounce it. The database holds the same name with different letters:

  • hamza forms: أ إ آ ا
  • taa marbuta vs haa: ة / ه
  • alef maqsura vs yaa: ى / ي
  • tatweel and extra spaces

A naive LIKE query returns nothing, and the visitor concludes the page does not exist.

What I do instead

  1. Store the display name exactly as it should be shown.
  2. Store a second, normalized column for search: strip diacritics and tatweel, collapse whitespace, unify the letter variants above.
  3. Search only against the normalized column, and keep the original for display.

The part people skip

Normalization is only half of it. The result page also has to split by type: films, series, actors, directors. One mixed list of twenty results is as bad as no results.

And when a query still returns nothing, log it. The empty searches are the most useful list of missing normalization rules you will ever get.

The site is a reference index only: no streaming, no downloads, official trailers when they exist.