What type of figurative language is this? “Liberty lies in the hearts of men and women; when it dies there...”

Is "Liberty" a human? Can "Liberty" do things humans can do?

Which type of figurative language falls into this category?
https://literarydevices.net/figurative-language/