1. "He looks pale," she said.

2. "He looks pale," said she.
3. "He looks pale," said the girl.
4. "He looks pale," the girl said.
-----------------
Which ones are grammatical? Do you have any rule regarding that?

2 answers

All are correct, but #2 would probably be used mostly in some kind of literature. It's not the everyday way to phrase this.

The others are fine.
Option 3 is the Best Answer according to me. Trust me, I am a School Topper in Emirates English Speaking School, Dubai, UAE. Even though others are grammatical enough, most teachers have Option 3 in mind.