A project to flip the gender of characters in English text.
Uses the Python NLTK natural language processing library.
System requirements:
- Python 3 with pip
- virtualenv
Clone the gendered words dictionary in a sibling directory to this one (to get the gendered_words.json file needed for translation):
cd ..
git clone git@github.com:ecmonsen/gendered_words.git
Create a Python 3 virtualenv and install requirements:
virtualenv -p $(which python3) venv
. venv/bin/activate
pip install -r requirements.txt
Regender a text:
python regender/regender.py -f [PATH_TO_FILE]
We have a lot of work to do. Stay tuned!
Or, peruse the code.
Regendered, copyright-free texts can be found in the regendered_ebooks repo.
To create a Python egg of this project:
First install setuptools if not already installed:
pip install setuptools
Then create the egg:
python setup.py bdist_egg