Modify to include getPhonemes functionality