The principle of 'recoding variables' can be applied to both text and numeric variables.
It allows you to group scale variables into categories, f.e. an age question to age groups or to combine open answers into corrected categories.
Details on recoding numeric variables can be found here.
Details on recoding text variables can be found here.