Seems to me that there is a mental illness (but I don’t remember which one it is) where people generate the same kind of speech.
You’re probably thinking of word salad, most often associated with schizophrenia but not exclusive to it.
You’re probably thinking of word salad, most often associated with schizophrenia but not exclusive to it.