detect-ai
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseDetect 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 , you should:
/detect-ai- Extract the text from $ARGUMENTS
- Call the HumanizerAI API to analyze the text
- Present the results in a clear, actionable format
当用户调用时,你需要:
/detect-ai- 从$ARGUMENTS中提取文本
- 调用HumanizerAI API分析文本
- 以清晰、实用的格式呈现结果
API Call
API调用
Make a POST request to :
https://humanizerai.com/api/v1/detectAuthorization: Bearer $HUMANIZERAI_API_KEY
Content-Type: application/json
{
"text": "<user's text>"
}向发送POST请求:
https://humanizerai.com/api/v1/detectAuthorization: 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 (not directly). This is the score to display to the user.
score.overallscoreAPI返回如下格式的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.overallscorePresent Results Like This
结果展示示例
undefinedundefinedAI 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,建议是否需要人工润色]
undefinedScore 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:
- Check if HUMANIZERAI_API_KEY is set
- Suggest the user get an API key at https://humanizerai.com
- Provide the error message for debugging
若API调用失败:
- 检查是否已设置HUMANIZERAI_API_KEY
- 建议用户前往https://humanizerai.com获取API密钥
- 提供错误信息以用于调试