A sex offender can be a habitual incest perpetrator, a teenager who texts a picture of her naked breasts to a lover, or a frail Alzheimer’s patient locked in indefinite postprison preventive detention in a prison-like psychiatric institution, also known as “civil commitment.”