A high-performance JavaScript library for advanced content filtering and severity analysis.
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.
censor.extend().onReady and onError for robust initialization.
View the full project on GitHub:
CensorCore Repository
Type a message. CensorCore will analyze the text and return the highest severity detected.
wordlist.json file contains explicit language and slurs. View at your own risk.
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.
<script src="https://cdn.jsdelivr.net/gh/DerrickRichard/CensorCore-Library@latest/CensorCore.js"></script>
Quick check. Returns true if any inappropriate content is found.
Returns a detailed object:
{
blocked: true,
severity: "high",
category: "hate_speech",
matches: [{ text: "word", category: "...", severity: "..." }]
}
Add your own words or phrases locally:
censor.extend([
{ text: "customword", category: "custom", severity: "medium" }
]);
Executes logic as soon as the wordlist is loaded.
The system supports categories including: profanity, hate_speech, harassment, sexual_content, violence, drugs, weapons, and extremism.
analyze() API.Released under the MIT License.
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.
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 GitHubInitial release with basic filtering functionality and a basic JSON wordlist.
View Release on GitHubDerrick Richard is a student developer from Poth, Texas (Class of 2029) dedicated to building professional, utility-driven tools and lightweight libraries.