CensorCore v2.0

Official Moderation System Of CoreChat

A high-performance JavaScript library for advanced content filtering and severity analysis.

Overview

CensorCore is a lightweight JavaScript library for detecting explicit or inappropriate text. Version 2.0 introduces Severity Levels, Phrase Detection, and a rich Analysis API to give developers granular control over moderation.

Features

View the full project on GitHub:
GitHub Logo CensorCore Repository

Live Demo (v2.0)

Type a message. CensorCore will analyze the text and return the highest severity detected.

Overview Features Installation API Reference Wordlist Versions License

⚠️ WARNING: The wordlist.json file contains explicit language and slurs. View at your own risk.


Overview

CensorCore v2.0 is designed for modern web apps. It provides a simple isBlocked check for quick logic, and a deep analyze function for applications that need to know the category (e.g., "Hate Speech") or severity of a violation.

Features

Installation

<script src="https://cdn.jsdelivr.net/gh/DerrickRichard/CensorCore-Library@latest/CensorCore.js"></script>

API Reference

censor.isBlocked(text)

Quick check. Returns true if any inappropriate content is found.

censor.analyze(text)

Returns a detailed object:

{
  blocked: true,
  severity: "high",
  category: "hate_speech",
  matches: [{ text: "word", category: "...", severity: "..." }]
}

censor.extend(customRules)

Add your own words or phrases locally:

censor.extend([
  { text: "customword", category: "custom", severity: "medium" }
]);

censor.onReady(callback)

Executes logic as soon as the wordlist is loaded.

Wordlist Categories

The system supports categories including: profanity, hate_speech, harassment, sexual_content, violence, drugs, weapons, and extremism.

Versions

License

Released under the MIT License.

Version History

v2.0.0 - The Analysis Update

A major overhaul of the library. Introduces phrase detection, severity levels (Low, Medium, High), and a rich analysis API. Developers can now see exactly why a message was blocked. Adds support for custom rules via censor.extend() and async loading events.

View Release on GitHub

v1.1.0 - Performance and Reliability Update

CensorCore v1.1.0 makes the filtering engine faster and more dependable. The wordlist is now processed ahead of time, the matching is quicker, and the library handles text in a more consistent way. The code has also been cleaned up so it is easier to follow and maintain. This update adds a couple of small helper functions that let you check whether the wordlist has loaded or if something went wrong while loading it. The public API is locked so it cannot be changed by accident, and the library behaves more safely if it is used before it finishes loading. Overall, this release makes CensorCore smoother and more reliable without changing how you already use it.

View Release on GitHub

v1.0.0 - Initial Release

Initial release with basic filtering functionality and a basic JSON wordlist.

View Release on GitHub

About the Developer

Derrick Richard is a student developer from Poth, Texas (Class of 2029) dedicated to building professional, utility-driven tools and lightweight libraries.

Other Projects

Visit Official Portfolio