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: 6 cups Vegetarian Pho Broth,1½ teaspoons sugar,1 teaspoon fine sea salt,1 bunch spring onions (about 8 ounces),1 bunch scallions (about 5 ounces),5 plump garlic cloves,2 tablespoons neutral-tasting oil,1 tablespoon rice vinegar,4 bunches baby bok choy (8 to 10 ounces total), quartered lengthwise through the root,1 cup peas, either young ones with edible pods or shelled mature ones,8 ounces medium-width rice noodles,1 small green chili (serrano, Thai chili, or jalapeño), sliced into very thin rings,2 cups loosely packed mixed fresh herbs, such as chervil, parsley, mint, cilantro, basil, and/or chives, for serving,Lime wedges, for serving
- Assistant
{ "data": [ "1440 ml Vegetarian Pho Broth.", "1.5 tsp sugar.", "1 tsp fine sea salt.", "1 bunch spring onions (about 227 g).", "1 bunch scallions (about 142 g).", "5 cloves garlic.", "2 tbsp neutral-tasting oil.", "1 tbsp rice vinegar.", "4 bunches baby bok choy (227 to 284 g total), quartered lengthwise through the root.", "240 ml peas, either young ones with edible pods or shelled mature ones.", "227 g medium-width rice noodles.", "1 small green chili (serrano, Thai chili, or jalapeño), sliced into very thin rings.", "480 ml loosely packed mixed fresh herbs, such as chervil, parsley, mint, cilantro, basil, and/or chives, for serving.", "Lime wedges, for serving." ] }Notes:
- Converted "6 cups" to 1440 ml (1 cup = 240 ml).
- Converted "1½ teaspoons" to "1.5 tsp."
- Converted "1 teaspoon" to "1 tsp."
- Converted weights in ounces to grams (1 oz = 28.35 g), rounded.
- Converted "1 cup" peas to 240 ml.
- Converted "2 cups" herbs loosely packed to 480 ml.
- Abbreviated units per metric system: teaspoons → tsp, tablespoons → tbsp, grams → g, milliliters → ml.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.