Method to extract morphemes.