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 tablespoons vegetable oil,1 onion, coarsely chopped,2 shallots, thinly sliced,2 cloves garlic, chopped,2-inch piece fresh ginger root, thinly sliced,1 stalk lemongrass, cut into 2-inch pieces,4 tablespoons curry powder,1 green bell pepper, coarsely chopped,2 carrots, peeled and diagonally sliced,8 mushrooms, sliced,1 oz. fried tofu, cut into bite-size pieces,4 cups vegetable broth,4 cups water,2 tablespoons vegetarian fish sauce (optional),2 teaspoons red pepper flakes,1 bay leaf,2 makrut lime leaves,8 small potatoes, quartered,1 (14 oz.) can coconut milk,2 cups fresh bean sprouts, for garnish,8 sprigs fresh chopped cilantro, for garnish
- Assistantjson
{ "data": [ "2 tbsp vegetable oil.", "1 onion, coarsely chopped.", "2 shallots, thinly sliced.", "2 cloves garlic, chopped.", "2-inch piece fresh ginger root, thinly sliced.", "1 stalk lemongrass, cut into 2-inch pieces.", "4 tbsp curry powder.", "1 green bell pepper, coarsely chopped.", "2 carrots, peeled and diagonally sliced.", "8 mushrooms, sliced.", "28 g fried tofu, cut into bite-size pieces.", "960 ml vegetable broth.", "960 ml water.", "2 tbsp vegetarian fish sauce (optional).", "2 tsp red pepper flakes.", "1 bay leaf.", "2 makrut lime leaves.", "8 small potatoes, quartered.", "1 (400 g) can coconut milk.", "2 cups fresh bean sprouts, for garnish.", "8 sprigs fresh chopped cilantro, for garnish." ] }
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.