Sex assignment (sometimes known as gender assignment) is the discernment of the sex at the birth of a baby. In the majority of births, a relative, midwife, nurse or physician inspects the genitalia when the baby is delivered, and gender is determined, without the expectation of ambiguity.