Recipe catalog / clickbait-level
Grade clickbait level
clickbait-level is a Jev recipe from the jev-recipes TypeScript package. How much does headline rely on curiosity gaps, exaggeration, or emotional bait instead of stating what the content is? Use it when you want to rank, flag, or reject headlines that manipulate readers into clicking rather than telling them what they will get.
Last updated .
Explore this recipe interactively · Source and implementation guide · Markdown version
How do I use clickbait-level in TypeScript?
Install with npm install jev-recipes. Requires Node.js 22.9 or newer and ES modules. Set TYPESAFE_API_KEY in your server environment for live calls, which send input to TypeSafe and use API quota. See the installation guide.
import { clickbaitLevel } from 'jev-recipes/clickbait-level';
const result = await clickbaitLevel({
"headline": "This One Kitchen Habit Is Secretly Destroying Your Health - Doctors Are Stunned",
"minConfidence": 0.8
});
console.log(result);
What input does clickbait-level take?
| Field | Type | Needed |
|---|---|---|
| headline | string | Required |
| minConfidence | number | Optional |
Full input and result schemas
{
"input": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"headline": {
"type": "string"
},
"minConfidence": {
"type": "number",
"minimum": 0,
"maximum": 1
}
},
"required": [
"headline"
]
},
"result": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"model": {
"type": "string"
},
"usage": {
"type": "object",
"properties": {
"input_tokens": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"output_tokens": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"input_tokens",
"output_tokens"
],
"additionalProperties": false
},
"status": {
"type": "string",
"enum": [
"ready",
"review"
]
},
"score": {
"type": "number",
"minimum": 0
},
"level": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"confidence": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"probabilities": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "number",
"minimum": 0,
"maximum": 1
}
},
"bait": {
"type": "string",
"enum": [
"none",
"mild",
"moderate",
"heavy",
"extreme"
]
}
},
"required": [
"model",
"usage",
"status",
"score",
"level",
"confidence",
"probabilities",
"bait"
],
"additionalProperties": false
}
}What does a clickbait-level result look like?
This hand-authored response demonstrates the contract. It is not a model accuracy measurement. Run it without an API key: npx jev-recipes demo clickbait-level.
{
"model": "demo-fixture",
"usage": {
"input_tokens": 0,
"output_tokens": 0
},
"status": "review",
"score": 2.92,
"level": 3,
"confidence": 0.62,
"probabilities": {
"0": 0.01,
"1": 0.04,
"2": 0.15,
"3": 0.62,
"4": 0.18
},
"bait": "heavy"
}
Input
See shared options and behavior for client configuration, validation, and errors. Types are inferred from this folder's Zod 4 schemas.
Result
bait is one of none, mild, moderate, heavy, extreme, taken from the most likely rubric level. level is that level's index from 0 to 4. score is Jev's expected value across the rubric and can fall between levels; use it for ranking or thresholds where a single label loses information.
A result is ready when confidence meets minConfidence. Otherwise it is review and still carries the graded values for inspection. probabilities is keyed by level index.
Reuse and calls
Uses the shared score helper. This folder owns the question, the rubric wording, and the review policy. A live invocation makes one logical Jev request.
Limits
The grade reflects how the headline is worded, not whether the article behind it delivers or whether the claim is true. It does not predict click-through, engagement, or reader trust. Deciding what level to block, rewrite, or flag for an editor belongs in application code.
Example input
demo.json contains editable input and a hand-authored response. After installing jev-recipes, npx jev-recipes demo clickbait-level shows an offline illustration, not an accuracy measurement. Use npx jev-recipes describe clickbait-level to inspect the input and result schemas.
How accurate is clickbait-level?
No verified live accuracy measurement is available. Evaluate representative cases before using this decision in your workflow.
Use the evaluation guide to measure this decision on your own labeled cases.
What are the limits of clickbait-level?
- Grades the wording of the headline alone; it does not see the article and cannot say whether the headline is accurate.
- Does not measure click-through rate or reader trust. Publishing thresholds and rewrite policies belong in code.
Which recipes are related to clickbait-level?
- outcome-framing: Use outcome-framing to judge whether a message frames a result as a gain or a loss.
- question-leading: Use question-leading to detect questions that push the reader toward a particular answer.