detect-ai

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Detect AI Content

检测AI生成内容

Analyze text to determine if it was written by AI using the HumanizerAI API.
使用HumanizerAI API分析文本,判断其是否由AI生成。

How It Works

工作原理

When the user invokes
/detect-ai
, you should:
  1. Extract the text from $ARGUMENTS
  2. Call the HumanizerAI API to analyze the text
  3. Present the results in a clear, actionable format
当用户调用
/detect-ai
时,你需要:
  1. 从$ARGUMENTS中提取文本
  2. 调用HumanizerAI API分析文本
  3. 以清晰、实用的格式呈现结果

API Call

API调用

Make a POST request to
https://humanizerai.com/api/v1/detect
:
Authorization: Bearer $HUMANIZERAI_API_KEY
Content-Type: application/json

{
  "text": "<user's text>"
}
https://humanizerai.com/api/v1/detect
发送POST请求:
Authorization: Bearer $HUMANIZERAI_API_KEY
Content-Type: application/json

{
  "text": "<user's text>"
}

API Response Format

API响应格式

The API returns JSON like this:
json
{
  "score": {
    "overall": 82,
    "perplexity": 96,
    "burstiness": 15,
    "readability": 23,
    "satPercent": 3,
    "simplicity": 35,
    "ngramScore": 8,
    "averageSentenceLength": 21
  },
  "wordCount": 82,
  "sentenceCount": 4,
  "verdict": "ai"
}
IMPORTANT: The main AI score is
score.overall
(not
score
directly). This is the score to display to the user.
API返回如下格式的JSON:
json
{
  "score": {
    "overall": 82,
    "perplexity": 96,
    "burstiness": 15,
    "readability": 23,
    "satPercent": 3,
    "simplicity": 35,
    "ngramScore": 8,
    "averageSentenceLength": 21
  },
  "wordCount": 82,
  "sentenceCount": 4,
  "verdict": "ai"
}
重要提示: 主要的AI检测分数为
score.overall
(而非直接的
score
字段),这是需要展示给用户的分数。

Present Results Like This

结果展示示例

undefined
undefined

AI Detection Results

AI检测结果

Score: [score.overall]/100 ([verdict]) Words Analyzed: [wordCount]
分数: [score.overall]/100 ([verdict]) 分析的单词数: [wordCount]

Metrics

详细指标

  • Perplexity: [score.perplexity]
  • Burstiness: [score.burstiness]
  • Readability: [score.readability]
  • N-gram Score: [score.ngramScore]
  • 困惑度:[score.perplexity]
  • 突发度:[score.burstiness]
  • 可读性:[score.readability]
  • N元语法分数:[score.ngramScore]

Recommendation

建议

[Based on score.overall, suggest whether to humanize]
undefined
[根据score.overall,建议是否需要人工润色]
undefined

Score Interpretation (use score.overall)

分数解读(基于score.overall)

  • 0-20: Human-written content
  • 21-40: Likely human, minor AI patterns
  • 41-60: Mixed signals, could be either
  • 61-80: Likely AI-generated
  • 81-100: Highly likely AI-generated
  • 0-20:人工撰写内容
  • 21-40:大概率为人工撰写,存在少量AI模式
  • 41-60:信号混合,可能为人工或AI生成
  • 61-80:大概率为AI生成
  • 81-100:极大概率为AI生成

Error Handling

错误处理

If the API call fails:
  1. Check if HUMANIZERAI_API_KEY is set
  2. Suggest the user get an API key at https://humanizerai.com
  3. Provide the error message for debugging
若API调用失败:
  1. 检查是否已设置HUMANIZERAI_API_KEY
  2. 建议用户前往https://humanizerai.com获取API密钥
  3. 提供错误信息以用于调试