Sha256: b33356d78315ababe0d5948bcf54ec45e97a8b2a976a0a94dfaa86a7551797ec

Contents?: true

Size: 940 Bytes

Versions: 3

Compression:

Stored size: 940 Bytes

Contents

# Gendered

**THIS LIBRARY IS STILL IN DEVELOPMENT.**

Guess the gender of names with the help of the [genderize.io](http://genderize.io).

```bash
gem install gendered
```

You can guess one name at a time...
```ruby
> require 'gendered'
> name = Gendered::Name.new("Sean")
> name.gender
> :not_guessed
> name.guess!
=> :male
> name.male?
=> true
> name.female?
=> false
> name.probability
=> "0.99E0"
> name.sample_size
=> 967
```

Or batch up a list of names (which sends only one request per hundred names to the API)...
```ruby
> require 'gendered'
> name_list = Gendered::NameList.new(["Sean","Theresa"])
> name_list.guess!
=> [:male, :female]
> name_list.collect { |name| name.male? }
=> [true, false]
> name_list.collect { |name| name.female? }
=> [false, true]
> name_list.collect { |name| name.probability.to_f }
=> [0.99, 1.0]
> name_list.collect { |name| name.sample_size }
=> [967, 370]
> name_list["Sean"].gender
=> :male
```

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gendered-0.0.7 README.md
gendered-0.0.5 README.md
gendered-0.0.4 README.md