Recipe catalog / listing-fact-consistency
Check a listing description against its fact sheet
listing-fact-consistency is a Jev recipe from the jev-recipes TypeScript package. Does the free-text description contradict the structured facts about the property? Use it when you need to catch a marketing description that disagrees with the structured listing data on bedrooms, size, year built, or features before the listing is published or syndicated.
Last updated .
Explore this recipe interactively · Source and implementation guide · Markdown version
How do I use listing-fact-consistency 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 { listingFactConsistency } from 'jev-recipes/listing-fact-consistency';
const result = await listingFactConsistency({
"description": "Welcome to this beautifully maintained four-bedroom colonial on a half-acre lot. The 2,400 sq ft layout offers a renovated kitchen, hardwood floors throughout, a finished basement, and a two-car attached garage. Built in 1994 and lovingly updated, this home is move-in ready.",
"facts": "Property type: Single-family, colonial\nBedrooms: 3\nBathrooms: 2.5\nLiving area: 2,380 sq ft\nLot size: 0.5 acres\nYear built: 1994\nGarage: 2-car attached\nBasement: Unfinished\nFlooring: Hardwood, carpet",
"minConfidence": 0.8
});
console.log(result);
What input does listing-fact-consistency take?
| Field | Type | Needed |
|---|---|---|
| description | string | Required |
| facts | string | Required |
| minConfidence | number | Optional |
Full input and result schemas
{
"input": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"description": {
"type": "string"
},
"facts": {
"type": "string"
},
"minConfidence": {
"type": "number",
"minimum": 0,
"maximum": 1
}
},
"required": [
"description",
"facts"
]
},
"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"
]
},
"probability": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"confidence": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"verdict": {
"type": "string",
"enum": [
"contradicts",
"consistent"
]
}
},
"required": [
"model",
"usage",
"status",
"probability",
"confidence",
"verdict"
],
"additionalProperties": false
}
}What does a listing-fact-consistency 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 listing-fact-consistency.
{
"model": "demo-fixture",
"usage": {
"input_tokens": 0,
"output_tokens": 0
},
"status": "ready",
"probability": 0.95,
"confidence": 0.95,
"verdict": "contradicts"
}
Input
See shared options and behavior for client configuration, validation, and errors. Types are inferred from this folder's Zod 4 schemas.
Result
verdict is contradicts when Jev's yes probability is at least 0.5 and consistent otherwise. probability is that yes probability. confidence is the probability of the chosen side, so a 0.1 yes probability yields consistent with 0.9 confidence.
A result is ready when confidence meets minConfidence. Otherwise it is review. Treat a review result as unknown and fall back to your safe default.
Reuse and calls
Uses the shared gate helper, a single yes/no question. This folder owns the question wording, the outcome descriptions, and the review policy. A live invocation makes one logical Jev request.
Limits
The verdict says whether the description conflicts with the supplied facts, not which attribute is wrong or which input is correct. A description that omits facts or adds unverifiable marketing claims is still consistent, so this check does not catch under-disclosure or puffery. Neither input is compared to the actual property, tax records, or an MLS feed, and tolerance for rounding is a judgment the caller may want to tighten with per-field numeric checks in code.
Example input
demo.json contains editable input and a hand-authored response. After installing jev-recipes, npx jev-recipes demo listing-fact-consistency shows an offline illustration, not an accuracy measurement. Use npx jev-recipes describe listing-fact-consistency to inspect the input and result schemas.
How accurate is listing-fact-consistency?
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 listing-fact-consistency?
- Reports a single verdict, not which fact is contradicted. Pair it with per-field checks when you need locations.
- Judges only what the description says against what facts states. Neither input is checked against the real property or public records.
- Rounding, unit conversion, and how much tolerance to allow are application decisions; the recipe treats a clear numeric mismatch as a contradiction.
Which recipes are related to listing-fact-consistency?
- headline-fit: Use headline-fit to check whether a title represents its body fairly, rather than whether prose contradicts a structured fact sheet.
- extraction-fidelity: Use extraction-fidelity to grade how faithfully structured values were pulled from a source document, the reverse direction of this check.