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: 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: Boyfriend (Tegan and Sara song)
  Passage: "Boyfriend" is a song written and recorded by Canadian musical duo Tegan and Sara for their eighth studio album, "Love You to Death" (2016).  The twins co-wrote the track with its producer, Greg Kurstin, who had previously worked with them on the majority of their breakthrough album, "Heartthrob" (2013).  Released to digital retailers April 8, 2016 through Vapor Records and Warner Bros.  Records, "Boyfriend" serves as the album's lead single and their first non-soundtrack single in nearly three years.
  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: 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.
  Title: I'm Not Your Hero
  Passage: "I'm Not Your Hero" is a song written, recorded and performed by Canadian duo Tegan and Sara and produced by Greg Kurstin for the album "Heartthrob" (2013).  Recorded at Echo Studio and EastWest Studios in California in 2012, it was released on October 21 of that year as a promotional single.  The lyrics for the new wave synthpop ballad were written by Sara Quin, and discuss her teenage life in the 1990s when she was unable to identify with the lives of pop culture figures and had unforeseen thoughts about her later life.  Guitar chords, drums, bass guitar, synths and harmonized vocals are also played in the track.
  Title: Closer (Tegan and Sara song)
  Passage: "Closer" is a song written and performed by Canadian duo Tegan and Sara.  The song was written by Tegan Quin with contributions from Sara Quin and Greg Kurstin for their seventh studio album, "Heartthrob" (2013).  The song was released as the lead single from the album in September 2012.  Closer won "Single of the Year" at the 2014 Juno Awards.  The song was featured on the TV series "Glee" during its 82nd episode.  In 2013, it peaked at number one on "Billboard"' s Hot Dance Club Songs chart.  It also became their first single to chart on the "Billboard" Hot 100.  On April 20, 2013, 3600 vinyl copies of "Closer Remixed", including four more tracks than the digital EP, were exclusively released for Record Store Day 2013.  On July 4, 2013, "Closer" was certified platinum in Canada.
  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: List of Rihanna concert tours
  Passage: Barbadian recording artist Rihanna has embarked on four concert tours, three of which have been worldwide.  Her 2006 debut, was based in North America only and supported her first and second studio album, "Music of the Sun" (2005) and "A Girl like Me" (2006).  The tour lasted for three months, through which Rihanna performed 36 shows.  The same year, Rihanna continued to tour as a special guest on the PCD World Tour with Pussycat Dolls, Roc the Block Tour with Jay-Z and Ne-Yo, and the Monkey Business Tour with Black Eyed Peas.  In the period from 2007 till 2009, she performed on the worldwide Good Girl Gone Bad Tour in a support of her third studio album with same name.  During the tour, Rihanna visited Europe, North America, Oceania, Asia and Africa.  It featured Rihanna presenting completely different style and wearing leather outfits.  The Good Girl Gone Bad Tour sparked controversy in Malaysia where the Pan-Malaysian Islamic Party recommended that Rihanna's concert tour should be banned due her provocative outfits.  A DVD, titled "Good Girl Gone Bad Live" was released on June 16, 2008.  It features the show from Evening News Arena in Manchester, England, held on December 6, 2007.
  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.
citations: I Was a Fool Unfaithful (song)