0

I want to build a classifier which can classify gender and ethnicity based on the names. I am looking for datasets to download where I take samples for supervised learning. If there are no open datasets available for download, what are the ways that I can create one?

3
  • I have one with names and their associated community but it is restricted to India I believe.
    – JahKnows
    Commented Mar 22, 2018 at 10:39
  • I assume you've googled and sets like top100-babynames.net/ethnic-names.html are too small to be useful? You could try using wikidata to find common names with nationalities but I'm not sure if that would include ethnicity. Some papers on racial discrimination use ethnic names to indicate race, which may or may not be helpful.
    – user3856
    Commented Mar 26, 2018 at 0:53
  • if you can swap "ethnicity" for "country of origin" then this list can't be beat opendata.stackexchange.com/a/5003/1511
    – philshem
    Commented Mar 26, 2018 at 6:27

2 Answers 2

2
SELECT ?nameLabel ?typeLabel ?langLabel WHERE {
 ?type wdt:P279* wd:Q202444 .
 ?name wdt:P31 ?type .
 ?name wdt:P407 ?lang
SERVICE wikibase:label{bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".} 
}

The wikidata query above (http://tinyurl.com/y9t44r59) yields 12841 results and may provide a helpful starting point.

2
  • is there a way that I can download the data?
    – Raady
    Commented Mar 26, 2018 at 12:52
  • There should be a "download" link after you run the query. The download will give you all of the results, not just the first page. If you still have trouble, let me know and I'll upload the results to idrive or something.
    – user3856
    Commented Mar 26, 2018 at 18:08
1

I think you can start with general source of knowledge nowadays, wikipedia, namely the article on List of popular given names . This will give you enough information to extrapolate from country to gender/ethnicity and if the classification is feasible.

After that, you can either dig deeper into country census data or use pseudo-labelling techniques to enrich your dataset further.

3
  • The Wikipedia lists are, at least partially, highly biased towards recent naming trends. For some countries they might have nothing in common with the actual most common names in the population.
    – aventurin
    Commented Mar 22, 2018 at 20:26
  • @aventurin I think, the whole point of wikipedia is that if you see any data errors and you possess the knowledge that you believe is more true, you should edit and update the article. On the topic of the question, as I said, this "dataset" will give a start that will either prove or disprove the hypothesis that such classification is feasible at all (which I doubt). And if it is, you can use a shallow model to get more semi-automated labeled data using pseudo-labelling technique. Commented Mar 22, 2018 at 22:08
  • I do not know if the lists in wikipedia contain errors. My point was that some (many?) of the lists only reflect recent naming trends. For example, none of the names in the wikipedia article's top-ten list of male given names in Germany is also in the top-ten list (not even close) of the whole population. This is because the wikipedia list considers only names of babies born in 2015. The following link shows naming trends over time for the US: visualcinnamon.com/portfolio/babynames
    – aventurin
    Commented Mar 22, 2018 at 22:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.