Text this: Artificial intelligence, counter-terrorism and the rule of law :