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: a medium-sized squash, such as onion squash or butternut,4 tablespoons of olive, rapeseed or groundnut oil,a tablespoon of mustard seeds,a tablespoon of garam masala,2 eggs,50g butter (for Buttered poached eggs and herbs),4 lightly poached eggs (for Buttered poached eggs and herbs),a couple of tablespoons of chopped herbs (for Buttered poached eggs and herbs),a few drops of lemon juice (for Buttered poached eggs and herbs),split English muffins (for English muffins, cheese, poached eggs),grated cheese (for English muffins, cheese, poached eggs),poached eggs (for English muffins, cheese, poached eggs),York ham (for Eggs and ham),sliced provolone cheese (for Eggs and ham)
- Assistantjson
{ "data": [ "a medium-sized squash, such as onion squash or butternut.", "4 tbsp olive, rapeseed or groundnut oil.", "1 tbsp mustard seeds.", "1 tbsp garam masala.", "2 eggs.", "50 g butter (for Buttered poached eggs and herbs).", "4 lightly poached eggs (for Buttered poached eggs and herbs).", "a couple of tablespoons of chopped herbs (for Buttered poached eggs and herbs).", "a few drops of lemon juice (for Buttered poached eggs and herbs).", "split English muffins (for English muffins, cheese, poached eggs).", "grated cheese (for English muffins, cheese, poached eggs).", "poached eggs (for English muffins, cheese, poached eggs).", "York ham (for Eggs and ham).", "sliced provolone cheese (for Eggs and ham)." ] }