Pattern-based morphemic analysis toolkit