Learning the law