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": "Spooky Witches' Fingers", "description": null, "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "1 cup butter, softened", "1 cup confectioners' sugar", "1 egg", "1 teaspoon almond extract", "1 teaspoon vanilla extract", "2 cups all-purpose flour", "1 teaspoon baking powder", "1 teaspoon salt", "3/4 cup whole almonds", "1 (.75 ounce) tube red decorating gel" ] } ], "instructions": [ "Combine the butter, sugar, egg, almond extract, and vanilla extract in a mixing bowl.", "Beat together with an electric mixer; gradually add the flour, baking powder, and salt, continually beating; refrigerate 20 to 30 minutes.", "Preheat oven to 325 degrees F (165 degrees C).", "Lightly grease baking sheets.", "Remove dough from refrigerator in small amounts.", "Scoop 1 heaping teaspoon at a time onto a piece of waxed paper.", "Use the waxed paper to roll the dough into a thin finger-shaped cookie.", "Press one almond into one end of each cookie to give the appearance of a long fingernail.", "Squeeze cookie near the tip and again near the center of each to give the impression of knuckles.", "You can also cut into the dough with a sharp knife at the same points to help give a more finger-like appearance.", "Arrange the shaped cookies on the baking sheets.", "Bake in the preheated oven until the cookies are slightly golden in color, 20 to 25 minutes.", "Remove the almond from the end of each cookie; squeeze a small amount of red decorating gel into the cavity; replace the almond to cause the gel to ooze out around the tip of the cookie." ], "author": null }
- Assistantjson
{ "data": "WNA" }