Wed | Jan 28, 2026

Brazilian city enacts law that was secretly written by ChatGPT

Published:Friday | December 1, 2023 | 11:10 AM
The logo for OpenAI, the maker of ChatGPT, appears on a mobile phone, in New York, January 31, 2023. Lawmakers in Brazil’s southern city of Porto Alegre Brazil have enacted legislation written entirely by artificial intelligence. The experimental ordinance was passed in October and city councilman Ramiro Rosário revealed on Thursday, November 29, 2023, that it was written by a chatbot, sparking objections and raising questions about the role of artificial intelligence in public policy. (AP Photo/Richard Drew, File)

RIO DE JANEIRO (AP) — City lawmakers in Brazil have enacted what appears to be the nation's first legislation written entirely by artificial intelligence — even if they didn't know it at the time.

The experimental ordinance was passed in October in the southern city of Porto Alegre and city councilman Ramiro Rosário revealed this week that it was written by a chatbot, sparking objections and raising questions about the role of artificial intelligence in public policy.

Rosário told The Associated Press that he asked OpenAI's chatbot ChatGPT to craft a proposal to prevent the city from charging taxpayers to replace water consumption meters if they are stolen.

He then presented it to his 35 peers on the council without making a single change or even letting them know about its unprecedented origin.

“If I had revealed it before, the proposal certainly wouldn't even have been taken to a vote,” Rosário told the AP by phone on Thursday.

The 36-member council approved it unanimously and the ordinance went into effect on Nov. 23.

“It would be unfair to the population to run the risk of the project not being approved simply because it was written by artificial intelligence,” he added.

The arrival of ChatGPT on the marketplace just a year ago has sparked a global debate on the impacts of potentially revolutionary AI-powered chatbots.

While some see it as a promising tool, it has also caused concerns and anxiety about the unintended or undesired impacts of a machine handling tasks currently performed by humans.

Follow The Gleaner on X, formerly Twitter, and Instagram @JamaicaGleaner and on Facebook @GleanerJamaica. Send us a message on WhatsApp at 1-876-499-0169 or email us at onlinefeedback@gleanerjm.com or editors@gleanerjm.com.