I'm also building a language learning app and after checking out Morpheem, it kind of rocked my world. It does a much better job than I'd expect on Mandarin. Wow.