Note that character names are under a subsection default... gendered names could possibly be under their own subsections..?
If that is true, gender is
probably not hardcoded mechanic... so you get
default subsection for most races, but humans gets separate
male and
female subsections. Same for portraits, most are under
default, but humans have
male and
female, but nothing in engine would have prevented you from dozen different genders/variants.
If I am correct, you could code dozen of subsections, like russian_male, russian_female, chinese_male, chinese_female, and so on, assign each separate portraits, so you wont get really odd racial/cultural combinations, like black guy with first name in Korean, and second name in Ashkenazi. (which is bond to happen with single human namelist)