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": "Moroccan Veggie Skillet", "description": null, "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "2 C. long grain rice", "2 tbsp butter", "2 tbsp olive oil", "1 onion, chopped", "2 garlic cloves, finely chopped", "12 cinnamon stick", "1/2 tsp salt (to taste)", "1/2 tsp ginger", "1/2 tsp white pepper", "1/2 tsp cumin", "1/2 tsp turmeric", "1/4 C. fresh cilantro, chopped", "1/4 C. peas (fresh or frozen)", "1 red bell pepper, finely chopped", "1 carrot, finely chopped", "4 1/2 C. chicken stock or 4 1/2 C. vegetable stock", "1/4 tsp saffron thread, crushed" ] } ], "instructions": [ "1. Place a large saucepan over medium heat. Pour the stock in it and cook it until it starts boiling.", "2. Place a large skillet over medium heat. Stir in it the remaining ingredients. Let them cook for 12 min over low medium heat.", "3. Stir in the saffron with boiling stock and a pinch of salt. Cook it until it starts simmering.", "4. Put on the lid and cook the pilaf over low heat for 37 min. serve your pilaf warm.", "5. Enjoy." ], "author": null }
- Assistantjson
{ "data": "MA" }