Behavior of Tom Riddle's Diary in Harry Potter (Chapters 9–12)
You are referring to Tom Riddle's Diary (a Horcrux) from Harry Potter and the Chamber of Secrets, not Philosopher's Stone.
- Chapters 9–12 of Chamber of Secrets: Harry finds the diary but does not leave it open during these chapters.
- Chapter 13 ("The Very Secret Diary"): Harry writes in it; the ink vanishes and **Tom Riddle's handwriting replies**. The diary *responds conversationally*, drawing Harry in, showing him a memory of 1943.
This "behavior"—sentient, manipulative responses—reveals it contains a fragment of Voldemort's soul (a Horcrux) that feeds on the writer's fears and secrets.