A son has the same surname as his father. A female's surname replaces Ó with Ní (reduced from Iníon Uí – "daughter of the grandson of") and Mac with Nic (reduced from Iníon Mhic – "daughter of the son of"); in both cases the following name undergoes lenition. However, if the second part of the surname begins with the letter C or G, it is not lenited after Nic. Thus the daughter of a man named Ó Maolagáin has the surname "Ní Mhaolagáin" and the daughter of a man named Mac Gearailt has the surname "Nic Gearailt". When anglicised, the name can remain O' or Mac, regardless of gender.