genderize-io Ruby SDK.


Gem Version Build Status

API wrapper for the first name gender determination system. Be aware that the free API has a limit of 1000 determinations per day.


Add this line to your application’s Gemfile:

gem 'genderize-io'

And then execute:

$ bundle

Or install it yourself as:

$ gem install genderize-io


Simple Lookup

# Basic Lookup
lookup ='kim').determine
lookup = Genderize::Io::Lookup.determine('kim')

# Custom Options
lookup = Genderize::Io::Lookup.determine(
  host: '',
  country_id: 'dk',
  language_id: 'en'

Simple Response

lookup.url                    => ''                   => { 'name' => 'kim', 'gender' => 'female', ... }

# Data Methods                   => 'kim'
lookup.gender                 => 'female'
lookup.probability            => 0.94
lookup.count                  => 1098
lookup.country_id             => 'dk'
lookup.language_id            => 'en'
lookup.x_rate_limit_limit     => 1000
lookup.x_rate_limit_remaining => 738
lookup.x_rate_reset           => 13829
lookup.error                  => 'sorry, my bad!'

Batch Lookup

# Basic Lookup
lookup =['kim', 'jim']).determine
lookup = Genderize::Io::Batch::Lookup.determine(['kim', 'jim'])

# Custom Options
lookup = Genderize::Io::Batch::Lookup.determine(
  ['kim', 'jim'],
  host: '',
  country_id: 'dk',
  language_id: 'en'

Batch Response

lookup.url  => '[0]=kim&name[1]=jim' => {
  'rate_limits' => { 'x_rate_limit_limit' => 1069, ... },
  'responses' => [
    { 'name' => 'kim', 'gender' => 'female', ... },
    { 'name' => 'jim', 'gender' => 'male', ... }


After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to


Bug reports and pull requests are welcome on GitHub at[USERNAME]/genderize-io. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.


The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Genderize::Io project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.