Role of artificial intelligence in law