Mixing dialogue and action tags
If the tag comes after the dialogue, end the dialogue with a comma, even if it’s a full sentence. The first letter of the tag should be lowercase (unless it’s a name). “It’s so gloomy out,” he said. If the tag comes during the dialogue, end the first part of the dialogue with a comma then have the tag as normal.