跳到正文
TakoAPI
返回技能列表

nlp-toolkit

由 raghulpasupathi 提供

Search & Research
459下载量由 clawskills.sh 提供
1浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Advanced NLP with perplexity scoring, burstiness analysis, and entropy calculation.

描述

该技能的功能

Analyzes text using statistical NLP measures to estimate whether it was written by a human or generated by AI. Computes perplexity, burstiness, and Shannon entropy scores, then combines them into a confidence rating.

Runs entirely client-side with no external API calls, so text is never sent to a third-party detection service.

何时使用

  • Screening submitted essays for AI authorship
  • Flagging AI-generated support tickets before human review
  • Auditing content pipelines for model-generated text
  • Comparing writing samples before and after AI tool adoption
  • Spot-checking blog drafts for undisclosed AI use

示例工作流

输入

User asks: Is this 200-word paragraph AI-generated?

智能体
  1. 1

    Pass the text to analyzeText with default thresholds

  2. 2

    Calculate perplexity from unique-to-total word ratio

  3. 3

    Measure burstiness as coefficient of variation across sentence lengths

  4. 4

    Compute Shannon entropy over character frequency distribution

  5. 5

    Combine three scores into a single confidence percentage

输出

{ isAI: true, confidence: 78, metrics: { perplexity: 32.4, burstiness: 0.21, entropy: 4.1 }, explanation: 'Low perplexity and uniform burstiness suggest AI generation' }

安装

clawhub install raghulpasupathi/nlp-toolkit

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

链接