{"id":14037000,"url":"https://github.com/thundergolfer/Insults","last_synced_at":"2025-07-27T04:33:42.624Z","repository":{"id":16612906,"uuid":"80337611","full_name":"thundergolfer/Insults","owner":"thundergolfer","description":"Detect whether a social media comment is insulting or derogatory","archived":false,"fork":false,"pushed_at":"2022-11-21T21:06:45.000Z","size":15136,"stargazers_count":23,"open_issues_count":19,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-06-12T08:31:16.690Z","etag":null,"topics":["kaggle","linear-model","machine-learning","natural-language-processing","sklearn","social-media"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thundergolfer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-29T09:15:52.000Z","updated_at":"2022-11-21T22:24:45.000Z","dependencies_parsed_at":"2023-01-13T20:30:43.268Z","dependency_job_id":null,"html_url":"https://github.com/thundergolfer/Insults","commit_stats":null,"previous_names":["thundergolfer/insult"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thundergolfer%2FInsults","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thundergolfer%2FInsults/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thundergolfer%2FInsults/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thundergolfer%2FInsults/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thundergolfer","download_url":"https://codeload.github.com/thundergolfer/Insults/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":214982086,"owners_count":15811653,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["kaggle","linear-model","machine-learning","natural-language-processing","sklearn","social-media"],"created_at":"2024-08-12T03:02:23.736Z","updated_at":"2024-12-02T16:31:33.670Z","avatar_url":"https://github.com/thundergolfer.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Insults [![Build Status](https://travis-ci.com/thundergolfer/Insults.svg?token=yHGWQ42iK2BPk1FjaUMc\u0026branch=master)](https://travis-ci.com/thundergolfer/Insults) [![Code Climate](https://codeclimate.com/repos/58fb905df9bb6802870021a9/badges/498dfdd9972b95ca793c/gpa.svg)](https://codeclimate.com/repos/58fb905df9bb6802870021a9/feed) [![Issue Count](https://codeclimate.com/repos/58fb905df9bb6802870021a9/badges/498dfdd9972b95ca793c/issue_count.svg)](https://codeclimate.com/repos/58fb905df9bb6802870021a9/feed)\n\n**TLDR: This project is very similar in functionality and purpose to Google's recent [Perspective API](https://www.perspectiveapi.com/) project** ![Imgur](http://i.imgur.com/kzLNj2z.png)\n\n-----\n\n### Basic Usage\n\n```python\n\u003e\u003e\u003e from insults import Insults\n\n\u003e\u003e\u003e comment = \"You are a disgusting maggot of a person.\"\n\u003e\u003e\u003e Insults.load_model()\n\u003e\u003e\u003e Insults.rate_comment(comment)\n```\n\n`0.89`\n\n```python\n\u003e\u003e\u003e comments = [\"You called me a \\\"dickhead\\\", so I'll say you're a cunt.\", \"These shitakes taste like shit.\"]\n\u003e\u003e\u003e Insults.foul_language(comments, context=False)\n```\n`['cunt', 'shit'], None`\n\n### Installation [Package]\n\n**Note:** This package is compatible with *Python 2* only\n\n`pip install insults`\n\n### Installation [Development]\n\nIf you'd like to contribute and hack on this project, feel free to clone a development version of this repository locally:\n\n`git clone git://github.com/thundergolfer/Insults.git`\n\nOnce you have a copy of the source, run the following scripts:\n\n`./install_miniconda.sh`\n`./install_local.sh`\n\nA Conda virtual environment is created and everything needed should be now installed into it. To activate the environment, run:\n\n`source ./run_in_environment.sh`\n\nor alternatively you can run single commands in the environment with:\n\n`./run_in_environment.sh \u003cCOMMAND\u003e`\n\n##### Running The Tests\n\n`python -m pytest tests/`\n\n### Credit\n\n* [Character-level Convolutional Networks for Text\nClassification](https://arxiv.org/pdf/1509.01626.pdf), with simple implementation by [mhjabreel](https://github.com/mhjabreel/) over [here](https://github.com/mhjabreel/CharCnn_Keras/blob/master/char_cnn.py)\n* [cbrew](https://github.com/cbrew) for their original data-science work in [Imperium's Kaggle Competition](https://www.kaggle.com/c/detecting-insults-in-social-commentary). Code in [cbrew/Insults](https://github.com/cbrew/Insults)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthundergolfer%2FInsults","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthundergolfer%2FInsults","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthundergolfer%2FInsults/lists"}