In the ninth year of Chunxi, in a cell in Taizhou, a woman was asked the same question again and again.
They wanted one sentence from her. They wanted her to say that she had been the mistress of Tang Zhongyou, the prefect of the prefecture.
If she nodded, it would be over.
She did not nod.
According to a Song notebook, this is what she said. She was a woman of the music register, she said, and even if she had been involved with the prefect, the offence would not carry a death sentence. But whether a thing is true or false cannot be decided by careless words that smear an official. Even if she died, she would not accuse him falsely.
They sent other men to question her. She said the same thing.
Later she was moved to Shaoxing, and over two months she was beaten repeatedly with the rod. She nearly did not survive it.
The case was talked about all over the Southern Song. It is still being talked about.
A Name in the Music Camp
Yan Rui, courtesy name Youfang, came from Taizhou. Her family name was Zhou. Yan Rui was her professional name.
Her position was that of a camp courtesan.
The term needs explaining. Every prefecture in Song China kept a music camp, and the camp kept a register of women. Their work was to sing, dance and pour wine at official banquets. They had a household registration of their own, held by the government, and they could not simply walk away from it.
This was not a profession in any modern sense. It was part of the machinery. When an official arrived, when he was transferred, when there was a festival or a banquet, the music camp was expected to appear. These women were standard equipment at official occasions.
You can picture the scene. Tables set in the rear hall of the prefectural office, lamps lit, the women of the camp coming in with lutes and clappers and sitting at the end of the room. After the third round of wine someone asked for a tune, someone asked for a new lyric. They sang, the officials listened, and poems were written on paper and passed around the table.
Most of what the Song notebooks record as an evening at a certain official table with a certain singer is this.
Yan Rui was the first name in that camp.
Zhou Mi, writing a century later, says she was skilled at the zither, at chess, at singing and dancing, at string and wind instruments, at calligraphy and at painting, and that her beauty and her art were the finest of her day. He adds that she sometimes wrote lyrics and that her lines were new, and that she understood the old histories.
A woman in a music camp who could write, paint and quote the classics was not rare in a Song prefecture. Being the best of her generation was rare.
There was one more thing about the register. It could be left. A woman could be removed from it, either at a certain age or when someone paid, and after that she was an ordinary subject. Among the charges later brought against Tang Zhongyou was that he had taken Yan Rui off the register, and had done it by falsely declaring her old.
That charge sounds small. It shows something large. In that system, the registration of a woman could only be changed with the signature of a prefect. Her life was in the hands of someone else.
Six Memorials
In 1182 Zhu Xi was fifty three.
His post was commissioner for the Changping granaries and for the tea and salt monopoly in the eastern circuit of Liangzhe. The granaries were the state reserve used to stabilise grain prices in bad years. The monopoly was a major source of revenue. A commissioner also had the right to investigate officials in his circuit.
In the seventh month he reached Taizhou on his tour of inspection.
The prefect of Taizhou was Tang Zhongyou.
Zhu Xi began sending memorials almost at once. Six of them, one after another, attacking Tang. The charges were not confined to one matter: he had pressed tax collection so hard that people died, he had diverted public funds, he had printed books illegally, he had released prisoners improperly. And among the charges there was one about a woman of the music camp in his own jurisdiction.
Yan Rui appears in a short passage of those six documents.
This was not a story about an upright official and a famous singer. It was a fight between two men in the same government. Each had patrons. Each had accounts to settle.
Take Tang first. He came from Wuzhou and was a fellow townsman of Wang Huai, the chief minister, which gave him a route to the top. He had also done real work in Taizhou: he had repaired water works and founded schools. But the charges in those six memorials were serious.
Now Zhu Xi. He had come on this tour because of flooding and tax problems in the Taizhou area. Once his investigation reached the prefect himself, there was no way for him to stop.
It is worth saying what kind of official Zhu Xi was, because the legend turns him into a villain and that is not useful either. He spent his career in local government, setting up granaries for poor harvests, founding academies, and auditing the officials under him. He was stiff, pedantic and unpopular with his colleagues. He was also, by the standards of his time, honest about money.
And Tang was not merely a victim. One of the charges against him concerned printing. He had used public funds to cut and print fine editions of classical works in Taizhou. Those books were real and good. They were also paid for out of the prefectural treasury, which is why they ended up in the indictment.
The memorials went up. Wang Huai dealt with them by sending the mildest of the six to the throne and describing the whole affair as two scholars quarrelling over nothing.
According to Zhou Mi, that single sentence changed the nature of the case.
The outcome was a draw. Tang Zhongyou was removed from office. Zhu Xi was transferred to a judicial post in Jiangxi and never took it up. Both men left Taizhou.
Yan Rui was pulled in because the simplest way to prove the charge about the music camp was to make the woman say it herself.
So she was arrested.
Two Months
She was held in Taizhou for more than a month.
Zhou Mi says the interrogators kept coaxing her. If she admitted the relationship with the prefect, the penalty would be light. She refused.
Then she was moved to Shaoxing and questioned again. Over two months she was beaten repeatedly.
Corporal punishment in the Song was a real instrument, not a stage prop. For a woman to be beaten again and again over two months and survive was luck.
She never changed her statement.
One thing should be said plainly. She did not hold out because she was innocent.
She said exactly what her reason was. Even if there had been a relationship, the law would not have killed her for it. But true and false cannot be invented, and a false sentence cannot be used to ruin an official.
What she was defending was not chastity. It was the rule that a witness does not lie.
A woman on the music register, under torture, holding to a principle that belonged to the class of men who governed her. That is why the story lasted eight hundred years.

