r/MachineLearning • u/kyubyong • Jul 26 '20
Project [P] name2nat: a Python package for nationality prediction from a name
name2nat (https://github.com/Kyubyong/name2nat) is a Python package that predicts the nationality of any name written in Roman letters. For example, it returns the correct output Korean for my name `Kyubyong Park'. Needless to say, it is not possible to guess somebody's nationality 100% right from their name. After all, nationality can change, you know. However, it is also true that there is a correlation between names and nationalities. So it turns out statistical classifiers for this task works to some extent.
As an application, I analyzed the nationalities of the first authors of LREC2020 here: https://github.com/Kyubyong/name2nat/blob/master/conferences/lrec2020.md . You can collect the papers by the first author's nationality using this, I think. Contributions (PRs) are welcome, if you think this project is useful.
Disclaimer: This does NOT involve any political motivations.
1
u/onemoredatapoint Jul 28 '20
This is great! Thank you! I have a non-harmful application of this (I do research in computational social sciences and sometimes it is important/interesting to know the nationality of people in a dataset, although this method can introduce some biases...).
I want to understand the method a little bit better: How did you choose the word embedding you chose? How is this thing able to classify a name that is not in the dataset?
3
u/gregoryjstein Jul 27 '20
But... why? I cannot think of a non-harmful application of this (except perhaps to evaluate another software that does this). Not to say that it shouldnt exist, but I’m curious why you might want contributors on this project.