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: 2 tsp canola oil,10 ml,3/4 cup thinly sliced carrots,180 ml,1/2 cup finely chopped leek,125 ml,1/3 cup chopped orange or yellow bell pepper,80 ml,1/3 cup finely chopped onion,80 ml,1 clove garlic, finely chopped,3 1/2 cups low-sodium chicken broth,875 ml,1 lb sweet potatoes, peeled and halved lengthwise, then thinly sliced,500 g,1 small potato, peeled and halved lengthwise, then thinly sliced,1/3 cup dry white wine or low-sodium chicken broth,80 ml,1 pinch freshly ground black pepper,1 bay leaf,1/4 cup chopped, toasted pecans,60 ml
- Assistantjson
{ "data": [ "10 ml canola oil.", "180 ml thinly sliced carrots.", "125 ml finely chopped leek.", "80 ml chopped orange or yellow bell pepper.", "80 ml finely chopped onion.", "1 clove garlic, finely chopped.", "875 ml low-sodium chicken broth.", "500 g sweet potatoes, peeled and halved lengthwise, then thinly sliced.", "1 small potato, peeled and halved lengthwise, then thinly sliced.", "80 ml dry white wine or low-sodium chicken broth.", "1 pinch freshly ground black pepper.", "1 bay leaf.", "60 ml chopped, toasted pecans." ] }