demografix 0.2.0 → 0.2.1
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 +4 -4
- 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: e32fcb1768c53fe52e90ada47fe4d769670981532f6aea61084c5db7ec5fd636
|
|
4
|
+
data.tar.gz: 305dbff3f2b864435f09c6ade2bdf89f48e9140b5954aad39f6af4c9fe4293ad
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d9adc3c9710b7c42c12c235048b8c10cf6ff1c3e073beee61019d251f415f9e68ef7c95b2f9c467c5956a083fe99eb0a49dd06e05997d3d23b0c633bedf59446
|
|
7
|
+
data.tar.gz: 6d2f866f2052e62e96d6e58e7bf58856a879159a8539c85181d8660ffab749805a12f8dc7e176a9d75c220cda9d2f86184a6ba7a54efcd7ef95c2ed5c08f7837
|
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")
|
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.1
|
|
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: []
|