added pinyin and chinese checking functions