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": "Fried Plantains", "description": "I always crave a little sweetness with my brunches, even if I'm tucking into something savory. Fried plantains are a perfect option, with their crisp, caramelized exterior and sweet, pleasantly mushy interior. Choose plantains that are just beginning to blacken, so that they are sweet but still firm. These are delicious with Polenta Rancheros (page 51) or Courico Tacos with Grilled Pineapple Salsa (page 76), but also irresistible paired with Basic Scrambled Tofu (page 19) or Basic Scrambled Tempeh (page 24).", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "2 plantains", "Vegetable oil for shallow frying", "Salt, to taste" ] } ], "instructions": [ "Slice the plantains on a bias into 2-inch slices.", "Preheat a heavy-bottomed skillet over medium-high heat.", "Add oil to the skillet until it's 4 inch deep.", "When the oil is hot, add half the plantains or so; just don't overcrowd the pan.", "Fry plantains about a minute, then flip; fry for about a minute longer, then flip again.", "This time press the plantains down into the skillet, being careful not to burn yourself with sputtering oil.", "They should be pressed down until they're about half as thick.", "Fry for 45 seconds or so and then flip yet again, fry for another 45 seconds, then transfer to a paper bag or paper towels to drain.", "Repeat with the remaining plantains.", "Sprinkle with salt, if you like.", "Serve ASAP." ], "author": null }
- Assistantjson
{ "data": "WSA" }