Skip to content

A Slang Detect Library in PHP which can be reused to filter out any badwords or check from a chunk of text

License

Notifications You must be signed in to change notification settings

roottusk/slangdetect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status MIT licensed Version

SlangDetect

A Slang Detect Library in PHP which can be reused to filter out any badwords or check from a chunk of text.

Installation

composer require roottusk/slangdetect

Usage

require "lib/init.php";

ContainsBadWord($String)          //Returns count of bad words

IsBadWord($String)                //Returns boolean

StripBadWords($String,$Char)      //Strips Bad words from the provided text with given character.

StripOneWord($String,$Word,$Char) //Strips all the occurences of the provided word in the given text with given character

About

A Slang Detect Library in PHP which can be reused to filter out any badwords or check from a chunk of text

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages