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": "Traditional Butter Cookies (Sables)", "description": null, "subtitle": null, "ingredients": [ { "section": "Cookies", "ingredients": [ "1 C. butter, softened", "1/2 C. granulated sugar", "1 large free range egg", "2 1/2 C. all-purpose flour", "1/2 tsp vanilla extract" ] }, { "section": "Topping", "ingredients": [ "3/4 C. strawberry jam", "1/2-3/4 C. icing sugar" ] } ], "instructions": [ "1. Set your oven to 340 degrees F before doing anything else and line a baking tray with foil paper, shiny side up.", "2. In a bowl, add the sugar and margarine and beat till fluffy.", "3. Add the egg and vanilla extract and beat till well combined.", "4. Slowly, add the flour and baking powder and mix till a soft dough forms.", "5. On a floured surface with a rolling pin, roll the dough to 1/4-inch thickness.", "6. Cut the tops and bottoms from dough and place onto prepared baking tray in a single layer.", "7. Cook in the oven for about 8 minutes.", "8. Remove from oven and keep aside to cool completely.", "9. In a pan, add jam and heat till bubbling.", "10. Remove from heat and let it cool slightly.", "11. In a large tray, arrange the top of cookies and sprinkle with icing sugar.", "12. Place about 1/2 tsp of jam over the underside of bottom of cookies.", "13. Carefully, arrange the top cookies over jam.", "14. Keep aside to set completely before serving." ], "author": null }
- Assistantjson
{ "data": "WWW" }