affix parsing framework