jevrecipes

Recipe catalog / forecast-confidence-wording

Grade the certainty of a financial projection

forecast-confidence-wording is a Jev recipe from the jev-recipes TypeScript package. How certain is the wording of statement, a financial projection, from explicitly speculative to stated as fact? Use it when you need to grade how confidently a projection about revenue, prices, returns, or growth is worded, so overconfident statements can be softened or disclaimed before they reach a reader.

Last updated .

Explore this recipe interactively · Source and implementation guide · Markdown version

How do I use forecast-confidence-wording 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 { forecastConfidenceWording } from 'jev-recipes/forecast-confidence-wording';

const result = await forecastConfidenceWording({
  "statement": "Revenue will hit $4.2M next quarter and the stock is going to double by year end. This is the bottom, so anyone waiting is leaving money on the table.",
  "minConfidence": 0.8
});
console.log(result);

What input does forecast-confidence-wording take?

FieldTypeNeeded
statementstringRequired
minConfidencenumberOptional
Full input and result schemas
{
  "input": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "statement": {
        "type": "string"
      },
      "minConfidence": {
        "type": "number",
        "minimum": 0,
        "maximum": 1
      }
    },
    "required": [
      "statement"
    ]
  },
  "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
        }
      },
      "certainty": {
        "type": "string",
        "enum": [
          "speculative",
          "hedged",
          "balanced",
          "confident",
          "asserted"
        ]
      }
    },
    "required": [
      "model",
      "usage",
      "status",
      "score",
      "level",
      "confidence",
      "probabilities",
      "certainty"
    ],
    "additionalProperties": false
  }
}

What does a forecast-confidence-wording 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 forecast-confidence-wording.

{
  "model": "demo-fixture",
  "usage": {
    "input_tokens": 0,
    "output_tokens": 0
  },
  "status": "review",
  "score": 3.38,
  "level": 4,
  "confidence": 0.6,
  "probabilities": {
    "0": 0.02,
    "1": 0.04,
    "2": 0.08,
    "3": 0.26,
    "4": 0.6
  },
  "certainty": "asserted"
}

Input

See shared options and behavior for client configuration, validation, and errors. Types are inferred from this folder's Zod 4 schemas.

Result

certainty is one of speculative, hedged, balanced, confident, asserted, 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 projection is worded, not whether it is right. A speculative statement can be wrong and an asserted one can be correct; the recipe only tells you how much certainty the reader is being handed. Statements that stack several claims with different postures are graded by their overall stance, so split them in code when each claim needs its own grade. Whether an asserted projection needs a disclaimer or review is a policy decision for the caller.

Example input

demo.json contains editable input and a hand-authored response. After installing jev-recipes, npx jev-recipes demo forecast-confidence-wording shows an offline illustration, not an accuracy measurement. Use npx jev-recipes describe forecast-confidence-wording to inspect the input and result schemas.

How accurate is forecast-confidence-wording?

Fixture only

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 forecast-confidence-wording?