Castigate means to criticize or reprimand someone severely and harshly - essentially to chastise. It's a strong word indicating formal punishment or severe verbal disciplining. 'To help' and 'to encourage' are opposites of its meaning, while 'generous' is unrelated.