A Poem She Did Not Write
The story acquired a poem.
The tune is called Bu Suan Zi. It says that she did not love the dust of the world, that she was pushed into it by an earlier life, that flowers open and fall in their own season and that all of it depends on the lord of spring. It says that leaving will happen in the end and that staying is impossible anyway, and that if she could put mountain flowers in her hair, nobody should ask where she went.
In the best known version of the story, Yue Lin, a son of the general Yue Fei, arrived as the new judicial commissioner, reviewed the case, saw how ill she was, and asked her to compose a lyric explaining herself. She produced this one on the spot. He heard it and ordered her released.
It is a beautiful version. It has one problem.
The fourth memorial of Zhu Xi says something quite specific. At a banquet on the sixteenth day of the fifth month, a relative of Tang Zhongyou named Gao Xuanjiao composed a song to this tune. Its second half asked how a woman goes and how she stays, and said that once the mountain flowers fill her hair, nobody need ask where she is.
According to that document, written while the case was open, the words were Gao Xuanjiao and Yan Rui was the singer.
The earliest and hardest evidence points to a poem that was not hers.
Why did it end up under her name? The reason is not difficult.
There is a wider point here about how any writing by such women reached us. Almost none of it came down in their own hand. It survived because an official copied it into a notebook, or because a printer judged that a book of it would sell. A woman could be the finest singer of her generation and still leave no archive except the one other people built around her.
Lyrics in the Song were sung. A song has an author, a singer and an occasion, and these are three different things. Once a tune left the banquet table, people remembered the person who sang it best.
And the content fits her situation too neatly. A woman of the register saying that she never loved that life and was pushed into it by fate. A woman saying that if she could put wild flowers in her hair and walk out, nobody need ask where she went.
Lines like that, attached to a story like that, will always feel autobiographical.
Feeling is not evidence.
Then the details accumulate, layer by layer.
Hong Mai, writing a generation later, has the beating in prison, and has Yue Lin ordering her to compose a lyric and releasing her at once. Zhou Mi, writing later still, adds a lyric on red and white peach blossom, a lyric for the seventh night, and the exchange with the jailer in which she says that she will not lie even if she dies.
The later the source, the more complete the story. That is how notebook literature grows.
One detail does not fit at all. A local record of officials in the eastern circuit lists the judicial commissioners of those years, and for the period in question the names are Fu Qi and Zhang Zhao. Yue Lin is not among them.
Wang Guowei, in his remarks on lyric poetry, used this case as an example when he wrote that Song fiction is mostly not to be trusted. The modern scholar Shu Jingnan also concluded that the poem is not hers.
So two things can be said today.
The beating and her refusal are in the Song notebooks, and the official papers of the case confirm that she was caught up in it.
The poem, in all likelihood, was written by a man at a banquet and remembered because a woman sang it well.
What the Stage Made of Her
In the Ming dynasty the story was turned into fiction by Ling Mengchu, in a collection of vernacular tales. In his version the characters are arranged in three positions. Yan Rui is a heroine. Tang Zhongyou is a romantic prefect. Zhu Xi is a narrow minded hypocrite.
That version travelled furthest. Most later plays, television dramas and local tellings come from it.
It is a long way from the record.
The real situation was messier. Zhu Xi attacked Tang Zhongyou mainly over tax collection, public money and illegal printing, not over jealousy. Tang was not a romantic figure. He was a prefect with patrons, with real achievements and with real problems. And Yan Rui was not a heroine. She was a woman on a government register who was caught between two officials and then put in a cell.
What became of her afterwards, the histories do not say.
Zhou Mi says she later became the concubine of a member of the imperial clan. That is one notebook, with nothing to support it.
The old prefectural city of Taizhou is still standing. The wall, the old street, the lake and the pagodas on Jin Hill are all there, and the city is on the national list of historic places.
The wall was first built in the Eastern Jin, faced with brick under the Northern Song and repaired in the Ming and Qing. It ran six thousand two hundred and eighty metres, of which four thousand seven hundred and thirty remain. Eight two storey bastions stand on it, built in the 1550s by the general Qi Jiguang and the prefect Tan Lun.
Where Yan Rui was held, nobody knows.
What she looked like, nobody knows either.