«حضر عليٌّ الكاتبُ» may use “the writer” to distinguish a particular Ali among individuals sharing the same name.
This function depends on the audience having competing referents. If only one Ali is already known, the adjective may serve praise or another purpose instead of disambiguation.