Washington (CNN) Neomi Rao, President Donald Trump's nominee for Supreme Court Justice Brett Kavanaugh's now-vacant seat on a powerful appellate court in Washington, apologized Monday for commentary she wrote decades ago as a Yale University student suggesting women should change their behavior to avoid date rape.

"Sexual assault in all forms, including date rape, is abhorrent. Responsibility for the rape is with the rapist. I believed that as a college student and continue to believe that today," she wrote in a letter to the Senate Judiciary Committee. "As a society, we should create an environment where survivors feel empowered and comfortable coming forward. I am sorry for anything in my college writings to the contrary."

Last week, Rao faced fierce questioning from members of the committee during her confirmation hearing for the writings from her college years, which included a piece she wrote in 1994 for the Yale Herald titled "Shades of Gray." In the piece, she responded to an alleged date rape incident on campus by writing: "It has always seemed self-evident to me that even if I drank a lot, I would still be responsible for my actions."

She added: "A man who rapes a drunk girl should be prosecuted. At the same time, a good way to avoid a potential date rape is to stay reasonably sober."

Responding to questions from members of the committee during the hearing, Rao emphasized that rape is a crime and no one should "blame the victim," and that she hoped she has "matured" as a writer and a person.

Read More