beauvoir 0.0.2b → 0.0.2c

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -8
  3. data/lib/beauvoir.rb +8 -0
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d08d58653a1e5586213426ba0026787bb0c9d5c6
4
- data.tar.gz: 65f2d360cec83211db9809f6025195f243737720
3
+ metadata.gz: 9f58dceb149ae08f0e1ce66318423fd316a1b4f9
4
+ data.tar.gz: 5c1ceaeaee4f6f437b6afaa460c63e0415e1dfa1
5
5
  SHA512:
6
- metadata.gz: 495d9a48b07c37cb9110f4787cc75b8c4b9bc79089c34e493d541f09514223708ffabb995d199e9fd786b7a03307f0f3e73616e5a0e691609cab1c42563c8b7e
7
- data.tar.gz: 189b378c9f7eacee1acaf206a60d975fd9f1c4108eb2b8cbad53a4535c7154f74a6398fea2ae2f66a0f2f1a90466170b6bd147d3e7e654d220fc10208b24be7b
6
+ metadata.gz: 34ca58e2b539d7ed9b5e1be9a6a3470681e537f57a69a554d82e0affad33030e9574c985a13ef55dc0a9ee19e301df25f192de56668030635002fddcb44c6a12
7
+ data.tar.gz: f4206f47ecc7dccb2dfdc05b910fbdf2d5b8cb41eeb12caee87bd13d27e845e901204c590c421e01ed2c8205bd81559be6c09878fbc8a441a52bf40cdb4e278e
data/README.md CHANGED
@@ -12,9 +12,9 @@ This is pre-alpha software. The API will change, I guarantee it.
12
12
  Caveats
13
13
  -------
14
14
 
15
- It's important to note that many people identify as neither a men nor a women. It's important, too, to note that many people who do identify as male or female have names that are held by far more people who identify as another gender. All of these people deserve not to be misgendered.
15
+ It's important to note that many people identify as neither a men nor a women. It's important, too, to note that many people who do identify as male or female have names for which most other people with that name identify as a different gender. All of these people deserve not to be misgendered.
16
16
 
17
- Nevertheless, automatically classifying people by apparent gender can be a very useful tool to perform censuses of communities or publications to detect and quantify perhaps-invisible bias. VIDA is a pioneer in this field, but their \"Count\" is limited by a manual methodology that depends hundreds of person-hours of labor. There is a place for more automated counts and Beauvoir can help, but if you plan to publish a count like this, you should be careful. You should probably set very high confidence thresholds to make sure you're very unlikely to misgender someone; you should also be prepared to be responsive and respectful if you do. You should include your methodology, prominently. You might consider emphasizing aggregate numbers over your mapping of individual people's names to genders.
17
+ Nevertheless, automatically classifying people by apparent gender can be a very useful tool to perform censuses of communities or publications to detect and quantify perhaps-invisible bias. VIDA is a pioneer in performing theses censuses, but their \"Count\" is limited by a manual methodology that depends hundreds of person-hours of labor. There is a place for more automated counts and Beauvoir can help, but if you plan to publish a count like this, you should be careful. Beauvoir's confidence thresholds are set very high by default on purpose, you shouldn't lower them unless you take other steps to make sure that you're very unlikely to misgender someone; you should also be prepared to be responsive and respectful if you do. You should include your methodology, prominently. You might consider emphasizing aggregate numbers over your mapping of individual people's names to genders.
18
18
 
19
19
  Usage
20
20
  -----
@@ -31,9 +31,9 @@ b.guess("Mary")
31
31
  b.guess("Sam")
32
32
  => :unknown
33
33
 
34
- b.femaleness_ratio("Sam")
34
+ b.estimated_female_value("Sam")
35
35
  => 0.0103360994972961
36
- b.maleness_ratio("Sam")
36
+ b.estimated_male_value("Sam")
37
37
  => 0.9896639005027039
38
38
  ````
39
39
 
@@ -50,10 +50,10 @@ b.guess("Sam")
50
50
  => :male
51
51
 
52
52
  #the same as above
53
- b.femaleness_ratio("Sam")
54
- => 0.010336099497296115
55
- b.maleness_ratio("Sam")
56
- => 0.9896639005027039
53
+ b.estimated_female_value("Sam")
54
+ => 0.01034936186847522
55
+ b.estimated_male_value("Sam")
56
+ => 0.9896506381315247
57
57
  ````
58
58
 
59
59
  Methodology
@@ -112,4 +112,12 @@ class Beauvoir
112
112
  nil
113
113
  end
114
114
  end
115
+
116
+ def inspect
117
+ inspect_string = "#<#{self.class.name}:0x#{(self.object_id*2).to_s(16)} "
118
+ exclude = [:@names_by_names, :@names_genders]
119
+ fields = self.instance_variables - exclude
120
+ inspect_string << fields.map{|field| "#{field}=#{instance_variable_get(field)}"}.join(", ") << ">"
121
+ inspect_string
122
+ end
115
123
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beauvoir
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2b
4
+ version: 0.0.2c
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy B. Merrill
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-26 00:00:00.000000000 Z
11
+ date: 2013-11-14 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: "Guess gender by a first name using more detailed, better\n sourced
14
14
  data from Open Gender Tracker's Global Name Data.<br />\n Beauvoir