Quote Originally Posted by buzz View Post
It's spelled "grammar".
Grammatically speaking, periods and commas generally go before the closing quote mark.


http://www.grammarbook.com/punctuation/quotes.asp