跳到正文
TakoAPI
返回技能列表

glin-profanity

由 thegdsks 提供

Security & Passwords
1.5k下载量由 clawskills.sh 提供
1星标
1浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Profanity detection and content moderation library.

描述

该技能的功能

Profanity detection library for JavaScript, TypeScript, and Python that handles evasion techniques like leetspeak, Unicode homoglyphs, and obfuscated text. Supports 24 languages with optional ML-powered toxicity scoring via TensorFlow.js. Includes context-aware analysis for domains like medical, gaming, and technical content.

Unlike simple word-list filters, it catches evasion attempts like leetspeak and Unicode lookalikes that users commonly exploit to bypass moderation.

何时使用

  • Filtering user comments on a forum before they go live
  • Blocking profane usernames during account registration
  • Moderating chat messages in a multiplayer game
  • Validating form submissions in a web app
  • Scanning batch-uploaded content for policy violations

示例工作流

输入

User asks: Check if a chat message contains profanity before sending

智能体
  1. 1

    Import Filter from glin-profanity

  2. 2

    Initialize filter with detectLeetspeak and normalizeUnicode enabled

  3. 3

    Call filter.checkProfanity() on the message text

  4. 4

    Inspect result.containsProfanity and result.profaneWords

  5. 5

    Block or replace the message using result.processedText if flagged

输出

Message is either sent as-is or replaced with a censored version, and the user is warned if violations are found

安装

clawhub install thegdsks/glin-profanity

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接