Most names are predominantly used for either males or females, so a statistical approach will often yield good results. There are of course names that are used across both sexes, but a statistical approach will reveal that too. Furthermore, naming conventions can rely on cultural differences, so scoping statistics to a single country will help achieve more accurate results.