Metonymy

Metonymy (/mɪˈtɒnɪmi, mɛ-/) is a figure of speech in which a concept is referred to by the name of something associated with that thing or concept. For example, the word "suit" may refer to a person from groups commonly wearing business attire, such as salespeople or attorneys.