censure-js

1.6.0 • Public • Published

CENSURE class

Dirty words - filter. 18+ A JavaScript class to filter out dirty, vulgar, obscene, profane words in russian or english texts.

Key features:

  • Find profanity (in Russian and English texts) and hide it with *** symbols.
  • Find profanity (in Russian texts) and replace it with normative vocabulary.

Some examples:

// Searches if there any abusive words in the text
Censure.isBad('Original phrase with abusive words'); // return: bool

// Replace abusive words from string
Censure.replace('Original phrase with abusive words'); // return: string (cleaned text)

// Fixing abusive words inside string
Censure.fix('Original phrase with abusive words'); // return: string (fixed text)

Package Sidebar

Install

npm i censure-js

Weekly Downloads

94

Version

1.6.0

License

MIT

Unpacked Size

546 kB

Total Files

12

Last publish

Collaborators

  • jzavorohina