def METHOD_NAME(first, last):
    d = {"first": first, "last": last}
    if print_papers:
        p = sorted(papers[first, last])
        if len(p) > 5:
            p = p[:5]
            p.append("...")
        d["papers"] = " ".join(p)
    return d