← All examples
77 / 100
Jev Community rule triage Code Example
Route a reported post to the right moderation workflow.
Buy followers at this link. Posted in 20 threads.
Post Buy followers at this link. Posted in 20 threads.
Rule No repetitive promotions.
Which review category fits?
0%
Spam.
Let the application spam.
Code
// Conceptual pseudocode — not Jev SDK syntax
const state = {
"post": "Buy followers at this link. Posted in 20 threads.",
"rule": "No repetitive promotions."
};
const decision = await evaluateDecision({
state,
question: "Which review category fits?",
options: ["Spam","Harassment","No violation"],
});
// Your adapter normalizes the provider response.
// Tune this example threshold on labelled data.
if (decision.outcome === "Spam"
&& decision.probability >= 0.85) {
queueModerationCase(decision);
} else {
queueForReview(decision);
} This adapter illustrates the decision boundary. Check the official Jev docs for current API syntax.