Example: Calculating gender word in NYTimes. Neal Caren, Using Python to see how the Times writes about men and women, (2013) http://bit.ly/2GJBGfV
#Two lists of words that are used when a man or woman is present, based on Danielle Sucher's https://github.com/DanielleSucher/Jailbreak-the-Patriarchy
male_words=set(['guy','spokesman','chairman',"men's",'men','him',"he's",'his','boy','boyfriend','boyfriends','boys','brother','brothers','dad','dads','dude','father','fathers','fiance','gentleman','gentlemen','god','grandfather','grandpa','grandson','groom','he','himself','husband','husbands','king','male','man','mr','nephew','nephews','priest','prince','son','sons','uncle','uncles','waiter','widower','widowers'])
female_words=set(['heroine','spokeswoman','chairwoman',"women's",'actress','women',"she's",'her','aunt','aunts','bride','daughter','daughters','female','fiancee','girl','girlfriend','girlfriends','girls','goddess','granddaughter','grandma','grandmother','herself','ladies','lady','lady','mom','moms','mother','mothers','mrs','ms','niece','nieces','priestess','princess','queens','she','sister','sisters','waitress','widow','widows','wife','wives','woman'])
Output sample 1: Genderization of each term in target articles
word Male Female
the 66.4% 63.1%
and 41.3% 43.0%
to 42.7% 40.3%
a 45.2% 44.8%
of 40.0% 39.0%
in 38.7% 37.7%
...
Output sample 2: Sentence-level
25.9% gendered
19681 sentences about men.
6242 sentences about women.
3.2 sentences about men for each sentence about women.