https://github.com/root-app/name_to_gender
https://github.com/root-app/name_to_gender
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/root-app/name_to_gender
- Owner: Root-App
- Created: 2016-10-05T12:59:22.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-07T14:00:38.000Z (over 9 years ago)
- Last Synced: 2025-10-07T23:58:28.474Z (9 months ago)
- Language: Ruby
- Size: 361 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NameToGender
Determines the gender of a first name. A ruby port of https://github.com/MarcSalvat/sexmachine
Makes several simplifyiing assumptions:
* Only parses names common in the USA
* Ignores case
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'name_to_gender'
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install name_to_gender
## Usage
```ruby
NameToGender.build.gender_of("Fred") # => "M"
```
## License
This code is distributed under the GPLv3. The data file nam_dict.txt is released under the GNU Free Documentation License.