def METHOD_NAME(params: Dict[str, Any]) -> str:
    if "document-type" in params:
        split = params["document-type"].split(",")
        what = []
        for el in split:
            what.append(DOCUMENT_TYPE_NAMES_PL[el])
        if len(what) > 1:
            last_el = what.pop()
            description = ", ".join(what)
            description += " " + pgettext("Search query", "and") + " " + last_el
        else:
            description = what[0]
    else:
        description = pgettext("Search query", "Documents")
    strs = []
    if "searchterm" in params and params["searchterm"] != "":
        strs.append(
            pgettext("Search query", 'containing "%STR%"').replace(
                "%STR%", params["searchterm"]
            )
        )
    if "person" in params:
        person = Person.objects.get(pk=params["person"])
        if person:
            strs.append(
                pgettext("Search query", "mentioning %FROM%").replace(
                    "%FROM%", str(person)
                )
            )
    if "organization" in params:
        organization = Organization.objects.get(pk=params["organization"])
        if organization:
            strs.append(
                pgettext("Search query", "assigned to %TO%").replace(
                    "%TO%", str(organization)
                )
            )
    if "radius" in params:
        place_name = latlng_to_address(params["lat"], params["lng"])
        locstr = pgettext(
            "Search query", 'with a location within %DISTANCE%m around "%PLACE%"'
        )
        strs.append(
            locstr.replace("%DISTANCE%", params["radius"]).replace(
                "%PLACE%", place_name
            )
        )
    if "before" in params and "after" in params:
        strs.append(
            pgettext("Search query", "published from %FROM% to %TO%")
            .replace("%FROM%", params["after"])
            .replace("%TO%", params["before"])
        )
    elif "before" in params:
        strs.append(
            pgettext("Search query", "published before %TO%").replace(
                "%TO%", params["before"]
            )
        )
    elif "after" in params:
        strs.append(
            pgettext("Search query", "published after %FROM%").replace(
                "%FROM%", params["after"]
            )
        )
    if len(strs) > 0:
        description += " " + ", ".join(strs)
    return description