{
  "schemaVersion": 1,
  "slug": "bread-flour-calculator",
  "category": "cooking",
  "kind": "implementation",
  "independentValidation": false,
  "implementationHash": "79a246ee6c1cd2dfb817fb6b91af5a97bb8dddfc9e434ddbfcad0761ff928fe8",
  "provenance": "Generated from the calculation contract used by the published page. Publication is not external validation.",
  "sourceFiles": [
    "data/calculators/bread-flour-calculator.json",
    "src/engine.js"
  ],
  "runtimeSource": "/sources/engine.txt",
  "runtimeHash": "5c888d8898afbdee36267bb9977829e1e2ac568f6677c8ee87469c139864645c",
  "scope": "The compute function records implemented equations, constants, lookup tables and custom rules. Inputs record defaults and allowed values; outputs record precision and units. Defaults are examples, not recommendations. General background references are not evidence for this specific algorithm.",
  "publishedFormula": {
    "formula": "gluten = 1.5c tsp; grams = 125c + 3·(1.5c); protein = 12.7%",
    "vars": [
      [
        "c",
        "Cups of flour needed"
      ],
      [
        "gluten",
        "Vital wheat gluten (teaspoons)"
      ],
      [
        "grams",
        "Total weight (g)"
      ],
      [
        "protein",
        "Resulting protein content (%)"
      ]
    ],
    "note": "1 cup plain flour = 125 g; 1 tsp vital wheat gluten = 3 g; adding 1.5 tsp per cup raises plain flour to about 12.7% protein (bread-flour strength)."
  },
  "externalEvidence": null,
  "contract": {
    "compute": "return { plainFlourCups:cupsNeeded, glutenTsp:cupsNeeded*1.5, totalGrams:cupsNeeded*125+cupsNeeded*1.5*3 };",
    "inputs": [
      {
        "name": "cupsNeeded",
        "type": "number",
        "default": 3,
        "min": 0,
        "max": 1000,
        "step": 0.25,
        "requiredValue": true
      }
    ],
    "outputs": [
      {
        "name": "plainFlourCups",
        "precision": 2,
        "unit": "cups",
        "trimTrailingZeros": true
      },
      {
        "name": "glutenTsp",
        "precision": 2,
        "unit": "tsp",
        "trimTrailingZeros": true
      },
      {
        "name": "totalGrams",
        "precision": 0,
        "unit": "g",
        "trimTrailingZeros": true
      }
    ],
    "interpret": null
  }
}
