The term "stream of consciousness" was coined by the American psychologist William James in his work The Principles of Psychology (1890). It refers to the continuous flow of thoughts, feelings, and perceptions that occur in an individual's mind. This concept was later adapted by modernist writers like Virginia Woolf and James Joyce to depict the inner workings of a character's mind.