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": "Individual Baked Hash Browns", "description": "Yeah, hash browns dripping with oil are great but sometimes you don't want a brunch you'll be paying for the rest of the day. These are baked and really simple; the real work is squeezing the water out of the potatoes. Once you've done that you'll have crisp-on-the-outside, tender-on-the-inside, pure potato bliss.", "subtitle": "", "ingredients": [ { "section": "For the recipe", "ingredients": [ "3 pounds Yukon Gold potatoes, scrubbed", "1/4 cup vegetable oil (canola is good)", "1 tablespoon cornstarch", "1 teaspoon salt", "½ teaspoon ground black pepper" ] } ], "instructions": [ "Preheat the oven to 400°F. Liberally grease a muffin tin.", "First, the potatoes need to be grated. And they really should be more grated than shredded, so if you are using a food processor, first cut them into 3/4-inch chunks and then shred them with the shredding attachment (this method will yield a smaller cube more akin to grating). You can also grate them with a box grater.", "Place the grated potatoes in cheesecloth or a large kitchen towel. Gather up the edges and wring the potatoes over the sink. Water should ooze out. It might take up to 3 minutes to drain out enough water and your hands may cramp, but soldier on!", "Squeeze the potatoes by the handful until very little moisture is left. Once they are well drained they are ready.", "The rest of the recipe is easy. Place the drained potatoes in a large mixing bowl and add the remaining ingredients. Mix well.", "Divvy up the potatoes into the muffin tin, filling it all the way. Bake for 30 to 35 minutes, until the tops are golden brown.", "Let hash browns cool for about 10 minutes. As soon as they are cool enough to handle (but still warm) use a paring knife to scrape around their edges and unstick them from the tin, then use a fork to coax them out." ], "author": null }
- Assistant
{ "data": "WNA" }