Before revision: The CURP code is composed of 18 characters that are assigned as follows: The first surname's initial and first inside vowel; The second surname's initial (or the letter "X" if, like some foreign nationals, the person has no second surname); The first given name's initial; Date of birth (2 digits for year, 2 digits for month, and 2 digits for day); A one-letter gender indicator (H for male (hombre in Spanish) or M for female (mujer in Spanish)); A two-letter code for the state where the person was born; for persons born abroad, the code NE (nacido en el extranjero) is used; The first surname's second inside consonant; The second surname's second inside consonant; The first given name's second inside consonant; and One character ranging from 0-9 for people born before 2000 or from A-Z for people born since 2000; this is generated by the National Population Registry to prevent identical entries.
After revision: The CURP code is composed of 18 characters that are assigned as follows: The first surname's initial and first inside vowel; The first surname's initial (or the letter "X" if, like some foreign nationals, the person has no first surname); The first given name's initial; Date of birth (2 digits for year, 2 digits for month, and 2 digits for day); A one-letter gender indicator (H for male (hombre in Spanish) or M for female (mujer in Spanish)); A two-letter code for the state where the person was born; for persons born abroad, the code NE (nacido en el extranjero) is used; The first surname's first inside consonant; The second surname's second inside consonant; The first given name's second inside consonant; and One character ranging from 0-9 for people born before 2000 or from A-Z for people born since 2000; this is generated by the National Population Registry to prevent identical entries.