Text this: Modeling the criminal justice system