Similar Items: Modules over monads and operational semantics (expanded version)