When metaphor and metonymy ascribe personality to things inanimate, they become personification. For example:

The storm rages.

The ship has found herself.

Must I thus leave thee, Paradise ?