Legal software infused with artificial intelligence