Which of the following gives the best definition for metonymy?
A.
It is a figure of speech in which a term for a part of something refers to the whole of something or vice versa.
B.
It is a figure of speech in which the name of one thing is used for that of another of which it is an attribute or with which it is associated.
C.
It is a figure of speech in which one thing is mentioned to stand for another in that there is some similarity between them.
D.
It is a figure of speech in which personal qualities are attributed to nonhuman things or abstract notions.