The gender of a name can vary heavily by culture and time-period, it would make much more sense for the api to return the data in the form of ranked probabilities.
As an aside it's worth noting that as this library is GPL3 it means you can't use this code in any non-GPL product.