Sentence (linguistics)
By function or speech act

Sentences can also be classified based on the speech act which they perform. For instance, English sentence types can be described as follows:

The form (declarative, interrogative, imperative, or exclamative) and meaning (statement, question, command, or exclamation) of a sentence usually match, but not always. For instance, the interrogative sentence "Can you pass me the salt?" is not intended to express a question but rather to express a command. Likewise, the interrogative sentence "Can't you do anything right?" is not intended to express a question on the listener's ability, but rather to make an exclamation about the listener's lack of ability, also called a rhetorical question.
punctuation:no_comma