Parents say they were alerted after school software flagged a document Emma wrote about her funeral plans, according to the lawsuit