Autumn of the ninth year of Xiantong, in the capital.
A Daoist nun of about twenty four was taken to the execution ground.
The charge was that she had beaten her own maid to death.
There was a crowd. People in the capital liked executions, and they liked them more when the person was known. Her name had been read out at poetry gatherings, repeated at banquets, discussed at the gatehouse of a temple.
Someone in the crowd was reciting her lines under his breath. A thing without price is easy to find. A heart that is true is hard.
Those two lines were already famous. A woman had written that precious objects could be bought and a true heart could not.
By the time she died, the lines no longer belonged to her.
A death sentence in Tang China went through several hands. The ministry of justice reviewed it, the two chancelleries looked at it again, and before the execution the emperor had to confirm it. Then it waited for autumn. The execution ground had a season.
For a nun to reach that ground meant that nobody had stopped it.
The crowd at an autumn execution in the capital was not a mob. There were clerks, students preparing for examinations, monks, servants, and the simply curious. They came for the spectacle and stayed for the gossip, and the gossip that year was about a woman who wrote better than most of the men who read her.
A Girl at the Edge of the City
The record of her is thin, thin enough that even her name is disputed.
One late Tang collection gives her courtesy name as Youwei, a Song collection gives Huilan. Her personal name was probably Yu Youwei. After she took vows her religious name was Xuanji, and that is what later ages call her.
The Yuan dynasty collection of Tang poets disposes of her origins in six characters: a girl from the entertainment quarter of the capital.
Not a daughter of officials. That single fact shaped every position she would later occupy.
She was born in the countryside south of the capital, in the district of Hu and Du, where the Fan river runs and where wealthy men kept villas and the poor worked their fields. Her father died early and the family declined.
She read from childhood, wrote verse, and was quick. Tang sources call her precocious and say that she could recite and compose at an age when most children are learning characters.
At about ten she met Wen Tingyun.
Wen was then in his forties, said to be ugly, and famous across the empire; his lyrics were better than his poems. He heard about the girl, went to see her, and asked her to compose on the spot.
She wrote a poem about a seller of faded peonies.
Wen took her as a student.
He was an odd patron for a girl from the edge of the city. He had failed the highest examination repeatedly, had offended powerful men with his arrogance, and would end his career in a minor teaching post. He was also, by common agreement, the best writer of lyric in his generation.
He was the kind of man who could open a door for her and could not keep it open.
They exchanged poems for years afterwards. What passed between them beyond that has been guessed at by later writers; the reliable material stops at teacher and friend. The Tang anecdotes offer nothing else.
The Concubine
In the early Xiantong years, when she was fifteen or sixteen, she was taken into the household of Li Yi as a concubine.
Li Yi was an official, a graduate of the examination that year. She was a woman with no family standing. A concubine ranked above a maid and far below a wife, and her children did not count as legitimate.
Li Yi was fond of her. Her poems from those years show it: poems about waiting, poems sent after someone, poems to a person who was not there.
The household she entered was a graded world. A wife managed the house and its rituals. A concubine had a rank, a room, and no authority. A maid had nothing but her labour, and could be bought and sold. The law treated the three differently, and the difference between the second and the third was smaller than either would have liked.
The trouble was the wife.
The Tang poets collection says that the wife of Li Yi was jealous and could not tolerate her. So Li Yi sent her to the Xianyi temple.
Sending a woman into a Daoist temple was a respectable solution in that society. A husband could not divorce a wife, and could not decently throw a concubine into the street. Making her a nun settled the status and removed her from the house.
She entered the Xianyi temple and took the name Xuanji.
The change was not only a change of name. The first name had been given by her father. The religious name she took for herself.
The Xianyi Temple
Daoist nuns were a peculiar group in Tang society.
Several princesses of the imperial house took vows. Two daughters of Emperor Xuanzong became nuns and each had a temple of her own. What the court does, the city copies, and the temples of the capital became strange places: half religious house, half social club for aristocratic women.
A woman who entered a temple stepped out of the categories of daughter and wife for a while. She could have a name of her own, take disciples, hold property, correspond with whom she liked. That kind of space was rare before and after.
The temple stood inside the walls of the capital. Tang cities were grids of walled wards, each with a gate that was shut at dusk, and the great houses, markets and temples each sat inside their own square. A woman who lived in a temple in one ward and was known in the wine shops of another had a map of the city in her head, and had permission to use it.
At the Xianyi temple the daily work was copying scripture, performing rites, receiving donors. She did that, and she did other things: she received men of letters, exchanged poems, and travelled. Jiangling, Hanyang, Wuchang, Jiujiang, all these places appear in her verse.

