How do you spell O'Keefe in Irish Gaelic?

For a male Ó Caoimh;

for an unmarried female Ní Chaoimh;

for a married woman Uí Chaoimh.