In O. Henry's "The Cop and the Anthem," one notable simile is when the protagonist, Soapy, thinks about how his desire to avoid the cold winter compels him, “like a dog that knows it is being hunted.” This comparison illustrates Soapy's desperation and the instinctual drive he feels to evade the harsh realities of winter, emphasizing his vulnerability and the futility of his situation. It contributes to the text by highlighting the primal instincts that compel him, creating sympathy for his character and underscoring the theme of survival in an unforgiving environment.
Another metaphor in the text is when O. Henry describes Soapy's thoughts about life on the streets as “a game of chess where all the pieces are pawns.” This metaphor underscores the idea that Soapy, like the pawns, is trapped in a challenging and unchanging position, with limited options and struggles that dictate his movements. It emphasizes the deterministic view of his life as a social outcast, adding depth to the narrative by reflecting on the larger themes of chance and choice in the urban landscape.