Function

The function of a word is what it 'does' in its sentence, e.g. its function is to act as a subject, object, verb, etc. The function of a sentence is what it is intended to 'do', e.g. to make a statement, ask a question or give a command or order.

» Linguistic Library (Mike Green)