Coder Social home page Coder Social logo

profanityapi's Introduction

ProfanityAPI

WSGI API runner for profanity-check.
View their documentation for more information on their SVM model.
Using the 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"
}

profanityapi's People

Contributors

bubner avatar dependabot[bot] avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.