The literary device presented in Ophelia's song is "<em>simile</em>".
Simile is a figure of speech that compares to things with no necessity of a huge explanation. This happens when you compare two things.
In Shakespeare's masterpiece, Ophelia's song was considered to be very revealing because at that time, the way she spoke or what she said throughout the song was socially unacceptable due to the fact that she was an unmarried women and talking so openly was an issue.
I was happy to unburthen the heavy load of groceries from my hands.
i expounded my opinion on the matter.
the fashion style baroque is very ornate.
i conducted rigorous research on the civil war
he had a hard time understanding which made him nervous about his inscrutability
she swooned after she saw the blood
i was stupefied at the scene
some dogs have docility some dont
she had a very sagacious look on her face
she tinctured the box