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 cups cooked and shredded chicken breasts,2 ½ cups shredded green cabbage,3 scallions, sliced,2 medium carrots, grated,3 tablespoons freshly squeezed lime juice,2 tablespoons fish sauce,1 tablespoon white sugar,1 tablespoon rice wine vinegar,3 tablespoons roughly chopped salted peanuts,1/4 cup roughly chopped mint leaves
- Assistant
{ "data": [ "480 ml cooked and shredded chicken breasts.", "300 g shredded green cabbage.", "3 scallions, sliced.", "2 medium carrots, grated.", "45 ml freshly squeezed lime juice.", "30 ml fish sauce.", "15 g white sugar.", "15 ml rice wine vinegar.", "45 g roughly chopped salted peanuts.", "60 ml roughly chopped mint leaves." ] }
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.