Code Monkey home page Code Monkey logo

gender-decoder's Introduction

gender-decoder

Gender Decoder is a simple tool that checks the text of job ads to see if it includes any subtly gender-coded language.

By 'subtly gender-coded language' I mean language that reflects stereotypes about men and women, like women being more nurturing and men more aggressive. A 2011 research paper showed that subtly masculine-coded language in ads can put women off applying for jobs.

To be clear: I don't believe that the concepts with masculine-coded words are the exclusive preserve of men. I know that people of all genders can be innovative, reckless, self-reliant and/or unreasonable. But the stereotype our society has created of men says that they are much more likely to have these qualities. The same thing goes for women. Unfortunately, people with non-binary genders were not included in the original research.

For more info, or to use the tool: http://gender-decoder.katmatfield.com

The analysis bit of this tool has been made into a Python package, by Richard Pope: https://pypi.python.org/pypi/genderdecoder/0.3

If you're interested in Gender Decoder, you may also like Karen Schoellkopf's https://www.hiremorewomenintech.com/

gender-decoder's People

Contributors

lovedaybrooke avatar maxnordlund avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gender-decoder's Issues

๐Ÿฆˆ

I got an amusing: "sharks support understanding" message with this (see below) and was puzzled so found you're using the word "shar" in the feminine list. I'm guessing this is part of "share"? Or "sharing"? Not sure. Either way "sharks" should probably not come up. Though they're great. (We're a digital agency building things for wildlife conservation, hence the sharks!).

image

Local gender-decoder running in a container

I've created a simple cloud-init that clones this repo, configures PostgreSQL + Flask, and spins up the gender-decoder in a local container.

We use this heavily to analyze our public-facing job postings, but those aren't always made public straight away, so we needed a way to analyze the posts in draft before publishing. This is also being used to analyze local collateral.

There are a few hard-coded values that point back to the public gender-decoder, I'll PR those and patch those out in the jinja2 templates to make those tunables (specifically, the referral link to the analyzed content).

The cloud-init YAML below will..

  • Clone this repository's 'main' branch
  • Create and configure a simple PostgreSQL user
  • Install and configure the necessary Python dependencies of Flask
  • Launch Flask with the application listening on port :5000

To create and run this:

  1. Create a local container (username is ubuntu, password is ubuntu)

    uvt-kvm create gdecoder release=focal arch=amd64 --memory 4096 --cpu 2 --disk 20 --host-passthrough --user-data gender-decoder.yaml
    
  2. Give the container a few minutes to spin up and configure the various pieces

  3. Find the container's IP, so you can reach the gender-decoder on :5000, using:

    uvt-kvm ip gender-decoder
    

YAML included below:

#cloud-config
no-log-init: true
preserve_hostname: false
package_update: false
package_upgrade: false
manage_etc_hosts: true
apt_pipelining: true
fqdn: gender-decoder.lab
ssh_pwauth: True
password: ubuntu
chpasswd: { expire: False }
users:
  - default
  - name: ubuntu
    gecos: Ubuntu User
    primary_group: ubuntu
    groups: users
    sudo: ALL=(ALL) NOPASSWD:ALL
    lock_passwd: false
    ssh_redirect_user: false
packages:
  - python3-venv
  - gcc
  - libpython3-dev
  - openssh-server
  - python3-pip
  - postgresql-12
  - libpython3.8-dev
  - postgresql-client-12
  - postgresql-server-dev-all
  - python3-flask
  - python3-flask-sqlalchemy
  - python3-wtforms
  - python3-flaskext.wtf
  - python3-psycopg2
  - python3-migrate
runcmd: 
  - [git, clone, https://github.com/lovedaybrooke/gender-decoder, /opt/gender-decoder]
  - [sudo, -u, postgres, createuser, '--superuser', gender-decoder]
  - [sudo, -u, postgres, createdb, gender-decoder]
  - [sudo, -u, postgres, psql, -U, postgres, -d, postgres, -c, "ALTER USER \"gender-decoder\" with password 'g3nderD3c0der';"]
  - "SECRET_KEY=$(dbus-uuidgen) DATABASE_URL='postgresql://gender-decoder:[email protected]/gender-decoder' python3 /opt/gender-decoder/db_create.py"
  - "SECRET_KEY=$(dbus-uuidgen) DATABASE_URL='postgresql://gender-decoder:[email protected]/gender-decoder' FLASK_APP=/opt/gender-decoder/runsite.py flask run --host=$(hostname -I)"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.