LaunchKit · 2026
Back to Skills

nlp-toolkit

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

0
459 downloads
by @raghulpasupathi

Setup & Installation

openclaw skills install @raghulpasupathi/nlp-toolkit

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install nlp-toolkit

What This Skill Does

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.

When to use it

  • 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

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

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

AGENT
  1. 1Pass the text to analyzeText with default thresholds
  2. 2Calculate perplexity from unique-to-total word ratio
  3. 3Measure burstiness as coefficient of variation across sentence lengths
  4. 4Compute Shannon entropy over character frequency distribution
  5. 5Combine three scores into a single confidence percentage
OUTPUT

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