DETROIT (AP) — A judge has ruled in favor of a Detroit-area university and dismissed a lawsuit by a 57-year-old student who was suspended after writing about his sexual attraction to a teacher.

Federal Judge Patrick Duggan says those words may be appropriate in a karaoke bar, but they don’t need to be tolerated by Oakland University. He says there’s no violation of Joseph Corlett’s free speech rights.

Corlett was suspended in 2012 after writing about his writing instructor, Pamela Mitzelfeld. He compared her to the sexy starlet Ginger from the TV series, “Gilligan’s Island.” He described Mitzelfeld as “tall, blonde, stacked,” among other things.

Corlett titled his essay “Hot for Teacher,” the name of a Van Halen song. He lives in Sarasota, Fla. Messages seeking comment were left with his lawyers Tuesday.