Modeling the Evolution of Legal Discretion: An Artificial Intelligence Approach