Skip to content

Commit

Permalink
added screenshot and og meta tags
Browse files Browse the repository at this point in the history
  • Loading branch information
darenr committed Nov 4, 2018
1 parent 862ba18 commit 01da4d3
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
5 changes: 1 addition & 4 deletions bias.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,13 @@ function bias(phrase) {
feminine_word_count = feminine_words.length;
masculine_word_count = masculine_words.length;

console.log("feminine_words: " + feminine_words);
console.log("masculine_words: " + masculine_words);

var coding_score = feminine_word_count - masculine_word_count;

if (coding_score === 0) {
if (feminine_word_count) {
coding = "neutral";
} else {
coding = "empty";
coding = "empty, no gendered words found";
}
} else if (coding_score > 3) {
coding = "strongly feminine-coded";
Expand Down
Binary file added gender-bias-screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions index.htm
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,26 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

<meta property="og:locale" content="en_US" />
<meta property="og:type" content="article" />
<meta property="og:title" content="Javascript gender bias detector" />
<meta property="og:description" content="JGendered wording (i.e., masculine- and feminine-themed words, such as those associated with gender stereotypes) may be an unacknowledged, institutional-level mechanism of inequality gender maintenance." />
<meta property="og:url" content="https://darenr.github.io/gender-bias" />
<meta property="og:image" content="https://darenr.github.io/gender-bias/gender-bias-screenshot.png" />
<meta property="og:site_name" content="github - daren race - gender bias" />
<meta property="article:tag" content="gender bias" />
<meta property="article:tag" content="daren race" />
<meta property="article:tag" content="machine learning" />
<meta property="article:section" content="Articles" />
<meta property="article:published_time" content="2018-10-02T10:00:36+00:00" />
<meta property="article:modified_time" content="2018-10-20T14:49:37+00:00" />
<meta property="og:updated_time" content="2018-11-02T14:49:37+00:00" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:description" content="Gendered wording (i.e., masculine- and feminine-themed words, such as those associated with gender stereotypes) may be an unacknowledged, institutional-level mechanism of inequality gender maintenance." />
<meta name="twitter:title" content="Javascript gender bias detector" />
<meta name="twitter:image" content="https://darenr.github.io/gender-bias/gender-bias-screenshot.png" />


<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css">

Expand Down

0 comments on commit 01da4d3

Please sign in to comment.