Opt Out is a browser extension that filters sexual harassment and sexist hate speech from an individual’s twitter feed.
The General Data Protection Regulation (GDPR) has changed our lives online on social media platforms. We have the right to be forgotten, to see what is being collected about us and to opt-out if we wish. The current abuse that those who identify as women suffer is not avoidable. We see Opt Out as an extension of the GDPR that also protects the human rights of women and those with intersecting identities online. While steps have been made to protect these people online, not enough has been done. This is a global tragedy affecting the well-being, economical potential and political representation of these people. Let's Opt Out.
To learn more about this problem and explore the steps Opt Out is taking to combat it, see the Opt Out Wiki.
The project is still in its infancy. Please see 'Project Development' below for the current status.
git clone https://github.com/opt-out-tool/opt-out cd opt-out pip install -r requirements.txt
To Deploy Locally
export FLASK_APP=deploy.py export FLASK_DEBUG=1 flask run
- Deploy locally (follow the steps above)
- And in the browser go to
127.0.0.1:5000/predict?sentence=your sentence to analyse. Be sure to include spaces in the sentences. Spaces can be explicity set using the UTF-8 encoded
%20. For example, to test the sentence 'Just Opt Out', you could run:
127.0.0.1:5000/predict?sentence=Just Opt Outor
To run the tests:
cd opt-out python -m pytest
To Deploy (Docker)
Opt Out is an open source project under active development. Currently, machine learning models are being evaluated for their ability to classify sexual harassment text. If you would like to test the current model (trained on troll data), please see the 'Installation Instructions' below. If you would like to contribute to the project, please see Contributing first, and then check out the find-out and try-out repos.
If you would like to fund the project or make a donation, please email Opt Out.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.