Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (
Help us improve Python packaging - Donate today!

Identify insulting comments and users on social media

Project Description

# Insults [![Build Status](](

**TLDR: This project is very similar in functionality and purpose to Google's recent [Perspective API]( project** ![Imgur](


### Usage

>>> from insults import Insults

>>> comment = "You are a disgusting maggot of a person."
>>> Insults.rate_comment(comment)


>>> comments = ["You called me a 'dickhead', so I'll say you're a cunt.", "These shitakes taste like shit."]
>>> Insults.foul_language(comments, context=False)
`['cunt', 'shit'], None`

### Installation [Package]

`coming soon`

### Installation [Development]

If you'd like to contribute and hack on the newspaper project, feel free to clone a development version of this repository locally:

`git clone git://`

Once you have a copy of the source, run the following scripts:


A Conda virtual environment is created and everything needed should be now installed into it. To activate the environment, run:

`source ./`

or alternatively you can run single commands in the environment with:

`./ <COMMAND>`

##### Running The Tests

`python -m pytests tests/`

### Credit

* [cbrew]( for their original data-science work in [Imperium's Kaggle Competition]( Code in [cbrew/Insults](

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(22.8 MB) Copy SHA256 Hash SHA256
Source May 21, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting