{"id":22025179,"url":"https://github.com/drexed/genderize-io","last_synced_at":"2025-05-07T09:34:17.649Z","repository":{"id":48571214,"uuid":"112359978","full_name":"drexed/genderize-io","owner":"drexed","description":"Genderize.io Ruby SDK.","archived":false,"fork":false,"pushed_at":"2022-09-26T22:17:54.000Z","size":57,"stargazers_count":7,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-24T14:38:12.691Z","etag":null,"topics":["gender","genderize","genderizeio","ruby"],"latest_commit_sha":null,"homepage":"https://drexed.github.io/genderize-io","language":"Ruby","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drexed.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-28T16:25:23.000Z","updated_at":"2023-05-13T04:16:24.000Z","dependencies_parsed_at":"2022-09-23T19:31:55.870Z","dependency_job_id":null,"html_url":"https://github.com/drexed/genderize-io","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drexed%2Fgenderize-io","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drexed%2Fgenderize-io/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drexed%2Fgenderize-io/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drexed%2Fgenderize-io/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drexed","download_url":"https://codeload.github.com/drexed/genderize-io/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252851607,"owners_count":21814182,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gender","genderize","genderizeio","ruby"],"created_at":"2024-11-30T07:14:51.848Z","updated_at":"2025-05-07T09:34:17.629Z","avatar_url":"https://github.com/drexed.png","language":"Ruby","readme":"# Genderize::Io\n\n[![Gem Version](https://badge.fury.io/rb/genderize-io.svg)](http://badge.fury.io/rb/genderize-io)\n[![Build Status](https://travis-ci.org/drexed/genderize-io.svg?branch=master)](https://travis-ci.org/drexed/genderize-io)\n\nAPI wrapper for the [Genderize.io](https://genderize.io) first name gender determination system.\n*Be aware that the free API has a limit of 1000 determinations per day.*\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'genderize-io'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install genderize-io\n\n## Usage\n\n### Simple Lookup\n\n```ruby\n# Basic Lookup\nlookup = Genderize::Io::Lookup.new('kim').determine\nlookup = Genderize::Io::Lookup.determine('kim')\n\n# Custom Options\nlookup = Genderize::Io::Lookup.determine(\n  'kim',\n  host: 'https://api.genderize.io?api_key=xxx',\n  country_id: 'dk',\n  language_id: 'en'\n)\n```\n\n### Simple Response\n\n```ruby\nlookup.url                    =\u003e 'https://api.genderize.io?name=kim'\nlookup.data                   =\u003e { 'name' =\u003e 'kim', 'gender' =\u003e 'female', ... }\n\n# Data Methods\nlookup.name                   =\u003e 'kim'\nlookup.gender                 =\u003e 'female'\nlookup.probability            =\u003e 0.94\nlookup.count                  =\u003e 1098\nlookup.country_id             =\u003e 'dk'\nlookup.language_id            =\u003e 'en'\nlookup.x_rate_limit_limit     =\u003e 1000\nlookup.x_rate_limit_remaining =\u003e 738\nlookup.x_rate_reset           =\u003e 13829\nlookup.error                  =\u003e 'sorry, my bad!'\n```\n\n### Batch Lookup\n\n```ruby\n# Basic Lookup\nlookup = Genderize::Io::Batch::Lookup.new(['kim', 'jim']).determine\nlookup = Genderize::Io::Batch::Lookup.determine(['kim', 'jim'])\n\n# Custom Options\nlookup = Genderize::Io::Batch::Lookup.determine(\n  ['kim', 'jim'],\n  host: 'https://api.genderize.io?api_key=xxx',\n  country_id: 'dk',\n  language_id: 'en'\n)\n```\n\n### Batch Response\n\n```ruby\nlookup.url  =\u003e 'https://api.genderize.io?name[0]=kim\u0026name[1]=jim'\nlookup.data =\u003e {\n  'rate_limits' =\u003e { 'x_rate_limit_limit' =\u003e 1069, ... },\n  'responses' =\u003e [\n    { 'name' =\u003e 'kim', 'gender' =\u003e 'female', ... },\n    { 'name' =\u003e 'jim', 'gender' =\u003e 'male', ... }\n  ]\n}\n```\n\n## Development\n\nAfter 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.\n\nTo 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 [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/[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](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Genderize::Io project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/genderize-io/blob/master/CODE_OF_CONDUCT.md).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrexed%2Fgenderize-io","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrexed%2Fgenderize-io","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrexed%2Fgenderize-io/lists"}