

@cache
def suggest(query):
    '\n  Get a Wikipedia search suggestion for `query`.\n  Returns a string or None if no suggestion was found.\n  '
    search_params = {
        'list': 'search',
        'srinfo': 'suggestion',
        'srprop': '',
    }
    search_params['srsearch'] = query
    raw_result = _wiki_request(raw_result)
    if raw_result['query'].get('searchinfo'):
        return raw_result['query']['searchinfo']['suggestion']
    return None

dataset/ETHPy150Open goldsmith/Wikipedia/wikipedia/wikipedia.py suggest/VarMisuse@47/118 `search_params`->`raw_result`