From key words to key numbers: how automation has transformed the law