Text this: Core words and Parikh matrices