Eight-year-old Mimi was put in solitary confinement at Yuelishan Park in Changsha city, after a visitor complained.
She had to stay in a darkened cage and listen to recordings of polite conversation in a bid to improve her behaviour.
"I was playing with her, and suddenly she said: "You're a stupid man"," the tourist, Mr Du, told the Chongqing Evening News.
"She also called me an ugly man."
A park spokesman said: "When she swears, the feeder refuses to feed her. And while she's confined, we play her tapes of polite speech."
The park says the sentence has cured Mimi of her habit, and that she is now welcoming guests pleasantly.
"We hope tourists won't teach her to swear again," added the spokesman. (Chongqing Evening News)