Text Analysis & GenerationHousehold
Turn Recipe Into Grocery Shopping List
Convert a recipe into a categorized grocery list: extract ingredients, consolidate duplicates, standardize units, handle missing amounts, and exclude pantry items with case-insensitive singular/plural matching.
Prompt Content
Create a categorized grocery shopping list from the recipe.
1) Extract ingredients and amounts from
<recipe>
Recipe
</recipe>
; ignore cooking steps.
2) Consolidate duplicates and sum quantities; standardize units for easy shopping.
3) Exclude any items listed in Pantry Items (case-insensitive, singular/plural matches).
4) Organize items by these categories in this order; omit empty categories:
Produce; Meat & Seafood; Dairy & Eggs; Grains & Pasta; Canned & Jarred; Baking; Spices & Herbs; Condiments & Oils; Other.
5) Output only the list in the exact format shown below.
• Each item line: • Item name - quantity unit, note (prep/variety/size) if specified.
• Keep names generic unless a specific variety/brand is required.
• Use practical store units (e.g., bunch, head, can size, oz, lb, g, ml); prefer counts for produce when reasonable.
• If amount is missing, write "as needed"; for "to taste", write "to taste".
• No commentary beyond category names and item lines.
<example>
Produce
• Onion - 2 medium
• Cilantro - 1 bunch
Spices & Herbs
• Cumin (ground) - 2 tsp
• Black pepper - to taste
Dairy & Eggs
• Greek yogurt - 1 cup
</example>
Recipe:
<recipe>
Recipe
</recipe>
Exclude (comma-separated):
Pantry Items
Variables
- Recipe
- Full recipe text including the ingredient list and any quantity/size notes.
- Example: Ingredients: 1 lb chicken thighs, 2 medium onions (sliced), 3 cloves garlic, 1 tsp ground cumin, 14 oz diced tomatoes (can), 1 cup Greek yogurt, salt and pepper to taste.
- Pantry Items
- Comma-separated items you already have to exclude from the list.
- Example: salt, black pepper, olive oil, sugar