Correcting dangling modifiers


1- Walking to school, the rain drenched my clothes.
2- After reading the book, the movie was disappointing.
Thank you :)

Hello! This is a great question.
A dangling modifier is a word or phrase that seems to modify the incorrect word or phrase, because the intended word or phrase is missing from the sentence.
In the examples that you gave, the impression is given that the rain was walking to school, and that the movie was reading the book.
Ways to fix these sentences is by rearranging the word order, or else adding the missing words or phrases. Here is an example of how you can fix the sentences you gave:
1. While I was walking to school, the rain drenched my clothes.
2. The movie was disappointing, having watched it after reading the book.
I hope that this explanation helps you!