Personification: the attribution characteristics to something

Personification e.g

The pipe swatted him

The pipe tolded him

The pipe crumpled the man’s ribs