Veronica Cartwright (Rosalie) said in an interview that she and the other children were told not to hang around with Shirley MacLaine on set because she "cursed a lot". They all did, however, because they thought she was "cool" and "very generous". She also became Cartwright's mentor throughout the making of the film.
William Wyler cut several scenes hinting at Martha's homosexuality for fear of not receiving the seal of approval from the Motion Picture Production Code. At the time, any story about homosexuality was forbidden by the production code.
The original stage-play was partly inspired by an actual case in Edinburgh, Scotland in 1810. A pupil named Jane Cumming accused her schoolmistresses, Jane Pirie and Marianne Woods, of having an affair. Dame Cumming Gordon, the accuser's influential grandmother, advised her friends to remove their daughters from the boarding school. Within days the school was deserted and the two women had lost their livelihood. Pirie and Woods sued and eventually won, both in court and on appeal, but given the damage done to their lives, their victory was considered hollow.
The start of the movie implies that Mary gets the idea to "accuse" Karen and Martha of lesbianism from a forbidden book that gets passed around secretly among the school's students. Although this book is not identified by title in the movie, Lillian Hellman's play specifies that the book is Mademoiselle de Maupin, by Théophile Gautier, a French novel published in 1835. The novel concerns a woman who disguises herself as a man and has both a woman and a man fall in love with her, so it did contain at least the concept of lesbianism and, therefore, answers the question of how Mary could have conceived of the charge she levels against Martha and Karen without ever actually seeing them engage in any romantic or sexual activity.
Screenwriter John Michael Hayes was so faithful to Lillian Hellman's play that much of the dialogue is identical to the dialogue in These Three (1936), the 1936 film version of The Children's Hour, for which Hellman herself wrote the adaptation and screenplay. Hellman did the earlier adaptation despite the fact that the earlier movie was a watered-down, censored version of The Children's Hour, in which the young girl's lie is about a heterosexual affair, not a homosexual one. In all fairness, the 1930s movie never would have been made if it had retained the entire plot from the Broadway play. (There is a story, possibly apocryphal, about Louis B. Mayer's buying the rights to the stage play in the 1930s. When he was advised that it would be impossible to make the film since the story was about lesbians, he supposedly said, "That's okay, we'll make them Mexicans.")