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": "The Great Canadian Breakfast Sandwich", "description": "Oh, Canada. Home to hockey, flannel/denim combinations, and peameal bacon, also known as Canadian bacon. Widely considered the most\nCanadian thing you can eat, peameal is cured and salted pork loin covered in cornmeal (historically it was chickpea meal, hence the name). If\nyou ever find yourself at a Canadian carnival, fair, or farmers' market that doesn't offer up these sandwiches, then leave, they're phonies. My\ntheory on the bacon sandwich is, if you're going to make it, make it as Canadian as possible. This version ensures that yes, you might wear half\nof it, but also yes, you will be in love.", "subtitle": null, "ingredients": [ { "section": "Maple Syrup Onions", "ingredients": [ "1 tablespoon (15 mL) unsalted butter", "4 small yellow onions, thinly sliced", "1 teaspoon (5 mL) salt", "2 teaspoons (10 mL) cinnamon", "1/4 cup (60 mL) real Canadian maple syrup" ] }, { "section": "For Serving", "ingredients": [ "6 strips bacon", "6 slices Canadian (peameal) bacon", "4 slices orange cheddar cheese", "1 tablespoon (15 mL) canola oil", "2 large eggs", "2 brioche buns, sliced in half" ] } ], "instructions": [ "ONIONS, EH?\nHeat a large frying pan over medium-high heat and melt the butter. Add the sliced onions and cook, stirring\nfrequently, until translucent. Season the onions with salt and continue cooking for another 7 minutes. Turn\nthe heat down to medium-low and add the cinnamon and maple syrup. Stirring occasionally, cook the onions\nfor 15 minutes. Remove the onions from the pan and set aside.", "BACK BACON A.K.A. PEAMEAL BACON A.K.A. CANADIAN BACON\nUsing the same frying pan, turn the heat back up to medium-high and fry the strip bacon for 2 minutes on\neach side, or until crispy. Remove the bacon from the pan and set it aside to drain on a plate lined with paper\ntowel.", "Again using the same pan (and the bacon grease!), turn the heat down to medium and cook the peameal\nbacon on the first side for 2 minutes. Flip the bacon and cook for another 5 minutes. In the pan, arrange the\npeameal bacon into 2 stacks of 3 and lay 2 slices of cheddar on top of each stack. Cover the pan and leave\non the heat for 1 to 2 minutes to allow the cheese to melt.", "While the cheese is melting over the bacon, heat the canola oil in a small frying pan over medium-high\nheat. Crack the eggs into the pan and turn the heat down to medium. Cook the eggs sunny side up for about\n5 minutes.", "IF YOU BUILD IT, THEY WILL EAT\nTo assemble, place 3 slices of strip bacon on the bottom half of each brioche bun. Layer each with a\npeameal and cheese stack, and top with a healthy spoonful of Maple Syrup Onions. Finish each sandwich\nwith a sunny-side-up egg and the top of the brioche bun." ], "author": null }
- Assistantjson
{ "data": "CA" }