roottusk / slangdetect
PHP Slang Detection Library for Web Applications
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 1
Open Issues: 1
pkg:composer/roottusk/slangdetect
Requires
- php: ^7.0
README
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