Scale a recipe and convert it to grams
scale_recipeScales a list of recipe ingredient lines ("1 1/2 cups all-purpose flour", "2 tbsp honey", "3 eggs") by a factor or from original to target servings. Parses mixed numbers and fraction characters. With to_metric_weights, converts cup and spoon amounts to grams with the measured density table and weights to grams, and reports lines it could not match.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | Ingredient lines, one per item, quantity first. | |
| factor | No | Multiply every quantity by this, e.g. 2 or 0.5. Or give servings instead. | |
| cup_system | No | Which cup and spoon family the bare words cup, tbsp, tsp, fl oz and pint mean. us = 236.588 mL cup (default), metric = 250 mL cup with 15/5 mL spoons, imperial = 284.13 mL cup with UK pints. Explicit units such as metric_cup always win. | |
| target_servings | No | Servings you want. | |
| original_servings | No | Servings the recipe makes now. | |
| to_metric_weights | No | Also give grams for each line. Default false. |