Pātuhitia tēnei: Foundations of statistical natural language processing.