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: 700 g of chicken breast or boneless thighs, cut into small pieces and marinated (1 tablespoon soy sauce and 1 teaspoon garlic powder),300 g of raw peeled shrimp marinated (1 tablespoon soy sauce and 1 teaspoon garlic powder),300 g cooked basmati rice,6 eggs,10 black fungus mushrooms rehydrated in boiling water, thinly sliced,3 bell peppers (yellow, red, green) thinly sliced lengthwise,2 bok choy (also called Shanghai cabbage or Tom Thumb greens) sliced, or Chinese cabbage leaves (1 per person),A few shiitake mushrooms,1 large long carrot cut on the diagonal,2 crushed garlic cloves,1 medium onion sliced,A few chopped green onion stalks (scallion tops),2 tablespoons cornstarch (Maizena®) or tapioca starch diluted with oyster sauce,4 tablespoons oyster sauce diluted in cold water,1 tablespoon soy sauce diluted with the oyster sauce/Maizena® mixture,Vegetable oil,Salt, pepper
- Assistant
{ "data": [ "700 g chicken breast or boneless thighs, cut into small pieces and marinated (1 tablespoon soy sauce and 1 teaspoon garlic powder).", "300 g raw peeled shrimp marinated (1 tablespoon soy sauce and 1 teaspoon garlic powder).", "300 g cooked basmati rice.", "6 eggs.", "10 black fungus mushrooms rehydrated in boiling water, thinly sliced.", "3 bell peppers (yellow, red, green) thinly sliced lengthwise.", "2 bok choy (also called Shanghai cabbage or Tom Thumb greens) sliced, or Chinese cabbage leaves (1 per person).", "A few shiitake mushrooms.", "1 large long carrot cut on the diagonal.", "2 crushed garlic cloves.", "1 medium onion sliced.", "A few chopped green onion stalks (scallion tops).", "2 tablespoons cornstarch (Maizena®) or tapioca starch diluted with oyster sauce.", "4 tablespoons oyster sauce diluted in cold water.", "1 tablespoon soy sauce diluted with the oyster sauce/Maizena® mixture.", "Vegetable oil.", "Salt, pepper." ] }