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: 1 cup Cream of Wheat cereal, uncooked,½ cup rice flour,½ cup chickpea flour,2 teaspoons salt,½ generous teaspoon freshly cracked peppercorns (just grind whole peppercorns as coarsely as possible),1½ teaspoons cumin seeds,3½ cups water, plus up to 1 cup extra,½ cup very finely chopped red onion,½ cup chopped, toasted cashews,1-2 jalapeños, seeded and chopped,Vegetable oil for frying (any kind that is well suited for higher temperatures, such as peanut or high-heat canola),1 recipe Spiced Apple Cider Chutney
- Assistantjson
{ "data": [ "240 ml Cream of Wheat cereal, uncooked.", "120 g rice flour.", "120 g chickpea flour.", "10 ml salt.", "2.5 ml freshly cracked peppercorns (just grind whole peppercorns as coarsely as possible).", "7.5 ml cumin seeds.", "840 ml water, plus up to 240 ml extra.", "120 g very finely chopped red onion.", "120 g chopped, toasted cashews.", "1-2 jalapeños, seeded and chopped.", "Vegetable oil for frying (any kind that is well suited for higher temperatures, such as peanut or high-heat canola).", "1 recipe Spiced Apple Cider Chutney." ] }