{
  "address": "8dcf2e2cf99f0e3ab9a95ddb8928e9b1",
  "category": "other",
  "question": "How many grams are in 2 cups of all purpose flour?",
  "answer": "240 g",
  "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": "FoodData Central, household measure weights for sugar, butter, water (1 US cup = 236.588 mL, density approx. 1 g/mL), and uncooked white rice",
      "url": "https://fdc.nal.usda.gov/"
    },
    {
      "label": "Ingredient Weight Chart (all-purpose flour: 1 cup = 120 g, dip-and-sweep method)",
      "url": "https://www.kingarthurbaking.com/learn/ingredient-weight-chart"
    }
  ],
  "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": "url",
    "value": "https://fdc.nal.usda.gov/",
    "retrieved_utc": "2026-09-30T20:10:00Z"
  },
  "qsha256": "7dedb6ff5b9e645cbd583567ad78b0d53f133cf472e40fa5c584d1fd2aadd25a",
  "runOne": null,
  "cardContractVersion": "card_contract/1",
  "deck_id": "method-deck",
  "deck_title": "Method Deck",
  "method": {
    "name": "Cups to grams for common ingredients",
    "version": "1",
    "source_url_or_file": "methods/cups-to-grams-common-ingredients.cjs",
    "sha256_of_method_file": "fb125ef277436ddba0480d19ff3a3b90ebbaebef8eb785bcdf97d51b77f03cc6"
  },
  "receipt": {
    "inSubstrate": false,
    "local": true,
    "modelCallsAtMint": 0,
    "tokensAtMint": 0
  },
  "method_deck": {
    "inputs": [
      {
        "name": "ingredient",
        "type": "string",
        "required": true,
        "description": "Ingredient to convert",
        "enum": [
          "all_purpose_flour",
          "granulated_sugar",
          "butter",
          "water",
          "white_rice_uncooked"
        ]
      },
      {
        "name": "cups",
        "type": "number",
        "unit": "US cups",
        "required": true,
        "description": "Volume in US cups",
        "min": 0
      }
    ],
    "outputs": [
      {
        "name": "grams",
        "unit": "g",
        "description": "Equivalent weight in grams"
      }
    ],
    "steps": [
      "Look up the grams-per-cup density for the chosen ingredient from the cited table.",
      "grams = cups * grams_per_cup.",
      "Round the result to the nearest whole gram."
    ],
    "constants": [
      {
        "name": "all_purpose_flour_g_per_cup",
        "value": 120,
        "unit": "g/cup",
        "source": 1
      },
      {
        "name": "granulated_sugar_g_per_cup",
        "value": 200,
        "unit": "g/cup",
        "source": 0
      },
      {
        "name": "butter_g_per_cup",
        "value": 227,
        "unit": "g/cup",
        "source": 0
      },
      {
        "name": "water_g_per_cup",
        "value": 236.588,
        "unit": "g/cup",
        "source": 0
      },
      {
        "name": "white_rice_uncooked_g_per_cup",
        "value": 185,
        "unit": "g/cup",
        "source": 0
      }
    ],
    "examples": [
      {
        "name": "worked example",
        "inputs": {
          "ingredient": "all_purpose_flour",
          "cups": 2
        },
        "expected": {
          "answer": "240 g"
        },
        "check": "2 * 120 = 240."
      },
      {
        "name": "test vector: water",
        "inputs": {
          "ingredient": "water",
          "cups": 1.5
        },
        "expected": {
          "answer": "355 g"
        },
        "check": "1.5 * 236.588 = 354.882, rounds to 355."
      }
    ],
    "disclaimer": null,
    "deck_category": "cooking"
  },
  "status": "minted",
  "kind": "method",
  "provenanceClass": "own_question",
  "provenance": {
    "schema": "card_provenance/2.0.0",
    "chain": [
      {
        "source": {
          "kind": "url",
          "value": "https://fdc.nal.usda.gov/",
          "retrieved_utc": "2026-09-30T20:10:00Z"
        },
        "sha256": "3057d2b930d5770f15998d324d736b14a8e235f66ca0e9de164753e275b3ecf2",
        "supersedes": null,
        "added_utc": "2026-09-30T22:39:30.722Z",
        "added_by": "method:Cups to grams for common ingredients",
        "why": "the method that computed this answer",
        "check": null,
        "status_label": "pending",
        "signature": null
      }
    ]
  }
}
