Text this: Artificial intelligence within the legal framework