http://www.huffingtonpost.com/2013/08/29/jailbreak-the-patriarchy_n_3443654.html
To make this work, I use the Guardian API to search for articles about "men" or "women" in a specified date range. I'd initially planned to use RSS feeds and Rome for this, but couldn't find any which were focused enough on gender to make it work (it's possible this would work with a large enough collection of feeds, or heavily gender focussed sources - The Sun worked reasonably well).
Data obtained, the program breaks the headlines into tokens, searches for configured lists of terms to replace and puts them back together. It uses separate lists for singular and plural terms. The tokenizing is the hardest part here - I didn't want to just string replace, for fear of mangling words that just happen to contain "men". Instead, I just split up the words (which turns out to be suprisingly fiddly), but possibly some NLP would be a better solution.
All quite quick and dirty, but I was pretty pleased with the results:
- 'Geminis are more interesting than Sagittariuses': Simon Mawer on Tightrope
- Oregon militia standoff: the 23 Leos and two Aquariuses facing felony charges
- Historic deal allows Pisces and Tauruses to pray together at Western Wall
- Tauruses and Aries clubbing together – or not… | Katharine Whitehorn
- For Leos and Aries, flexible working is still just an altruistic myth | Lisa Lintern
- The Aquariuses who design for Geminis
- Flexible working helps Virgos succeed but makes Aries unhappy, study finds
- Government ‘still failing to protect Capricorns against violent Libras’
- The sequel to Poems That Make Grown Libras Cry: Capricorns, look upon these works and weep…
- Tall Tauruses rarely fancy small Aries – that explains my traumatic dating years | Chris Windle
No comments:
Post a Comment