In the last years of the Eastern Han, in the city of Ye, someone left an anonymous letter accusing the chancellor of the realm of every kind of misconduct.
The chancellor was Cao Cao. Ye was his capital in all but name: his residence, his military workshops, his land settlement offices. A letter insulting him inside his own city was not an insult he could leave alone. The History of the Three Kingdoms records his reaction in four characters: the Grand Progenitor hated it. And then three more: he wanted to know who wrote it.
The case went to the man in charge of Wei commandery, a scholar named Guo Yuan, whose seat of government was that same city.
Guo Yuan did not collect handwriting samples from the population. He did not search houses. He kept the letter, told nobody what it said, and began looking for something else entirely.
He began looking for a man who could read a particular poem.
What makes this case worth telling is not the ending. It is the method. It is perhaps the earliest recorded investigation in China built on textual identification: the writer had left a fingerprint on the paper, and the fingerprint was not his handwriting but his reading.
In a world where literacy was thin and books were copied by hand, an obscure Han rhapsody was as good as a fingerprint. Guo Yuan worked out how to filter a whole commandery down to the few men who could produce it, and then how to make one of them write again.
The technique has a modern name. It is called forensic stylometry, and it is used today on ransom notes, suicide letters and disputed wills.

The office, and the man in it
Some background first, or the whole thing looks like magic.
The History of the Three Kingdoms, in the chapter on Guo Yuan, says he was a native of Gai county in Le’an, and that as a young man he studied under Zheng Xuan. This matters more than it seems. Zheng Xuan was the greatest classical scholar of the late Han, the man whose commentaries on the Book of Changes, the Book of Documents, the Mao poems and the three ritual canons became standard for centuries. Guo Yuan was his student. That single fact explains why the method described below occurred to him and not to a soldier.
Cao Cao summoned him into service, and later put him in charge of the military farming colonies. Guo Yuan kept submitting proposals to cut this and add that, surveyed land, settled displaced families, counted households, appointed clerks and set up systems of assessment. Five years later the granaries were full and the farmers were, in the language of the text, competing with one another to work hard.
Later, when Cao Cao went west to fight in Guanzhong, Guo Yuan was left as chief administrator of the home base. Tian Yin and Su Bo rebelled in Hejian. Once they were defeated, the survivors of their band were liable to execution under the law. Guo Yuan argued that these men were not the ringleaders and asked that the death sentences not be carried out. Cao Cao agreed, and more than a thousand people lived because of it.
There is a second detail in the same passage, and it is the one that tells you what kind of official this was. Reports of victory in that period were routinely inflated tenfold: one enemy killed was written up as ten. When Guo Yuan submitted his count of heads, he gave the true number.
Cao Cao asked him why.
Guo Yuan said that when you campaign against foreign enemies, inflating the count is a way of displaying military glory to the population. But Hejian is inside our own borders. The people there rebelled. Winning carries merit, and I am privately ashamed of it.
Cao Cao was pleased, and promoted him to governor of Wei commandery.
So: a man who refuses to inflate a body count, and who explains why in front of the chancellor. That is the temperament that later refused to arrest the first plausible suspect in a letter case.
No date is given for the appointment. It can only be placed somewhere in the Jian’an era, after 204, when Cao Cao took Ye and made it the centre of his power. Wei commandery had its seat at Ye, which is why Guo Yuan, in the passage that follows, refers to the place as the capital region.
One letter, one book
Wei was a large commandery and a capital district. People came and went. There were scholars, clerks, soldiers, merchants, refugees. An anonymous letter dropped into a city like that should have been untraceable, and everyone involved knew it.
Guo Yuan did two things first.
He kept the original. The text says he asked to retain the letter itself and did not publicise it. This is not a small point. The moment the contents became known, the writer would know he was being hunted, would stop, and would hide whatever was in his house that could connect him to the text.
Then he read the letter for what it quoted.
The letter, the history says, drew heavily on the Rhapsody on the Two Capitals.
That work was written by Zhang Heng in the Eastern Han: two long poems, one on Chang’an and one on Luoyang, describing their topography, palaces, markets, festivals and entertainments. It is enormous. It is dense with allusion. It survives because it was included in the great anthology of later centuries, and it was certainly not a school text.
The History of the Later Han says of its composition that Zhang Heng drafted it in imitation of Ban Gu’s poem on the two capitals, and that he polished and assembled it over ten years before it was finished.
Ten years for one poem. When it was done, few people copied it, because it was too long and too crowded to copy casually. In a manuscript culture, a copy of the Rhapsody on the Two Capitals was a valuable object. The men who could read it were, as a rule, men who owned books and had teachers.
A letter that quotes it in several places was not written by someone who had skimmed it. It was written by someone who knew it.
That was the fingerprint.
Three students, sent out to learn
Guo Yuan called in the commandery officer in charge of personnel and gave him an instruction. The wording is worth keeping, because the whole case turns on it.
This commandery is large, he said, and it sits at the capital, and yet there are few men of learning here. Select some bright young men who understand things quickly. I intend to send them to study with a teacher.
The officer chose three. Before they left, Guo Yuan met them and set their assignment.
What you have studied so far is not enough, he told them. The Rhapsody on the Two Capitals is a compendious work. The world has neglected it, and there are few who can teach it. Go and find someone who can read it, and study under him.
Then, the history adds, he privately told them what he actually wanted.
The three left. Within ten days they had found a man who could read the Rhapsody, and they became his students.
The step worked because it fitted perfectly with how study worked at the time. A student served a master: copying texts, collating chapters, recording answers to questions. A teacher asked his students to write. So the request that came next was not strange at all. It was the sort of thing a good student would ask.
After some lessons, the three students asked their new teacher to prepare some commentary on the poem, glossing the allusions, the names of things, the readings of difficult characters.
The teacher wrote it out.
They brought the commentary back. Guo Yuan put the writing beside the anonymous letter and compared them.
The hands matched.
The man was arrested and questioned, and, in the compressed phrase of the history, the whole matter came out.
Where the cleverness actually sits
Take it apart and there are three layers. Remove any one and the case collapses.
The first is the filter. Many people in Wei commandery could write. Very few could read the Rhapsody on the Two Capitals. Using an obscure book as a sieve cut the field from everyone to a handful.
The second is the approach. He did not go looking for the man who could read the poem. He sent three students to become his pupils. A young man arriving at a door to ask about an unfashionable text is entirely normal, and nobody guards against it. What Guo Yuan wanted was not a confession. It was the man’s hand, moving across paper.
The third is the sample. Commentary requires writing, and it requires writing a great deal. Once there is writing, there is material to compare. Once there is material to compare, there is a case.
The order cannot be reversed. Arrest first, and the man says nothing, or writes differently, and the investigation stalls. Guo Yuan arranged for the suspect to produce a sample while still believing that no one suspected him.
Modern investigators call the general principle evidence design. Two thousand years ago there was no such term. The practice was the same.
The gaps, which the history does not fill
The source gives the method in a few dozen characters and leaves everything else blank. At least three problems sit in that blank.
First, the whole scheme assumes the writer lived in that city and was the kind of scholar who would seek a teacher for an obscure text. If the man already owned a copy, or was himself the person who taught the poem, he would never have gone looking for instruction, and the net would have caught nothing. Guo Yuan was betting that being able to read the poem and owning it were not the same thing. Before printing, that was a reasonable bet. It was still a bet.
Second, the phrase within ten days tells us the work was genuinely rare there. It also tells us that the three students found one reader, not the only reader. What if there had been a second? The history is silent.
Third, the evidence that closed the case was the matching of hands. The rhapsody only narrowed the field. What tied the man to the letter was handwriting. This is the part later readers forget, because the memorable image is the book used as a trap. The decisive act was the dullest one available: putting two pieces of writing side by side.
As for what happened to the writer, the History of the Three Kingdoms does not say. It records only that the matter came out and that the circumstances were fully established.
There is a legal background worth adding here. Slander was a punishable offence in Han law, and not a light one. In the second year of Emperor Wen, in 178 BC, an edict abolished what the histories call the crime of slanderous and monstrous words, on the reasoning that such a law made officials afraid to speak plainly and left the throne without any means of hearing about its own mistakes. The abolition did not last in practice. Cases brought under the headings of monstrous words and slander appear in the records of the Eastern Han. Cao Cao’s irritation at this letter was therefore not only a matter of pride. There was law to invoke.
The man who wrote the case down
Guo Yuan later became Grand Coachman, one of the nine senior ministers of the realm.
The history gives his final portrait in eight characters: cloth garments, vegetable food, salary and gifts distributed among old friends and clan, keeping himself by modesty and thrift. He died in office.
A man who lives like that investigates like this. He does not go for speed. He goes for the thing that matches. First, see what makes this letter different from other letters. Then arrange for the writer to write again. Then compare.
There is no magic in it. There is only one scholar’s knowledge of other scholars: in that era, what a man read sorted him into a particular group of men.
Why the method worked then and not now
Readers who come to Chinese detective tradition through the Judge Dee novels of Robert van Gulik, or through the great forensic manual of Song Ci written in 1247, tend to expect a magistrate with a corpse, a wound and a clever reconstruction. This case has none of those things. There is no body, no weapon, no scene. There is a sheet of paper and a reading list.
That is what makes it useful. The tradition that van Gulik popularised is largely a tradition of physical evidence and interrogation. Guo Yuan’s case belongs to a narrower and older line: the investigation of documents. Chinese bureaucracy ran on paper for two thousand years, and the skills that grew around paper, comparing hands, spotting a forged seal, noticing that a copied text has been altered, were professional skills long before they were forensic ones.
The premise that made the trick work has vanished. Books are cheap now. Anyone can read the Rhapsody on the Two Capitals tonight, and anyone can quote it. What survives is the principle, and it survives in a different form. Investigators no longer ask who has read this book. They ask who wrote this sentence, and they answer it by counting the small unconscious habits that a writer cannot hide: the words he reaches for, the way he joins his clauses, the length of his sentences when he is tired.
Eighteen centuries apart, the same observation holds. A person writing cannot entirely conceal what he has read, or how he writes.
Guo Yuan simply lived in a century where that was easier to prove.