{
  "address": "e398b192aae298b288e1a80341479b1e",
  "category": "other",
  "question": "Scaling a recipe that serves 4 to serve 6, what are the scaled quantities for: 200 g flour, 100 g sugar, 2 count eggs?",
  "answer": "300 g flour, 150 g sugar, 3 count eggs",
  "askedBy": {
    "kind": "guest",
    "display": "method deck",
    "stamped": false,
    "id": null
  },
  "answeredBy": "method",
  "madeAt": "2026-09-30T22:39:30.722Z",
  "validUntil": null,
  "validityClass": "forever",
  "sources": [
    {
      "label": "Recipe yield scaling technique",
      "url": null
    }
  ],
  "supersedes": null,
  "supersededBy": null,
  "isSeed": false,
  "seedSource": null,
  "seedAttribution": null,
  "duplicateOfQid": null,
  "publishedAt": null,
  "unpublishedAt": null,
  "voteCount": 0,
  "queuedForSubstrate": false,
  "answerMethod": "method",
  "unsourced": false,
  "source": {
    "kind": "edition_page",
    "value": "Standard proportional recipe-scaling method (multiply every ingredient quantity by desired/original servings)",
    "retrieved_utc": "2026-09-30T19:50:00Z"
  },
  "qsha256": "b6f65981a134c36ed8b2ec76f245c53a6caafccedbb5a19c22eac7889fec4ece",
  "runOne": null,
  "cardContractVersion": "card_contract/1",
  "deck_id": "method-deck",
  "deck_title": "Method Deck",
  "method": {
    "name": "Recipe scaling",
    "version": "1",
    "source_url_or_file": "methods/recipe-scaling.cjs",
    "sha256_of_method_file": "2da2b22b66d471382c776fdd18187e692cf541929631c0967a314d3c82e72d18"
  },
  "receipt": {
    "inSubstrate": false,
    "local": true,
    "modelCallsAtMint": 0,
    "tokensAtMint": 0
  },
  "method_deck": {
    "inputs": [
      {
        "name": "original_servings",
        "type": "number",
        "unit": "servings",
        "required": true,
        "description": "Servings the original recipe makes",
        "min": 0
      },
      {
        "name": "desired_servings",
        "type": "number",
        "unit": "servings",
        "required": true,
        "description": "Servings wanted",
        "min": 0
      },
      {
        "name": "ingredients",
        "type": "array",
        "required": true,
        "description": "List of {name, quantity, unit} ingredient entries to scale"
      }
    ],
    "outputs": [
      {
        "name": "scale_factor",
        "unit": null,
        "description": "desired_servings / original_servings"
      },
      {
        "name": "scaled_ingredients",
        "unit": null,
        "description": "Ingredient list with quantity multiplied by scale_factor"
      }
    ],
    "steps": [
      "scale_factor = desired_servings / original_servings.",
      "For each ingredient, scaled_quantity = quantity * scale_factor, rounded to 2 decimals.",
      "Unit and name pass through unchanged; only quantity is scaled."
    ],
    "constants": [],
    "examples": [
      {
        "name": "worked example",
        "inputs": {
          "original_servings": 4,
          "desired_servings": 6,
          "ingredients": [
            {
              "name": "flour",
              "quantity": 200,
              "unit": "g"
            },
            {
              "name": "sugar",
              "quantity": 100,
              "unit": "g"
            },
            {
              "name": "eggs",
              "quantity": 2,
              "unit": "count"
            }
          ]
        },
        "expected": {
          "answer": "300 g flour, 150 g sugar, 3 count eggs"
        },
        "check": "scale_factor = 6/4 = 1.5. 200*1.5=300. 100*1.5=150. 2*1.5=3."
      },
      {
        "name": "test vector: fractional scale down",
        "inputs": {
          "original_servings": 12,
          "desired_servings": 5,
          "ingredients": [
            {
              "name": "butter",
              "quantity": 240,
              "unit": "g"
            },
            {
              "name": "chocolate chips",
              "quantity": 360,
              "unit": "g"
            }
          ]
        },
        "expected": {
          "answer": "100 g butter, 150 g chocolate chips"
        },
        "check": "scale_factor = 5/12 = 0.416666... 240*0.416666=100.0 exactly. 360*0.416666=150.0 exactly."
      }
    ],
    "disclaimer": null,
    "deck_category": "cooking"
  },
  "status": "minted",
  "kind": "method",
  "provenanceClass": "own_question",
  "provenance": {
    "schema": "card_provenance/2.0.0",
    "chain": [
      {
        "source": {
          "kind": "edition_page",
          "value": "Standard proportional recipe-scaling method (multiply every ingredient quantity by desired/original servings)",
          "retrieved_utc": "2026-09-30T19:50:00Z"
        },
        "sha256": "2adfd077654e4b4cc0ac8a28623cb422bf804ab39873cfdbc75eb246e37c3961",
        "supersedes": null,
        "added_utc": "2026-09-30T22:39:30.722Z",
        "added_by": "method:Recipe scaling",
        "why": "the method that computed this answer",
        "check": null,
        "status_label": "pending",
        "signature": null
      }
    ]
  }
}
