1. A method of assisting a user who is editing a markup document on a computer, comprising: presenting to said user said markup document on a display of said computer for editing; and providing grammatical assistance to said user based on a grammar inferred from current content of said markup document.