the willow pattern is a "gong'an" detective novel written by robert van gulik and set in imperial china (roughly speaking the tang dynasty). it is a fiction based on the real character of judge dee (ti jen-chieh or di renjie), a magistrate and statesman of the tang court, who lived roughly 630–700.