{
  "schemaVersion": 1,
  "slug": "garlic-converter",
  "category": "cooking",
  "kind": "implementation",
  "independentValidation": false,
  "implementationHash": "199c66801a6e9dc1c71cafaf870cbe519cc731189c33b8dd7b319a286c9d62dd",
  "provenance": "Generated from the calculation contract used by the published page. Publication is not external validation.",
  "sourceFiles": [
    "data/calculators/garlic-converter.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": "minced = 0.5 x c; jarred = 0.5 x c; powder = 0.125 x c; salt = 0.25 x c; g = 3 x c",
    "vars": [
      [
        "c",
        "number of fresh cloves"
      ],
      [
        "minced",
        "fresh minced garlic (tsp)"
      ],
      [
        "jarred",
        "jarred minced garlic (tsp)"
      ],
      [
        "powder",
        "garlic powder (tsp)"
      ],
      [
        "salt",
        "garlic salt (tsp)"
      ],
      [
        "g",
        "garlic mass (grams)"
      ]
    ],
    "note": "Cooking conversion factors per clove: 1/2 tsp fresh or jarred, 1/8 tsp powder, 1/4 tsp garlic salt, 3 g; results scale linearly with c."
  },
  "externalEvidence": {
    "reviewedAt": "2026-10-12",
    "sources": [
      {
        "name": "University of Nebraska–Lincoln — Recipe ingredient substitutions",
        "url": "https://food.unl.edu/article/ingredient-substitutions"
      }
    ],
    "referenceRole": "context",
    "implementationHash": "199c66801a6e9dc1c71cafaf870cbe519cc731189c33b8dd7b319a286c9d62dd",
    "basis": "minced = 0.5 x c; jarred = 0.5 x c; powder = 0.125 x c; salt = 0.25 x c; g = 3 x c",
    "limitations": "The references provide context and limitations. They do not validate this page’s illustrative multipliers, lookup values or predictions."
  },
  "contract": {
    "compute": "return { mincedTsp: cloves*0.5, jarredTsp: cloves*0.5, powderTsp: cloves*0.125, saltTsp: cloves*0.25, grams: cloves*3 };",
    "inputs": [
      {
        "name": "cloves",
        "type": "number",
        "default": 3,
        "min": 0,
        "max": 1000,
        "step": 1,
        "slider": true
      }
    ],
    "outputs": [
      {
        "name": "mincedTsp",
        "precision": 2,
        "unit": "tsp"
      },
      {
        "name": "jarredTsp",
        "precision": 2,
        "unit": "tsp"
      },
      {
        "name": "powderTsp",
        "precision": 3,
        "unit": "tsp"
      },
      {
        "name": "saltTsp",
        "precision": 3,
        "unit": "tsp"
      },
      {
        "name": "grams",
        "precision": 1,
        "unit": "g"
      }
    ],
    "interpret": null
  }
}