A nun travelling was not scandalous. A nun whose poems circulated among scholars was another matter.
Her surviving work is not all longing. There are poems about rivers and mountains, about the road, about temples and rain, and about the ordinary business of a woman keeping house alone. She wrote well in several registers, which is why anthologies kept her.
One oddity. Her poems address a number of named men, and in the collected works of those men there is almost nothing addressed to her.
Poets of the day exchanged verse with nuns all the time. At her name the trail stops. Scholars have guessed that after the case, editors removed the other half of the correspondence.
If so, the fifty poems that survive are one voice with no answering voice.
A Song dynasty collection later summed her up in a line: she gave herself free rein, and was no better than a prostitute.
That is a comment written a hundred years after the fact by a man of a different century. The same behaviour in a male poet would probably have been recorded as gallantry. It is worth reading that sentence together with the date of the man who wrote it.
Green Feather
In the ninth year of Xiantong she beat her maid to death.
The maid was called Lu Qiao, Green Feather.
Every detail of the affair comes from one source: a late Tang collection of tales by Huangfu Mei. It is written as a story, and it is detailed. She went out one day and came back to hear that a guest had called and left. The maid said the guest had not waited. She suspected the maid of something with that guest. That night she shut the doors and beat her with a whip for a long time, and the girl died. She buried the body in the courtyard. Later it was discovered, and the case went to the prefect of the capital.
The prefect of the capital, Wen Zhang, was a man with a reputation for harshness. The post itself was difficult: the governor of the capital dealt with imperial relatives, eunuchs and guards, and needed nerve. Wen Zhang had nerve, and a name for cruelty.
He sentenced her to death.
The dead girl was, in law, property. Tang law classed private slaves with goods; a master who killed one without cause was punished, but the punishment was calibrated to a loss of value, not to a life.
Here an account has to be settled.
Tang law had a rule for a master who killed a maid. If the maid had committed an offence and the master killed her without reporting it, a hundred strokes. If she had committed no offence, one year of penal servitude.
By that rule, the worst outcome was a year.
She was sentenced to death.
The story explains it by saying the concealment of the body made the case grave. That is plausible. Other explanations are also possible. She was a nun, and nuns carried a certain suspicion in that society. Her name was large enough that the case became a public topic. The man judging her was a hard man.
The statute is fixed. The judge is not.
Wen Zhang himself did not end well. He was later posted to a military command in the east, lost control of his own troops, and died by his own hand. That has nothing to do with her case except in the way such things always connect: the same hardness that made him useful to the court made him dangerous to be judged by.
There are points in the story that will not sit still.
First, the maid was dead. Whatever she said before she died was known only to the woman who was beating her, and that woman also died. Who heard the conversation.
Second, this is a tale, not a record. Huangfu Mei wrote it the way fiction is written: the dialogue balanced, the plot closed, the motives clear. It reads well. It is not testimony.
Third, the age of the maid. A girl of thirteen or so, in the story, speaks in complete and principled sentences that do not sound like a child.
Since the twentieth century some scholars have argued that the story carries marks of invention. Others accept it broadly and assume that the details were shaped by literary convention. A middle position is possible: the event may be real and the telling may be a story, and from this distance the two cannot be separated.
The official histories have nothing. Neither of the Tang histories gives her a line.
So her life can only be told in two layers: the poems she wrote, and the story others wrote about her. The middle layer, the person, was never recorded.
The Yuan collection closes the case in a few characters: put to death by Wen Zhang, prefect of the capital.
Afterwards
The poems outlived her.
Tang anthologies took her work, Song printers issued her collection, Ming and Qing editors reissued it. In the Qing dynasty the character in her religious name collided with the personal name of the Kangxi emperor, so some old editions print her as Yu Yuanji.
The Southern Song edition, printed by a bookshop in the capital of the southern court, survived. The Qing bibliophile Huang Pilie acquired it and was so pleased that he named his library after the hundred Song editions he owned. His colophons are written on the book.
It is now in the National Library of China.
In 1984 a Hong Kong film turned her life into an erotic picture. The woman in that film has little to do with the woman in the sources; the film wanted something else.
Adaptations come every generation. Each one pushes the person who wrote those two lines further back, until what is left is a label.
In the twentieth century she became a subject of scholarship on women writers. People study the poems, and the case, and the rules that produced the case.
The great Qing anthology of Tang verse prints her in a single scroll, fifty poems, in the section reserved for women.
Fifty poems, eleven hundred years, one woman voice.
While she lived, the capital treated her as a topic: whose daughter, married to whom, why she took vows, why she killed.
After she died the topics dispersed. What remained was the fifty poems, and two lines that most Chinese readers still know by heart.
She was not yet twenty five.