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": "Mac 'N' Cheese Waffles", "description": "The trick with this recipe is making sure that the macaroni is coated in more cheese than you think it should need, because it's the crisping of the cheese that helps the waffle keep its shape. Now I know what you're thinking: Matt, you talk about a mac and cheese waffle so casually like everyone's tried this. You're right, it's different, but part of the fun in writing this chapter was taking things I already loved (like mac and cheese) and seeing if the waffle iron could make them better. I wish I had come up with this idea back in university. I could have made a killing out of my dorm room.", "subtitle": null, "ingredients": [ { "section": "The Mac...", "ingredients": [ "1 tablespoon (15 mL) salt", "2 cups (500 mL) macaroni", "1 teaspoon (5 mL) unsalted butter" ] }, { "section": "...and the Cheese", "ingredients": [ "1/2 cup (125 mL) unsalted butter", "1/4 cup (60 mL) all-purpose flour", "2% cups (550 mL) 2% milk", "2 cups (500 mL) grated orange cheddar cheese", "3 tablespoons (45 mL) mascarpone cheese", "Salt" ] }, { "section": "For Serving", "ingredients": [ "Sriracha hot sauce", "2 tablespoons (30 mL) finely chopped fresh chives" ] } ], "instructions": [ "Preheat a non-stick waffle iron (I repeat, non-stick!).", "Fill a large pot with water and bring to a boil over high heat.", "Add the salt and macaroni and give everything a stir.", "Cook the pasta for 8 minutes, or until al dente.", "Drain the pasta and return it to the pot.", "Stir in the butter to coat the pasta and ensure it does not stick together.", "Set it aside until you are ready to mix in your cheese sauce.", "Melt the butter in a medium saucepan over high heat.", "Turn the heat down to medium-high and add the flour.", "Stir well until a paste forms and begins to lightly brown.", "It is important to cook the flour to ensure your mac 'n' cheese doesn't have a floury taste!", "Pour the milk into the pan and whisk well.", "When the sauce starts to simmer and thicken, add the cheddar and mascarpone.", "Stir well until the cheese has melted, then remove from the heat.", "Reserve 1 cup (250 mL) of the cheese sauce and pour the rest over the cooked macaroni.", "Season with salt and stir to combine.", "Ladle 1 to 1½ cups (250 to 375 mL) of mac 'n' cheese into the waffle iron to make 2 waffles and cook until the edges are golden and crispy and the waffle doesn't stick, about 6 minutes.", "If you start to lift the lid and the waffle doesn't cleanly pull away, then you know it's not ready yet.", "Repeat with the remaining mac 'n' cheese.", "To serve, top each waffle with a drizzle of the reserved cheese sauce, a drizzle of Sriracha, and a sprinkling of chives." ], "author": null }
- Assistantjson
{ "data": "WNA" }