Enhancing Elementary Students' Writing Habits with Generative AI: A Study of Handwritten Diary and AI Companions