{"id":16194698,"url":"https://github.com/hironsan/hatesonar","last_synced_at":"2025-05-16T09:04:56.238Z","repository":{"id":38238702,"uuid":"119046941","full_name":"Hironsan/HateSonar","owner":"Hironsan","description":"Hate Speech Detection Library for Python.","archived":false,"fork":false,"pushed_at":"2025-05-11T02:17:46.000Z","size":4271,"stargazers_count":189,"open_issues_count":22,"forks_count":37,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-05-11T03:26:39.414Z","etag":null,"topics":["hate-speech","machine-learning","natural-language-processing","python"],"latest_commit_sha":null,"homepage":"https://hatesonar.herokuapp.com/","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hironsan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-01-26T12:03:06.000Z","updated_at":"2025-05-09T01:47:25.000Z","dependencies_parsed_at":"2024-01-11T04:55:34.250Z","dependency_job_id":"3a060b9d-697e-4555-a056-b0bb4233f57b","html_url":"https://github.com/Hironsan/HateSonar","commit_stats":{"total_commits":138,"total_committers":3,"mean_commits":46.0,"dds":0.3115942028985508,"last_synced_commit":"6b0623ef93f56fab5400f56481119a7f90f4f1ca"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hironsan%2FHateSonar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hironsan%2FHateSonar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hironsan%2FHateSonar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hironsan%2FHateSonar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hironsan","download_url":"https://codeload.github.com/Hironsan/HateSonar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254501557,"owners_count":22081528,"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":["hate-speech","machine-learning","natural-language-processing","python"],"created_at":"2024-10-10T08:24:36.985Z","updated_at":"2025-05-16T09:04:51.225Z","avatar_url":"https://github.com/Hironsan.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HateSonar: Hate Speech Detection\nHateSonar is the *hate speech detection* library for Python.\n\n![Demo Image.](https://www.pakutaso.com/shared/img/thumb/doiteneko171027_TP_V.jpg)\n\n\u003c!--\nhttps://www.pakutaso.com/20171036300post-13829.html\n--\u003e\n\nBehold, the power of HateSonar:\n\n```python\n\u003e\u003e\u003e from hatesonar import Sonar\n\u003e\u003e\u003e sonar = Sonar()\n\u003e\u003e\u003e sonar.ping(text=\"At least I'm not a nigger\")\n{\n  \"text\" : \"At least I'm not a nigger\",\n  \"top_class\" : \"hate_speech\",\n  \"classes\" : [ {\n    \"class_name\" : \"hate_speech\",\n    \"confidence\" : 0.6001793646345871\n  }, {\n    \"class_name\" : \"offensive_language\",\n    \"confidence\" : 0.399548534507691\n  }, {\n    \"class_name\": \"neither\",\n    \"confidence\": 0.0002721008577219325\n  } ]\n}\n```\n\nHateSonar allows you to detect hate speech and offensive language in text, without the need for training. There's no need to train the model. You have only to fed text into HateSonar. It detects hate speech with the confidence score.\n\n[BERT based model](https://colab.research.google.com/drive/1K4bH_vot_W9XXjlw9O-2ucROW9N4ZoDN?usp=sharing)\n\n## Feature Support\n* Hate speech and offensive language detection\n\nHateSonar officially supports Python 2.7 \u0026 3.4–3.6\n\n## Installation\nTo install HateSonar, simply use `pip`:\n\n```bash\n$ pip install hatesonar\n```\n\n\u003c!--\n## How to Contribute\n1. Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug. There is a Contributor Friendly tag for issues that should be ideal for people who are not very familiar with the codebase yet.\n2. Fork the repository on GitHub to start making your changes to the master branch (or branch off of it).\n3. Write a test which shows that the bug was fixed or that the feature works as expected.\n4. Send a pull request and bug the maintainer until it gets merged and published. :) Make sure to add yourself to AUTHORS.\n--\u003e\n\n## Reference\nThomas Davidson, Dana Warmsley, Michael Macy, and Ingmar Weber. 2017. \"Automated Hate Speech Detection and the Problem of Offensive Language.\" ICWSM. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhironsan%2Fhatesonar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhironsan%2Fhatesonar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhironsan%2Fhatesonar/lists"}