'such' is usually an adjective, meaning approximately 'of the same kind as ...'.
'Who ever saw such people' ('who ever saw people of this kind'). 'Was there ever such a big tree?' (Was there ever a tree which had the kind of bigness that this tree has).
Personification
Figure of speech
adjective
THEY HAVE BOTH
simile
Onomatopoeia
Figure of speech is the use of word or phrase to interpret a certain idea. The second figure of speech means, continuing the same sentence or making a comparison with the idea in the previous sentence.
it is a figure of speech like talking to someone
personification
Onomatopoeia
"Dog" is not a figure of speech; it is a common noun referring to a domesticated mammal of the Canidae family.
A figure of speech