def create_analogy_templates(all_analogies):
  """For each analogy, create a template using each word pair.

  Each template contains two special tokens: "[A]" and "[B]". These correspond
  to the first and second word of the analogies provided in the original 
  analogies file, and will be substituted in during the rationalization phase.
  Each analogy also contains a distracor parenthetical clause, which doesn't
  contain any pertinent information for the analogies.
  """
  all_analogies['capital-common-countries']['template'] = (
    "When my flight landed in [B], I converted my currency and slowly fell "
    "asleep. (I had a terrifying dream about my grandmother, but that's a "
    "story for another time). I was staying in the capital, [A]")
  all_analogies['capital-world']['template'] = (
    "When my flight landed in [B], I converted my currency and slowly fell "
    "asleep. (I was behind on a couple of assignments, but I tried not to "
    "think about them). I was staying in the capital, [A]")
  all_analogies['currency']['template'] = (
    "As soon as I arrived in [A], I checked into my hotel and took a long "
    "nap. (I had finally finished the book I was reading and it was amazing). "
    "I had to figure out the exchange rate to the local currency, which is "
    "apparently called the [B]")
  all_analogies['city-in-state']['template'] = (
    "As soon as I arrived in [B], I checked into my hotel and watched a movie "
    "before falling asleep. (I had a great call with my husband, although I "
    "wish it were longer). I was staying in my favorite city, [A]")
  all_analogies['family']['template'] = (
    "I initially invited my [A], who gladly accepted my invitation. (My "
    "favorite song just came on, so I was able to relax). When I learned that "
    "women were allowed, I went ahead and also invited my [B]")
  all_analogies['gram1-adjective-to-adverb']['template'] = (
    "How could he do this so [B]? (I wasn't sure why my phone always rang at "
    "the most inopportune times). When I tried to do it, I could never be [A]")
  all_analogies['gram2-opposite']['template'] = (
    "I thought it was [A]. (Just then an ad came on the TV, but that's "
    "irrelevant). It was the opposite of that: it was [B]")
  all_analogies['gram3-comparative']['template'] = (
    "I knew it was [A], but that's before I saw it in person. (Just then I "
    "thought about my ex-wife, but I had to stop thinking about her). When I "
    "did end up seeing it in person, it was even [B]")
  all_analogies['gram4-superlative']['template'] = (
    "I thought it would be the [B] thing I'd ever encounter. (I tried to "
    "ignore my phone vibrating in my pocket). But when I did end up "
    "encountering it, it turned out it wasn't so [A]")
  all_analogies['gram5-present-participle']['template'] = (
    "Every other day, it started [B] in the morning. (I tried to remember the "
    "name of the woman at the bar). But today, it did not [A]")
  all_analogies['gram6-nationality-adjective']['template'] = (
    "I had never been friends with any [B] people before. (The funniest thing "
    "happened to me the other day, but that's a story for another time). In "
    "fact, I had never even been to [A]")
  all_analogies['gram7-past-tense']['template'] = (
    "Although I [B] yesterday, I had a million things to do today. (I "
    "suddenly felt a pinched nerve, so I made a mental note to get that "
    "checked out). So today I wouldn't have time to do any more [A]")
  all_analogies['gram8-plural']['template'] = (
    "I really wanted to buy the [A], more than I ever wanted to buy anything "
    "before. (I was also behind on my homework, but that's another story). So "
    "I went to the store and asked if they had any [B]")
  all_analogies['gram9-plural-verbs']['template'] = (
    "I can usually [A] by myself. (I was so behind on work but I tried to "
    "distract myself). Although it's so much better when someone else also "
    "[B]")
  return all_analogies