3. 检查一篇英文文章的语法和拼写错误。
以下是一篇英文文章，请检查文章中的语法和拼写错误并进行更正。
"Imagin a situation wear you are at a party and someone offends you by saying something inappropriate. How do you react? Do you get angry and start an argument, or do you take a deep breath and walk away? In most situations, it's better to remain calm and avoid a heated confrontation."
"Imagine a situation where you are at a party and someone offends you by saying something inappropriate. How do you react? Do you get angry and start an argument, or do you take a deep breath and walk away? In most situations, it's better to remain calm and avoid a heated confrontation." (Corrected: 'Imagin' to 'Imagine', 'wear' to 'where')