Promote gender equality by identifying potential gender bias in letters of recommendation and evaluations
Autocorrect for bias
Implicit gender bias in evaluations negatively impacts women at every stage of her career. The goal of this project is to create a web-based text analysis tool that scans and reveals language bias associated with evaluations and letters of recommendation written for trainees and applicants. The tool will provide a summary of potential changes to the writer to help them remove bias. The hope is that by bringing awareness to the existence of implicit bias, we can change how evaluations for women are drafted and judged, thereby providing a concrete way to tackle gender disparities.
Thank you for visiting the Reading for Gender Bias project!
This document (the README file) introduces you to the project. Feel free to explore by section or just scroll through.
- What is the project about? (And why does it matter?)
- Usage
- About the founder
- How can you get involved?
- Contact me
- Learn more
- Gender disparities exist in medicine, science, business, and many other professions
- Letters of recommendation and evaluations written for women differ in key ways from letters written for men
- The differences impact everything from how women are graded in a class to whether they are hired or promoted
- Most writers (men and women) are unaware of gender bias in their writing
So, even if someone wants to write a really strong letter for a woman, they will probably include language that reflects implicit bias, which weakens the letter.
Reading for Gender Bias is a web-based text analysis tool that:
- Scans evaluations or letters for language associated with bias
- Summarizes changes that would reduce bias for the writer
- Increases awareness of gender bias
This document is currently a work-in-progress; please feel free to ask for clarification in the Issues tab of this repository, or on our slack workspace (details below).
Currently, the most reliable way to download and start using this code is to clone it from this repository and install it using pip:
git clone https://github.com/gender-bias/gender-bias
cd gender-bias
pip3 install -e .
NOTE: The last line in the above snippet installs this library in "editable" mode, which is probably fine while the library is in a state of flux.
This installation process will add a new command-line tool to your PATH, called genderbias
.
genderbias -h
usage: genderbias [-h] [--file FILE] [--json] [--list-detectors]
[--detectors DETECTORS]
CLI for gender-bias detection
optional arguments:
-h, --help show this help message and exit
--file FILE, -f FILE The file to check
--json, -j Enable JSON output, instead of text
--list-detectors List the available detectors
--detectors DETECTORS
Use specific detectors, not all available
You can probably ignore most of these options when getting started.
There are two ways to check a document:
This option streams a file from stdin and writes its suggestions to stdout. You can use it like this:
cat my-file.txt | genderbias
If you don't have a text file handy, you can try it out on one of ours:
cat ./example_letters/letterofRecW | genderbias
The tool will print its suggestions out to stdout:
Effort vs Accomplishment
[516-527]: Effort vs Accomplishment: The word 'willingness' tends to speak about effort more than accomplishment. (Try replacing with phrasing that emphasizes accomplishment.)
[2915-2926]: Effort vs Accomplishment: The word 'willingness' tends to speak about effort more than accomplishment. (Try replacing with phrasing that emphasizes accomplishment.)
[3338-3347]: Effort vs Accomplishment: The word 'dedicated' tends to speak about effort more than accomplishment. (Try replacing with phrasing that emphasizes accomplishment.)
[3492-3502]: Effort vs Accomplishment: The word 'commitment' tends to speak about effort more than accomplishment. (Try replacing with phrasing that emphasizes accomplishment.)
[3524-3533]: Effort vs Accomplishment: The word 'tenacious' tends to speak about effort more than accomplishment. (Try replacing with phrasing that emphasizes accomplishment.)
[3706-3716]: Effort vs Accomplishment: The word 'commitment' tends to speak about effort more than accomplishment. (Try replacing with phrasing that emphasizes accomplishment.)
SUMMARY: This document has a high ratio (6:1) of words suggesting effort to words suggesting concrete accomplishment.
If you'd rather that the tool print its suggestions to another file, you can use the following:
cat ./example_letters/letterofRecW | genderbias > edits-to-made.txt
This functionality is EXACTLY the same; just a matter of how you prefer to run the tool!
genderbias -f ./example_letters/letterofRecW
The -f
or --file
flag can be used to specify a file.
The output of this tool is a character-index span that you can think of as "highlighting" the problematic (or potentially-problematic) text. Our intention is to add a more human-readable form as well; if you're interested in helping develop that capability, please get in touch!
The tool can also be run as a REST server in order to operate on text sent from a front-end — for example, our client-side website. To run the server, run the following:
genderbias-server
This will start a Flask server listening on port 5000.
To use this server, send a POST requests to the /check
endpoint, with a JSON body of the following form:
{
"text": "My text goes here"
}
For example, in Python, using requests
:
import requests
response = requests.post(
"http://localhost:5000/check",
headers={"Content-Type": "application/json"},
json={"text": "this is my text"}
)
print(response.json())
The response is JSON of the form:
{
"issues": List[genderbias.Issue],
"text": <the same text you sent, for reference>
}
Mollie is a medical student and a future neuroscientist who would like to make the world a better place.
The development of this project is mentored by Jason as part of Mozilla Open Leaders and started in 2018.
So glad you asked! WooHoo!
Help in any way you can!
We need expertise in coding, web design, program development, documentation, and technical writing. We're using Python for the text analysis. I've created issues around different rules/signals to search for in letters. Example letters can be found here.
If you think you can help in any of these areas or in an area I haven't thought of yet, please check out our contributors' guidelines and our roadmap.
The goal of this project is to promote gender equity, so we want to maintain a positive and supportive environment for everyone who wants to participate. Please follow the Mozilla Community Participation Guidelines in all interactions on and offline. Thanks!
If you want to report a problem or suggest an improvement, please open an issue at this github repository. You can also reach Mollie by email ([email protected]) or on twitter.
Studies on gender bias show that letters/evaluations written for women are:
- Less likely to mention publications, projects, and research
- Less likely to include superlatives ('She was the best, the top, the greatest')
- Less likely to use nouns ('He was a researcher' while 'she taught')
- More likely to include minimal assurance ('She can do the job') rather than a strong endorsement
- More likely to highlight effort ('She is hard-working') instead of highlighting accomplishments ('her research')
- More likely to discuss personal life and fail to use formal titles
- More likely to include gender stereotypes ('She is compassionate' while 'he is a leader') and emotion-focused words
- More likely to raise doubt
- Shorter
- Trix, F. & Psenka, C., "Exploring the color of glass: Letters of recommendation for female and male medical faculty," Discourse & Society 14(2003): 191-220. [Link] [PDF]
- Dutt, K., Pfaff, D. L., Bernstein, A. F., Dillard, J. S., & Block, C. J. (2016). Gender differences in recommendation letters for postdoctoral fellowships in geoscience. Nature Geoscience, 9(11), 805. [Link]
- Schmader, T., Whitehead, J., & Wysocki, V. H. (2007). A linguistic comparison of letters of recommendation for male and female chemistry and biochemistry job applicants. Sex Roles, 57(7-8), 509-514. [Link] [PDF]
- Trix, F. & Psenka, C., "Exploring the color of glass: Letters of recommendation for female and male medical faculty," Discourse & Society 14(2003): 191-220. [Link] [PDF]
- Isaac, C., Chertoff, J., Lee, B., & Carnes, M. (2011). Do students’ and authors’ genders affect evaluations? A linguistic analysis of medical student performance evaluations. Academic Medicine, 86(1), 59. [Link [PDF]
- Trix, F. & Psenka, C., "Exploring the color of glass: Letters of recommendation for female and male medical faculty," Discourse & Society 14(2003): 191-220. [Link] [PDF]
- Deaux, K. & Emswiller, T., "Explanations of successful performance on sex-linked tasks: What is skill for the male is luck for the female," Journal of Personality and Social Psychology 29(1974): 80-85 [Link]
- Isaac, C., Chertoff, J., Lee, B., & Carnes, M. (2011). Do students’ and authors’ genders affect evaluations? A linguistic analysis of medical student performance evaluations. Academic Medicine, 86(1), 59. [Link [PDF]
- Steinpreis, R., Anders, K.A., & Ritzke, D., "The impact of gender on the review of the curricula vitae of job applicants and tenure candidates: A national empirical study," Sex Roles 41(1999): 509-528 [Link] [PDF]
- Isaac, C., Chertoff, J., Lee, B., & Carnes, M. (2011). Do students’ and authors’ genders affect evaluations? A linguistic analysis of medical student performance evaluations. Academic Medicine, 86(1), 59. [Link [PDF]
- Madera, J. M., Hebl, M. R., & Martin, R. C. (2009). Gender and letters of recommendation for academia: Agentic and communal differences. Journal of Applied Psychology, 94(6), 1591. [Link] [PDF]
- Trix, F. & Psenka, C., "Exploring the color of glass: Letters of recommendation for female and male medical faculty," Discourse & Society 14(2003): 191-220. [Link] [PDF]
- Axelson RD, Solow CM, Ferguson KJ, Cohen MB. Assessing implicit gender bias in Medical Student Performance Evaluations. Eval Health Prof. 2010 Sep;33(3):365-85. [Link] [PDF]
- Eagly, A.H.; Karau, S.J., "Role congruity theory of prejudice toward female leaders," Psychological Review 109, no. 3 (July 2002): 573-597.; Ridgeway, 2002. [Link] [PDF]
- Foschi M. Double standards for competence: theory and research. Ann Rev Soc. 2000;26:21–42. [Link] [PDF]
- Gaucher, D., Friesen, J., & Kay, A. C. (2011, March 7). Evidence That Gendered Wording in Job Advertisements Exists and Sustains Gender Inequality. Journal of Personality and Social Psychology. [Link] [PDF]
- Hirshfield LE. ‘‘She’s not good with crying’’: the effect of gender expectations on graduate students’ assessments of their principal investigators. Gender Educ. 2014;26(6):601–617. [Link]
- Madera, J. M., Hebl, M. R., & Martin, R. C. (2009). Gender and letters of recommendation for academia: Agentic and communal differences. Journal of Applied Psychology, 94(6), 1591. [Link] [PDF]
- Ross DA, Boatright D, Nunez-Smith M, Jordan A, Chekroud A, Moore EZ (2017) Differences in words used to describe racial and gender groups in Medical Student Performance Evaluations. PLoS ONE 12(8): e0181659. [Link] [PDF]
- Sprague J, Massoni K. Student evaluations and gendered expectations: what we can’t count can hurt us. Sex Roles. 2005;53(11):779–793. [Link] [PDF]
- Steinpreis RE, Anders KA, Ritzke D. The impact of gender on the review of the curricula vitae of job applicants and tenure candidates: a national empirical study. Sex Roles. 1999;41(7):509–528. [Link] [PDF]
- Trix, F. & Psenka, C., "Exploring the color of glass: Letters of recommendation for female and male medical faculty," Discourse & Society 14(2003): 191-220. [Link] [PDF]
- Wenneras C, Wold A. Nepotism and sexism in peer review. Nature. 1997;387(6631):341–343. [Link] [PDF]
- Trix, F. & Psenka, C., "Exploring the color of glass: Letters of recommendation for female and male medical faculty," Discourse & Society 14(2003): 191-220. [Link] [PDF]
- Madera, J. M., Hebl, M. R., Dial, H., Martin, R., & Valian, V. (2019). Raising doubt in letters of recommendation for academia: gender differences and their impact. Journal of Business and Psychology, 34(3), 287-303. [Link]
- Dutt, K., Pfaff, D. L., Bernstein, A. F., Dillard, J. S., & Block, C. J. (2016). Gender differences in recommendation letters for postdoctoral fellowships in geoscience. Nature Geoscience, 9(11), 805. [Link]
- Trix, F. & Psenka, C., "Exploring the color of glass: Letters of recommendation for female and male medical faculty," Discourse & Society 14(2003): 191-220. [Link] [PDF]