RICHMOND, Va. — C u in court.

Courts around the country are embracing text messages as a way to nudge people into showing up for their hearings.

On any given day, up to half of defendants fail to show up for their scheduled proceedings. No-shows cost the courts time and money and can cost defendants their freedom.

Public defenders and court administrators are using text reminders in more than a dozen states, including Virginia, California, Pennsylvania, Maryland, Florida and Washington.

Richmond Public Defender Tracy Paner said the reminders have been a huge help to her clients, who are often struggling with poverty and chaotic family lives, in addition to dealing with the fallout from an arrest. Missing a court date can spur a judge to issue a bench warrant, which can lead to a citation or arrest, fines and even jail time.

“If you’re hustling and you don’t know how you’re going to pay your rent and looking for a job and wondering where you are going to get food, kind of the last thing on your mind is your court date,” Paner said. “If we can help with that, that’s easy for us.”

In Richmond and Petersburg, the Virginia Indigent Defense Commission used a grant to set up a pilot program. The commission contracted with Uptrust, a San Francisco-based company whose software integrates with the public defender’s case management software to access the names, cellphone numbers, court dates and other information to track cases.

Uptrust’s software builds a schedule of reminders for each defendant and automatically sends texts on those dates. The messages are typically sent 10 days, one week and one day before a scheduled hearing.

Some texts also include customized messages reminding people to seek time off from work, arrange for child care and figure out how they will get to court.

One of the main goals is to reduce failure-to-appear rates.

In New York City, researchers who studied a pilot program found that from March 2016 to June 2017 text messages that combined information on planning, what to expect and the consequences of not going to court led to a 26% drop in the number of no-shows.

Text messages were initially used by some courts to remind people to report for jury duty, said Bill Raftery, a senior analyst with the National Center for State Courts.

After Michael Brown was shot by police in Ferguson, Mo., in 2014, a Justice Department investigation focused attention on the practice of issuing fines and other penalties for failing to appear in court, even for minor traffic charges.

“There was then this idea that the court itself should notify the defendant directly, and one of the ways to do that was through a known mechanism, the person’s cellphone,” Raftery said.

In Arizona, after court administrators started a pilot program last year, the text reminders for criminal court hearings helped reduce the number of failure-to-appear warrants issued in Scottsdale Municipal Court by 51.9% during its first three months.

“We don’t want to have a person not show up and have that time wasted,” said David Byers, director of the Administrative Office of the Arizona Courts. “This is an attempt to get it taken care of without the consequences cascading into a complete catastrophe for someone.”

In Contra Costa County, Calif., public defenders began using text reminders in 2016. Court data showed more than half of misdemeanor defendants weren’t showing up for their hearings.

“For people who have jobs and are hard to reach, or people under 25, texting is the best way to reach them,” said Blanca Hernandez, deputy public defender in Contra Costa County.

Uptrust charges an initial fee of $10,000 to $20,000 and a $2 fee for each person who receives text reminders.

A text from the Richmond Public Defender’s Office recently prevented 25-year-old Strangé Simon from missing her court hearing on a marijuana possession charge.

“I thought my court date was the 20th, but it was the 16th,” Simon said. “When I got the text, I was like, oh, my goodness, I am happy because I didn’t know that at first.”