ref – https://www.grammar-monster.com/glossary/misplaced_modifier.htm
A misplaced modifier is a word (or group of words) that does not link clearly to what it is intended to modify. A misplaced modifier makes the meaning of a sentence ambiguous or wrong.
Misplaced Modifier (default)
Coax the monkey with a banana.
Are we trying to coax the money holding the banana?
Or are we trying to coax the money by using a banana?
Correction: Let’s use a banana to coax the monkey.
We will not sell paraffin to anyone in glass bottles. (X)
(Often, common sense tells us what the writer meant. Clearly, this is about paraffin in glass bottles not people in glass bottles. However, placing your modifier too far away from the thing being modified will do little to showcase your writing skills.)
Correction: We will not sell paraffin in glass bottles to anyone.
Andrew said after the holiday he intends to stop drinking. (X)
(Here, it is unclear whether Andrew made this statement after the holiday or whether he intends to stop drinking after the holiday.)
Correction: After the holiday, Andrew said that he intends to stop drinking. √
Or
Andrew claims that he will stop smoking after the holidays.
Meticulous and punctual, her work ethic is admirable. (X)
(Here, the modifier does not apply to anything in the sentence.)
Talking quickly annoys people. (X)
Does talking annoy people?
Or fast talking annoy people?
Let’s go with fast talking annoys people:
Talking quickly is a sure way to annoy people. √