I have a list of ingredients that I would like to format in a simple and consistent way,…
- User
I have a list of ingredients that I would like to format in a simple and consistent way, following this structure:
"Quantity Unit Description."
Formatting Rules:
Quantity must be a number (e.g., "200" instead of "two hundred").
Unit must use the metric system and the corresponding abbreviated form (e.g., grams → g, liters → l, milliliters → ml, etc.).
Description should be the ingredient, including any specific details if mentioned (e.g., "brown sugar", "melted unsalted butter").
If an ingredient is already formatted correctly, do not change it.
Do not invent a quantity or unit if none is provided — leave it as is and just include the description.
If a line includes alternatives or multiple options (e.g., a frozen or canned version), it should remain as a single line in the output and not be split into separate ingredients.
Return Format: The result should be returned as a properly formatted JSON object, like this: json { "data": } Please reformat each ingredient in the list I will provide according to these guidelines.
Context Dump Ingredients source provided: 3 thin slices prosciutto,1/2 cup (125 mL) parsley leaves,1/4 cup (60 mL) arugula,1/4 cup (60 mL) freshly grated Parmesan cheese,1 clove garlic, peeled,1 shallot, peeled,3 tablespoons (45 mL) olive oil,1 teaspoon (5 mL) hot sauce,Juice of lemon,6 Malpeque or other large oysters,2 tablespoons (30 mL) panko breadcrumbs,½ cup (125 mL) white vinegar,6 quail eggs,1 tablespoon (15 mL) chopped fresh chives,Salt and black pepper
- Assistantjson
{ "data": [ "3 thin slices prosciutto.", "125 ml parsley leaves.", "60 ml arugula.", "60 ml freshly grated Parmesan cheese.", "1 clove garlic, peeled.", "1 shallot, peeled.", "45 ml olive oil.", "5 ml hot sauce.", "Juice of lemon.", "6 Malpeque or other large oysters.", "30 ml panko breadcrumbs.", "125 ml white vinegar.", "6 quail eggs.", "15 ml chopped fresh chives.", "Salt and black pepper." ] }