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: 4 dried shiitake mushrooms,1½ cups warm water,2 teaspoons soy sauce, plus more for the table,2 teaspoons mirin,2 teaspoons sake,2 teaspoons sugar,2 carrots, cut crosswise into 3-inch segments,4 cups Sushi Rice (Shari),6 teaspoons sesame seeds,4 scallions, half the green tops trimmed off thinly sliced,12 snow peas, strings removed, parboiled, and cut lengthwise into ½-inch strips,6 ounces salmon fillet, cut into eight 3-by-1-by-/4-inch slices,6 ounces albacore tuna fillet, cut into eight 3-by-1-by-%-inch slices,12 ounces yellowtail or fluke fillet, cut into sixteen 3-by-1-by-4-inch slices,1½ sheets toasted nori, cut into ½-inch squares,½ cup pickled ginger,¼ cup rice vinegar,4 teaspoons wasabi
- Assistantjson
{ "data": [ "4 dried shiitake mushrooms.", "355 ml warm water.", "2 teaspoons soy sauce, plus more for the table.", "2 teaspoons mirin.", "2 teaspoons sake.", "2 teaspoons sugar.", "2 carrots, cut crosswise into 7.5 cm segments.", "4 cups Sushi Rice (Shari).", "6 teaspoons sesame seeds.", "4 scallions, half the green tops trimmed off thinly sliced.", "12 snow peas, strings removed, parboiled, and cut lengthwise into 1.25 cm strips.", "170 g salmon fillet, cut into eight 7.5-by-2.5-by-0.6 cm slices.", "170 g albacore tuna fillet, cut into eight 7.5-by-2.5-by-0.6 cm slices.", "340 g yellowtail or fluke fillet, cut into sixteen 7.5-by-2.5-by-1 cm slices.", "1.5 sheets toasted nori, cut into 1.25 cm squares.", "120 ml pickled ginger.", "60 ml rice vinegar.", "4 teaspoons wasabi." ] }