Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

nlp-toolkit

bởi raghulpasupathi

Search & Research
459Lượt tải do clawskills.sh công bố
1Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

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

Mô tả

Kỹ năng này làm gì

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.

Khi nào nên dùng

  • 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

Quy trình ví dụ

ĐẦU VÀO

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

AGENT
  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

ĐẦU RA

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

Cài đặt

clawhub install raghulpasupathi/nlp-toolkit

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết