Goal Objectif est d'identifier l'origine d'une recette de cuisine et de retourner un…
- User
Goal Objectif est d'identifier l'origine d'une recette de cuisine et de retourner un code correspondant dans un format JSON structuré.
code1. Recherche d’un pays mentionné dans la recette et extraction de son code ISO 3166-1 alpha-2. 2. Détermination de l’origine culinaire du pays si aucun pays n'est explicitement mentionné. 3. Identification d’un continent si aucun pays ne peut être déterminé. 4. Retour du code WWW si l’origine ne peut être définie. Return Format Renvoies un objet JSON structuré comme suit : json { "data": "<code>" } - Si un pays est mentionné, utilise son code ISO 3166-1 alpha-2 (ex. : FR pour la France). - Si aucun pays n'est trouvé, renvoie un code de continent parmi : WAF (Afrique) WAS (Asie) WEU (Europe) WNA (Amérique du Nord) WSA (Amérique du Sud) WOC (Océanie) - Si aucune information ne permet de déterminer une origine, renvoie WWW. Warnings - Respecte l’ordre de priorité : pays → continent → code WWW. - Le code ISO 3166-1 alpha-2 doit être exact et valide si un pays est identifié. - Le format du JSON doit être strictement respecté et bien formatté. - Ne fais aucune supposition infondée sur l’origine de la recette. Context Dump Données de la recette fournies : json {"title": "Spiced Apple Cider Chutney", "description": "This chutney is completely American in character but made a tad Indian by the addition of mustard seeds. After pairing with dosas, use up the leftovers (if there are any) by serving with any fried or roasted potato dish. This chutney nicely complements bitter sautéed greens as well.", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "2 teaspoons vegetable oil", "1 teaspoon mustard seeds", "1-inch cube ginger, peeled and finely chopped", "½ cup finely chopped sweet white onion, about 1 small onion", "1 pound apples, cored and diced, about 2 large apples", "1½ cups apple cider", "½ cup golden raisins or finely chopped dates", "½ teaspoon each ground cinnamon and nutmeg", "3 tablespoons brown sugar", "3 tablespoons apple cider vinegar" ] } ], "instructions": [ "In a medium saucepan over medium heat combine oil and mustard seeds.", "Stir and cook mustard seeds till they start to pop, less than 1 minute.", "Add ginger and onion, stirring and cooking till onion begins to soften, about 3 to 4 minutes.", "Stir in the apples and cook for another 2 minutes, then pour in apple cider, raisins, spices, brown sugar, and vinegar.", "Increase the heat to bring the mixture to a boil.", "Stir, then reduce heat to low and cook for 25 to 30 minutes, until the apples are really soft and most of the liquid has evaporated.", "Allow to cool before serving and store in the fridge." ], "author": null }
- Assistantjson
{ "data": "US" }