שולחן ערוך, אבן העזר, Seder HaGet Seder HaGet · ט
Shulchan Arukh, Even HaEzer 187
הכל כשרים לכתוב גט חוץ מחש"ו עבד ונכרי וישראל מומר או מחלל שבת בפרהסיא:
Everyone is eligible to write a divorce document except for a deaf-mute, cognitively impaired person, or a child; or a servant or a non-Jew; or a Jewish apostate or someone who publicly violates Shabbat.