Close comparison of the text erroneously attributed to Ali Çavuş of Sofia and the Kavanin-i Al-i Osman of Ayn Ali shows that the two are related, having common content and a similar structure. A direct genetic relationship cannot be demonstrated. Rather, Ayn Ali used the other text as a literary model, transforming what was essentially a scribal manual into a literary work in the advice for kings genre.