profanity-tools

A Haxe library used to check and filter texts.
https://github.com/corecathx/profanity-tools/

To install, run:

haxelib install profanity-tools 1.0.1 

See using Haxelib in Haxelib documentation for more information.

README.md

profanity-tools

A Haxe library used to check and filter texts.

Right now it only supports checking phrases, features will eventually be added

🔧 Installation

To use profanity-tools, you can install it directly from Haxelib.

haxelib install profanity-tools

📃 Usage

Firstly, you need to import the Phrase class from profanity package to get these examples working.

import profanity.Phrase;

1. Checking Phrase.

To check a phrase if it contains profanity, use Phrase.check function.\ If profanity is detected, it will return true, otherwise false.

class Main {
    static function main() {
        trace(Phrase.check("Hello")); // false
        trace(Phrase.check("Fuck"));  // true
    }
}

⚠️ Disclaimer

This library contains and processes strong language and slurs for moderation purposes. All included terms are used only to detect inappropriate content.

Contributors
CoreCat
Version
1.0.1
Published
1 year ago
License
MIT

All libraries are free

Every month, more than a thousand developers use Haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on GitHub!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on GitHub

⌂