Will AI replace lawyers? Assessing the potential of artificial intelligence in legal services