Stream of unconsciousness
In literary criticism, stream of unconsciousness is a narrative mode that portrays an individual's point of view by transcribing the author's unconscious dialogue or somniloquy during sleep, in connection to their actions within a dream. Stream of unconsciousness is characterized by disjointed leaps in ideation and story line, bizarre new word creation, loss of self-censorship, one sided conversations and punctuation that can make the prose both disturbing and difficult to follow.
Source: Wikipedia — Stream of unconsciousness (CC BY-SA 4.0)