didacticism

noun
  1. The quality or practice of being didactic; instruction or teaching that is excessively moralistic or pedantic.
  2. Usage: Often used critically to describe art, literature, or speech that prioritizes moral instruction over entertainment or artistic merit.

Examples