Here is what the dictionary has to say:
Main Entry: gram·mar
Pronunciation: 'gra-m&r
Function: noun
Etymology: Middle English gramere, from Middle French gramaire, modification of Latin grammatica, from Greek grammatikE, from feminine of grammatikos of letters, from grammat-, gramma -- more at...