question: "I Was a Fool" is a song written and performed by Canadian duo Tegan and Sara, inspired by one of Rihanna's singles ,Unfaithful from her second studio album "A Girl like Me" (2006), written by who?
answer: Shaffer "Ne-Yo" Smith
context: Title: A Girl like Me (Rihanna album)
  Passage: A Girl like Me is the second studio album by Barbadian singer Rihanna.  It was released on April 10, 2006 by Def Jam Recordings.  For the production of the album, Rihanna worked with Evan Rogers, Carl Sturken, StarGate, J. R. Rotem and label-mate Ne-Yo, who wrote the album's second single.  "A Girl like Me" is a pop, reggae and R&B album influenced by Rihanna's Caribbean roots.  The album also incorporates elements of dancehall and rock, as well as ballads, which music critics were ambivalent towards.
  Title: Heartthrob (album)
  Passage: Heartthrob is the seventh studio album by Canadian pop duo Tegan and Sara, released on January 29, 2013 on Neil Young's label Vapor Records through Warner Bros.  Records.  "Heartthrob" debuted at number 3 on the "Billboard" 200 chart, selling 49,000 copies in its first week and securing the band's highest chart position to date.  It is also the first Tegan and Sara record to chart in New Zealand, the UK and Ireland.  On July 4, 2013, "Heartthrob" was certified Gold in Canada.  As of April 2016, "Heartthrob" has sold 199,000 copies in the United States.
  Title: Rihanna videography
  Passage: Barbadian singer Rihanna has released four video albums and appeared in fifty-two music videos, six films, ten television programs, and eight television commercials.  In 2005, Rihanna signed a recording contract with Def Jam Recordings and released her debut single "Pon de Replay", taken from her first studio album "Music of the Sun" (2005).  Like its lyrical theme, the music video for the song was inspired by disco and dance; it was directed by Little X.  Three separate videos were released for "SOS", the lead single from her second studio album "A Girl Like Me" (2006), all of which contained various dance sequences.  The same year, American director Anthony Mandler directed the accompanying music video for the second single "Unfaithful", which featured Rihanna in a dangerous love triangle with her lover and her husband.  "Unfaithful" was Rihanna's first collaboration with Mandler; they later worked together regularly.  Also in 2006, Rihanna played herself in the third installment of the "Bring It On" film series, entitled "".
  Title: So Jealous
  Passage: So Jealous is the fourth studio album by Canadian duo Tegan and Sara, released on September 14, 2004.  It is their third album on Vapor Records.  The album went gold in Canada and was nominated for a Juno Award for Alternative Album of the Year.  Two singles were released, "Walking with a Ghost" and "Speak Slow", with videos for each. " Walking with a Ghost", was later covered by The White Stripes and became the title song of their EP "Walking with a Ghost".  The album art was created by designer EE Storey.
  Title: Unfaithful (song)
  Passage: "Unfaithful" is a song by Barbadian singer Rihanna from her second studio album "A Girl like Me" (2006).  It was written by Shaffer "Ne-Yo" Smith with the song's producers StarGate.  The song was released by Def Jam Recordings on May 2, 2006, as the second single from the album.  "Unfaithful" is a pop and R&B ballad and was inspired by the works of American rock band Evanescence.  Originally titled "Murderer", the single speaks about a woman who regrets cheating on her partner.
  Title: I Was a Fool
  Passage: "I Was a Fool" is a song written and performed by Canadian duo Tegan and Sara for their seventh studio album, "Heartthrob".  Inspired by Rihanna's singles "Unfaithful" and "Umbrella", the song is about a woman who is in a troubled relationship but doing nothing to fix it, making her seem like a fool.
citations: I Was a Fool Unfaithful (song)