Bob will be not punished.
A student who loves shrieking will be punished. If a person swears, then he is a student. If someone is a teacher, then Bob will talk to him. All gentlemen are in a suit. All teachers are men. There is a teacher. If someone is not a gentlemen, then he is not nice. Willy is nice. Bob loves shrieking and swearing.
∀x (Student(x) ∧ Shriek(x) → Punished(x)) ∀x (Swear(x) → Student(x)) ∀x (Teacher(x) → Talk(bob, x)) ∀x (Gentleman(x) → Suit(x)) ∀x (Teacher(x) → Man(x)) ∃x (Teacher(x)) ∀x (¬Gentleman(x) → ¬Nice(x)) Nice(willy) Shriek(bob) ∧ Swear(bob)