Sex assignment or gender assignment is the process of determining the sex of a baby, whether it is a boy or a girl. Usually, the doctor, parents or midwife look at the sex organs of a newborn baby to do this. The assigned sex is written on the birth certificate, passport and other identification papers.