The most famous sentence in editing is probably this one: "Walking down the street, the building came into view." It is grammatical in the narrow sense that every word is spelled correctly and every clause has a subject. It is also nonsense, because the sentence says the building was walking.
Errors like this survive every automated check for a simple reason. Grammar software tests words in isolation. Modifier errors live in the relationship between a phrase and the noun it is supposed to describe, and nothing in the sentence is misspelled. Only a reader notices that the building has legs.
What a modifier is supposed to do
A modifier is any word or phrase that adds information to another word. "Red" modifies "door." "Walking down the street" modifies whoever is walking. In a well-built sentence the modifier sits close to its target, and the reader attaches it without thinking.
A participial phrase at the start of a sentence is a promise about the subject. Whatever comes right after the comma is the thing doing the action in the phrase.
Walking down the street, I saw the building come into view.
I is walking. The building is being seen. The promise is kept.
Break the promise and the sentence dangles.
Walking down the street, the building came into view.
Now the building walks. Readers who notice will laugh. Readers who do not will feel a small snag they cannot name, and the snag costs you their attention at exactly the moment you wanted it.
Three repairs that always work
There are only three honest ways to fix a dangling modifier, and one dishonest one that people reach for first.
Name the actor in the main clause. Put the person or thing that performs the action into the subject position right after the comma.
Walking down the street, I saw the building come into view.
Turn the phrase into a clause with its own subject.
As I walked down the street, the building came into view.
Move the phrase so it sits beside the word it describes.
The building came into view as I walked down the street.
The dishonest repair is to bolt a subject onto the phrase without touching the main clause: "Walking down the street, I noticed the building came into view." That one is fine, actually, because the actor is named. The real dishonest repair is the passive dodge: "Walking down the street, the building was seen." It hides the actor and keeps the error.
Misplaced is not the same as dangling
A dangling modifier has no target at all. A misplaced modifier has a target, just the wrong one, because it sits too far from the word it describes.
She served cake to the children on paper plates.
The plates might be under the children, or the cake might be. The phrase "on paper plates" has drifted toward the nearest noun and attached itself to the children. Move it.
She served cake on paper plates to the children.
The classic version of this error is the word "only." Its position changes the meaning of everything around it.
Only she told him the news. She only told him the news. She told only him the news. She told him only the news.
Four sentences, four different facts. If you write "I only need five minutes," a careful reader may ask what else you do with five minutes besides need them. Put the "only" immediately before the thing it limits: "I need only five minutes."
Same story with "almost," "nearly," "just," "even," and "hardly." These are called limiting modifiers, and they belong next to their target, not wherever the sentence happened to have room.
The phrases that dangle most often
Almost every dangling modifier in professional writing starts with one of four patterns.
"Having + past participle." Having reviewed the budget, the decision was clear. The decision did not review the budget.
"Being + adjective." Being a Sunday, the office was empty. Fine on its own, but "Being a Sunday, we stayed home" attaches Sunday to us.
"After/Before + verb-ing." After reading the draft twice, the ending still felt rushed. Who read it?
"When + verb-ing." When writing a cover letter, the tone should stay formal. The tone is not writing anything.
The cure is the same in every case: make the doer of the action the subject of the main clause, or give the opening phrase its own subject and verb.
When you write a cover letter, keep the tone formal.
After I read the draft twice, the ending still felt rushed.
Why this error is worse in long sentences
Short sentences rarely dangle, because the reader has nowhere to get lost. Long sentences dangle constantly, because the phrase and its target drift apart.
Having spent three weeks gathering interviews, checking figures against the annual report, and rewriting the introduction four times, the article was finally ready.
The article did none of that work. The writer did. The sentence is long enough that a reader's attention has moved on by the time the main clause arrives, and the mismatch slips past.
When you edit, look at every sentence that opens with a comma after a verb phrase. Ask one question: who is doing this? If the answer is not the subject of the main clause, rewrite. The grammar checker flags some of these, but it cannot know what you meant; the decision is yours.
A two-minute check you can run on any draft
Read the sentence and stop at the comma. Ask "who?" Then read the main clause. If the answer to "who?" is not the main subject, the sentence needs one of the three repairs.
This takes seconds per sentence and catches errors that survive every spelling check. On a long draft, run it only on sentences that begin with a comma, which is where nearly all of them live.
When the dangling modifier is deliberate
Advertising copy and fiction dangle on purpose. "Born in a small town, the story begins" is a mood choice, not a mistake, and readers of literary prose tolerate it. Technical writing, contracts, journalism, and academic work do not. In those registers, an unattached modifier reads as carelessness, and carelessness in a sentence about safety or money is expensive.
The building will never walk again. That is the whole point of the edit.