libpinyin is a library for dealing with pinyin. 

The libpinyin project aims to provide the algorithms core for 
intelligent sentence-based Chinese pinyin input methods.
