def get_ud(self, cardinal, user, channel, msg):
        try:
            word = msg.split(' ', 1)[1]
        except IndexError:
            cardinal.sendMsg(channel, 'Syntax: .ud <word>')
            return

        try:
            url = URBANDICT_API_PREFIX + word
            f = urlopen(url).read()
            data = json.loads(f)

            word_def = data['list'][0]['definition']
            link = data['list'][0]['permalink']

            response = 'UD for %s: %s (%s)' % (word, word_def, link)

            cardinal.sendMsg(channel, response.encode('utf-8'))
        except Exception:
            cardinal.sendMsg(channel, word % "Could not retrieve definition for %s")
dataset/ETHPy150Open JohnMaguire/Cardinal/plugins/urbandict/plugin.py/UrbanDictPlugin.get_ud/swapped operands of `%`