Pātuhitia tēnei: Mathematical and computational analysis of natural language