The plot is loosely based on a short story about Nie Xiaoqian from Qing dynasty writer Pu Songling's Strange Stories from a Chinese Studio and is also inspired by the 1960 Shaw Brothers Studio film The Enchanting Shadow.
Head entity: Strange Stories from a Chinese Studio
Tail entity: A Chinese Ghost Story
Relation (head \u2192 tail): based on
Inverse relation (tail \u2192 head): derivative work