Skip to content

ecmonsen/regender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Regender

A project to flip the gender of characters in English text.

Uses the Python NLTK natural language processing library.

Quick start

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]

More

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.

Create Python egg

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

About

Flips the gender of characters in English text.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages