How does final yāʾ differ in الْقَاضِي and غُلَامِي?

Noun Case Class 8 — The Manqūṣ Noun