Thought disorder
The condition it describes is permanent. It affects speech and writing. Those affected may speak all the time, or they may show patterns like switching ideas inside a sentence. They may also use different words that do not fit together at all; this is known as 'word salad'.