Is it really wrong to write dialogue like this: ["Hey," I said, patting her on the head.] I read somewhere that you're not technically supposed to add an action like that with a speech verb.

I don't see anything wrong with it. But check back here later or tomorrow to see if another English teacher has a different point of view.

I've seen dialog written that all the time. There's nothing wrong with it. In fact, I think it adds interest, knowing what the speaker's action is, as well as his/her words!

When it comes to writing dialogue, there are no strict rules set in stone. However, there are some guidelines and commonly accepted practices that can help make your dialogue flow smoothly and effectively.

In the example you provided, ["Hey," I said, patting her on the head.], you have included an action with a speech verb. While it is not technically wrong to do so, it's worth considering the impact it may have on the reader's comprehension and immersion in the story.

Including an action alongside a speech verb can distract from the dialogue itself, as the reader may need to pause and process the additional action before continuing with the dialogue. This can disrupt the natural rhythm of the conversation and make it less engaging for the reader.

Instead, it might be more effective to separate the action and the dialogue into separate sentences or paragraphs. For example:

"Hey." I patted her on the head.

By separating the action, you ensure that the dialogue remains the focal point, allowing the reader to focus on the words being spoken, while still including the action.

However, it's important to note that writing style is subjective and can vary depending on the writer's intention and the context of the scene. If you feel that including the action within the dialogue serves a specific purpose or adds depth to the character's interaction, it's ultimately your decision as the writer.

Remember, guidelines are meant to provide structure and enhance readability, but there's always room for creativity and experimentation in writing.