Ashraf Magdy (ghs) — AshMovis Developer
Actor pages are harder than film pages, and I underestimated why.
A film has one title. An actor has a name that can be spelled three ways in Arabic and two in English, and the same person is often credited differently across films. If the database treats each spelling as a separate person, one actor ends up with three half-empty pages.
On AshMovis I fixed this with a plain alias table: one canonical record per person, and a list of alternate spellings that all point to it. Search checks the aliases first, so a visitor who types the "wrong" spelling still lands on the right page.
Two details mattered more than the code. First, the canonical name is chosen by hand, not by frequency, because the most common spelling is not always the correct one. Second, every alias is stored after normalizing letters like alef and yaa, so I do not have to list each variant of the same spelling.
It took an evening to build and removed most of the duplicate pages I had been fixing one by one.
Project: https://ashmovis.free.nf
