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 ( in Spanish) or M for female ( in Spanish) ); A two-letter code for the state where the person was born; for persons born abroad, the code NE () is used; The first surname's first inside consonant; The second surname's first inside consonant; The first given name's first 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 second surname's initial (,, or X for non-binary 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 ( in Spanish) or M for female ( in Spanish) ); A two-letter code for the state where the person was born; for persons born abroad, the code NE () is used; The first surname's first inside consonant; The second surname's first inside consonant; The first given name's first 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.