https://github.com/bubner/profanityapi
WSGI API runner for profanity-check
https://github.com/bubner/profanityapi
api flask profanity profanity-check profanity-detection python wsgi
Last synced: 10 months ago
JSON representation
WSGI API runner for profanity-check
- Host: GitHub
- URL: https://github.com/bubner/profanityapi
- Owner: bubner
- Created: 2023-08-19T11:34:22.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-28T14:11:00.000Z (over 1 year ago)
- Last Synced: 2025-01-23T09:43:31.759Z (12 months ago)
- Topics: api, flask, profanity, profanity-check, profanity-detection, python, wsgi
- Language: Python
- Homepage: https://profanityapi.vercel.app
- Size: 152 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ProfanityAPI
### Live at https://profanityapi.vercel.app/?f=TEXT
WSGI API runner for [profanity-check](https://github.com/vzhou842/profanity-check).
View their documentation for more information on their SVM model.
Using the [alt-profanity-check](https://github.com/dimitrismistriotis/alt-profanity-check) fork to support later versions of scikit-learn. Many thanks!
# Example usage
Input:
```/?f=fuck```
Output:
```
{
"probability": 0.9999999997233655,
"profane": true,
"text": "fuck"
}
```
___
Input:
```/?f=hello```
Output:
```
{
"probability": 0.03218035443843418,
"profane": false,
"text": "hello"
}
```
___
Input:
```/?f=you are strange```
Output:
```
{
"probability": 0.06342308936201688,
"profane": false,
"text": "you are strange"
}
```
___
Input:
```/?f=do%20us%20a%20favour%20and%20remove%20yourself%20from%20the%20face%20of%20the%20planet```
Output:
```
{
"probability": 0.23342035478746662,
"profane": false,
"text": "do us a favour and remove yourself from the face of the planet"
}
```
___
Input:
```/?f=go%20away%20you%20bum```
Output:
```
{
"probability": 0.4761022259622523,
"profane": false,
"text": "go away you bum"
}
```