The sentencing assistant starts with the fact pattern—defendant’s criminal record, age, damages incurred, and so on—then its algorithms scan millions of court records for similar cases. It uses that body of knowledge to make recommendations for jail time or fines to be paid.