The correct spelling of the word is "grammatically". To avoid misspelling it as "grammitically", one can remember the proper spelling by breaking down the word into syllables: gram-mat-i-cal-ly. Additionally, using spell check or referring to a dictionary can help prevent this common spelling error.