A Texas attorney was sanctioned for including inaccurate citations generated by artificial intelligence in a motion filing, according to a Texas state judge.

Lawrence Chang must pay $2,000 in attorneys’ fees and expenses to opposing counsel at Rusty Hardin & Associates LLP and write a letter outlining where his AI use erred and how he’ll avoid doing so in the future, Judge Maya Guerra Gamble said in an order Wednesday. Guerra Gamble granted the opposing counsel’s motion to sanction Chang, who works for Choate & Associates PC.

The court finds “good cause supports the imposition of sanctions in order to …