There probably is, but as I understand, there are some Supreme Court rulings from 1970s to 1990s that make it very costly and/or require a high bar of proof that accused is a threat to themself or others.
The workaround to the very high costs of working within these rulings was imprisoning people for drug or other non violent offenses, which was much cheaper and easier.
The workaround to the very high costs of working within these rulings was imprisoning people for drug or other non violent offenses, which was much cheaper and easier.