write pinyin_get_context and pinyin_get_pinyin_is_incomplete method