Commits

dustin smith  committed c286d62

first element is always the pronoun

  • Participants
  • Parent commits 1845ca4

Comments (0)

Files changed (1)

             result[0]['text'] = text
             result[0]['tuples'] = filter(lambda x: not (x[1] == used_pronoun or x[2]
                     == used_pronoun), result[0]['tuples'])
-            result[0]['words'] = filter(lambda x: not x.has_key(used_pronoun),
-                    result[0]['words'])
+            result[0]['words'] = result[0]['words'][1:]
             return dumps(result)
         else:
             # if there's a timeout error, just return it.