def METHOD_NAME(query, params):
    params['url'] = base_url + search_string.format(query=urlencode({'q': query}), limit=number_of_results)
    if params['language'] != 'all':
        language = params['language'].split('_')[0]
        if language in supported_languages:
            params['url'] = params['url'] + "&lang=" + language
    # using searx User-Agent
    params['headers']['User-Agent'] = searx_useragent()
    return params