An assistant professor at Duke University has stepped down as a graduate studies administrator after telling students to use “English 100% of the time” while on campus or in professional settings, university officials confirmed.

Megan Lee Neely, an assistant professor of biostatistics, resigned from her role as director of graduate studies for biostatistics majors at the Durham-based university after administrators learned of an email sent Friday in which she warned first- and second-year graduate students to only use English or risk “unintended consequences” in the department or elsewhere on campus.

“To international students, PLEASE PLEASE PLEASE keep these unintended consequences in mind when you choose to speak in Chinese in the building,” Neely wrote, according to screenshots of the message. “I have no idea how hard it has been and still is for you to come to the US and have to learn in a non-native language. As such, I have the upmost [sic] respect for what you are doing.”

Neely’s missive continued: “That being said, I encourage you to commit to using English 100% of the time when you are in Hock or any other professional building. Copying the second-year students as a reminder given they are currently applying for jobs.”

Neely said two faculty members had previously approached her and asked to look at photos of students after some were spotted speaking Chinese — “in their words, VERY LOUDLY” — in a student lounge area.

“Both faculty members replied that they wanted to write down the names so they could remember them if the students ever interviewed for an internship or asked to work with them for a master’s project,” Neely’s message continued. “They were disappointed that these students were not taking the opportunity to improve their English and were being so impolite as to have a conversation that not everyone on the floor could understand.”

Mary Klotman, dean of the Duke University School of Medicine, apologized for Neely’s remarks in a subsequent email to students Saturday, saying she recognized that many were “hurt and angered” by her words.

“To be clear: there is absolutely no restriction or limitation on the language you use to converse and communicate with each other,” Klotman said in a statement obtained by The Post. “Your career opportunities and recommendations will not in any way be influenced by the language you use outside the classroom. And your privacy will always be protected.”

Klotman said a “thorough review” of the biostatistics master’s program will now be conducted and noted that Neely had asked to step down as its director of graduate studies, effectively immediately.

“We will always be committed to ensuring that you are welcomed and included in every aspect of university life,” Klotman’s statement continued. “Sadly, this matter demonstrates that we must continue to work on overcoming deep-seated concerns about our cultural awareness and understanding.”

In a separate message sent to students Sunday, the department chair of biostatistics and bioinformatics, professor Elizabeth DeLong, offered a “sincere apology” for Neely’s sentiment.

“We very much value our international students and their contributions to our program and we recognize that the message that was sent Friday was not appropriate,” DeLong’s message read. “Although it was not meant to be hurtful, it came out that way and was clearly in error.”

Neely, meanwhile, also included a personal note in DeLong’s email to students, apologizing directly for her actions.

“I deeply regret the hurt my email has caused,” Neely wrote in the message. “It was not my intention. Moving forward, it is my sincerest wish that every student in the Master of Biostatistics program is successful in all of their endeavors. Please accept our sincerest apologies.”

Keith Lawrence, a Duke spokesman, said university officials are also looking into another message that Neely sent in February 2018 regarding a related topic. That message, an email titled “To Speak or To Not Speak English,” warned students that speaking in their native languages might give faculty members the impression that they’re not trying to improve their English, according to an online petition calling for an independent investigation into Neely.

“As international students, we believe that the ability to speak in our native language creates a much-needed space for obtaining academic, social, and moral support from our peers,” the petition reads. “More importantly, the flexibility of choosing which language we speak is an intimate choice, one that is deeply tied to our own individual values, beliefs, and core identity.”

Neely did not return messages seeking comment Monday.