The term you are referring to is "text clustering" or "document clustering." Text clustering involves analyzing data, such as text documents or responses, to identify similar words or patterns and group the documents that contain them into clusters or categories.