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é.
1. 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": "Spicy Citrus Short Ribs", "description": "Short ribs are marbled with a fair amount of fat-that's part of what makes them so good! Searing the ribs renders some of the fat, but this recipe skips that step in the interest of saving time, so you'll want to thoroughly skim the cooking liquid before drizzling it over the meat and vegetables.", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "1 medium onion, chopped", "1 tablespoon grated orange zest, plus extra for sprinkling", "½ cup fresh orange juice", "2 tablespoons Whole30-compliant tomato paste", "1 teaspoon chipotle powder", "2 cloves garlic, minced", "1 teaspoon salt", "12 bone-in beef short ribs (about 4½ pounds)", "1 package (12 ounces) riced cauliflower and sweet potato, prepared according to package directions" ] } ], "instructions": [ "IN a 6-quart slow cooker, stir together the onion, orange zest, orange juice, tomato paste, chipotle powder, garlic, and salt.", "Place the ribs in the slow cooker; add the orange juice mixture and toss to coat.", "COVER and cook on low for 8 to 9 hours or on high for 4 to 4½ hours.", "TRANSFER the ribs to a serving platter.", "Skim the fat from the cooking liquid.", "Serve the ribs on the riced cauliflower and sweet potato, drizzled with the cooking liquid and topped with additional orange zest." ], "author": null }
- Assistant
{ "data": "WNA" }