The comprehensible output hypothesis was developed by Merrill Swain and states that language learning occurs when learners attempt to produce output and encounter gaps in their linguistic knowledge. This causes learners to modify their output as they learn. There are three functions of output: the noticing function where learners become aware of gaps, the hypothesis-testing function where learners test hypotheses through trial and error, and the metalinguistic function where learners reflect on and internalize language. The hypothesis argues that producing language, receiving feedback, and modifying output based on feedback helps learners acquire a second language.