demografix 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +6 -6
- data/lib/demografix/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: aea912afd15530d8297e49ce69f4fd148e705fd6f9e3c9aadd1d1884a06faf55
|
|
4
|
+
data.tar.gz: a2f3f161784c695a1c742c7f84d54ed5835d6b2dff57d55495d27a8a6f2ba221
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 95c4302f32ff07c83b2aaa275399e9c567ffb5a419dfdf34095608df190b8a1e286736b7dce4b02125c7b9bdec41608a0d51b7cb5351e09418601ccff7b31e4d
|
|
7
|
+
data.tar.gz: 1acf2d0f6ef0736ae2a1708d15f4301ee24c738add90b417db045b6fdd33c74dce3634c4cd43cd30a2906aa7e86e41d39ed938d645ca3ec7ae281ca8b47f2ab9
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# demografix (Ruby)
|
|
2
2
|
|
|
3
|
-
Predict gender, age, and nationality from
|
|
3
|
+
Predict gender, age, and nationality from names. One Ruby client covers all three Demografix
|
|
4
4
|
APIs — [genderize.io](https://genderize.io) (gender), [agify.io](https://agify.io) (age), and
|
|
5
5
|
[nationalize.io](https://nationalize.io) (nationality) — with single-name lookups and batches of up
|
|
6
6
|
to 100 names per request.
|
|
@@ -52,7 +52,7 @@ distribution.
|
|
|
52
52
|
|
|
53
53
|
## genderize
|
|
54
54
|
|
|
55
|
-
Predict gender from
|
|
55
|
+
Predict gender from names.
|
|
56
56
|
|
|
57
57
|
```ruby
|
|
58
58
|
result = client.genderize("peter")
|
|
@@ -76,7 +76,7 @@ probability, and `0` count. That is a successful response, not an error.
|
|
|
76
76
|
|
|
77
77
|
## agify
|
|
78
78
|
|
|
79
|
-
Predict age from
|
|
79
|
+
Predict age from names.
|
|
80
80
|
|
|
81
81
|
```ruby
|
|
82
82
|
result = client.agify("michael")
|
|
@@ -97,7 +97,7 @@ buckets = ages.group_by { |age| (age / 10) * 10 }
|
|
|
97
97
|
|
|
98
98
|
## nationalize
|
|
99
99
|
|
|
100
|
-
Predict nationality from
|
|
100
|
+
Predict nationality from names.
|
|
101
101
|
|
|
102
102
|
```ruby
|
|
103
103
|
result = client.nationalize("nguyen")
|
|
@@ -216,10 +216,10 @@ The host URLs and the User-Agent are fixed constants, not options.
|
|
|
216
216
|
|
|
217
217
|
## API keys
|
|
218
218
|
|
|
219
|
-
An API key is required. Creating one is free and includes
|
|
219
|
+
An API key is required. Creating one is free and includes 1,000 names per month.
|
|
220
220
|
|
|
221
221
|
Quota counts **names, not requests**. A single-name call costs 1. A batch of 100 names costs 100. The
|
|
222
|
-
free tier therefore covers
|
|
222
|
+
free tier therefore covers 1,000 names in a month however they are split across calls.
|
|
223
223
|
|
|
224
224
|
Generate a key in your dashboard at [genderize.io](https://genderize.io),
|
|
225
225
|
[agify.io](https://agify.io), or [nationalize.io](https://nationalize.io). One key works across all
|
data/lib/demografix/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: demografix
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Demografix
|
|
@@ -52,9 +52,9 @@ dependencies:
|
|
|
52
52
|
- !ruby/object:Gem::Version
|
|
53
53
|
version: '3.18'
|
|
54
54
|
description: 'One client for the three Demografix APIs: gender, age, and nationality
|
|
55
|
-
prediction from a
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
prediction from a name. Look up a single name or send a batch of up to 100 names
|
|
56
|
+
in one request for bulk demographic analysis, optionally scoped to a country, and
|
|
57
|
+
read the remaining quota carried on every response.'
|
|
58
58
|
email:
|
|
59
59
|
- info@genderize.io
|
|
60
60
|
executables: []
|
|
@@ -92,6 +92,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
92
92
|
requirements: []
|
|
93
93
|
rubygems_version: 3.6.9
|
|
94
94
|
specification_version: 4
|
|
95
|
-
summary: Predict gender, age, and nationality from
|
|
96
|
-
|
|
95
|
+
summary: Predict gender, age, and nationality from names — the official Ruby client
|
|
96
|
+
for genderize.io, agify.io, and nationalize.io.
|
|
97
97
|
test_files: []
|