Discourse analysis examines language in use to understand its functions. There are two main views of language functions: transactional, which uses language to communicate information, and interactional, which uses language to establish and maintain social relationships. Language can be used for both communicating information and maintaining social interactions. Spoken and written language both have advantages and disadvantages - written language allows more organization while spoken uses paralinguistic cues. Discourse analysts study both spoken and written texts but can only transcribe what is said, not capture elements like intonation. Grammarians and discourse analysts differ in their views of language data and rules.