code: def _rank_qr(self, choices):
          
          from bernard.platforms.facebook import layers as fbl
  
          try:
              qr = self.request.get_layer(fbl.QuickReply)
              self.chosen = choices[qr.slug]
              self.slug = qr.slug
  
              if self.when is None or self.when == qr.slug:
                  return 1.0
          except KeyError:
              pass
docs: Look for the QuickReply layer's slug into available choices.