Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

profanity-finder

gautamkrishnar21GPL-3.01.0.2

A simple profanity finding library to detect swear language.

profanity, finder, detect, swear, words, bad, hate, speach

readme

profanity-finder.js

Simple profanity finding library for javascript to detect swear language. You can include this library in your projects for easily detecting swear words or bad words.

Installation

  npm install profanity-finder --save

Usage

  var profanityfinder = require('profanity-finder');
  var findprofanity = profanityfinder.findprofanity;

  var text="this is shit";
  var x= findprofanity(text);

The value of x will be true if any hate speach is found in the passed string to findprofanity()

Contributing

Clone the project and submit your improvements via pull request. Dont forget to checkout profanity finding library for other programming languages: https://github.com/gautamkrishnar/profanity-finder

Stats

NPM

Release History

  • 1.0.1 Initial release
  • 1.0.2 Improved perfomance