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: 500 G (1LB 2 OZ) SQUID CUT INTO PIECES,1 PIECE COARSELY CHOPPED GINGER,2 TABLESPOONS SHAOXING WINE,5 STEMS CHOPPED SPRING ONION,1 TEASPOON CHOPPED GARLIC,1 TEASPOON CHOPPED GINGER,A DRIZZLE + A FEW DROPS VEGETABLE OIL,1 TEASPOON SPICY BEAN PASTE (DOUBANJIANG),100 G (3½ OZ) RED CAPSICUM (PEPPER),100 G (3½ OZ) GREEN CAPSICUM (PEPPER),3 RED ASIAN SHALLOTS,3 LEAVES CORIANDER,2 TABLESPOONS SHAOXING WINE,1 TEASPOON LIGHT SOY SAUCE,A FEW DROPS DARK SOY SAUCE,1/4 TEASPOON BLACK VINEGAR,2 TEASPOONS CORNFLOUR + WATER MIXTURE (1:3 CORNFLOUR TO WATER RATIO)
- Assistantjson
{ "data": [ "500 g squid cut into pieces.", "1 piece coarsely chopped ginger.", "2 tablespoons Shaoxing wine.", "5 stems chopped spring onion.", "1 teaspoon chopped garlic.", "1 teaspoon chopped ginger.", "A drizzle + a few drops vegetable oil.", "1 teaspoon spicy bean paste (Doubanjiang).", "100 g red capsicum (pepper).", "100 g green capsicum (pepper).", "3 red Asian shallots.", "3 leaves coriander.", "2 tablespoons Shaoxing wine.", "1 teaspoon light soy sauce.", "A few drops dark soy sauce.", "1/4 teaspoon black vinegar.", "2 teaspoons cornflour + water mixture (1:3 cornflour to water ratio)." ] }