You prosecute someone that's mentally ill and send them to jail. Now the jail has to deal with violent outbursts and is generally not equipped to handle people on a medical level like that. Our prison system is designed to punish people, so those people if they get out of jail fall back into the same issues.
The answer to solve these problems is better preventative care. Meaning better healthcare for vulnerable populations, better solutions to housing for the homeless and so forth. Unfortunately solutions like this require things like increased taxes or recognizing the problem exists and many would prefer to just sweep it under the rug for people in emergency rooms and jails to deal with.
None of this discussion solves the actual problem at hand, it just deals with the symptoms. Eventually the problem will become uncontrollable if you just ignore the actual damn reasons why people with said issues end up becoming homeless or violent in the first place.
We can and should chip away at risk factors, but the human brain is wickedly complex and we're never going to get 100% health and behavior within norms. Just like we can and should encourage exercise and healthy diets, but we're still going to need the medical system.
Truly a good solution. /s
Check out some rural newspapers for these type of police briefs or court news.
However, imprisoning the mentally ill carries its own set of issues.
https://www.npr.org/sections/health-shots/2018/04/25/6056661...