def top_frequencies(freq_dict, nterms=10):
    """
    top_frequencies(freq_dict, name, nterms)

    Returns the first nterms in the dictionary.

    Input:
        freq_dict, dict:
            Dictionary of word frequencies.

        nterms, int;
            Number of word frequencies in returned dictionary.

    Output:
        dict:
            The reduced size dictionary.


    Note:
    This wrapper is needed just to handle
    files with less than 10 words.
    """
    items = list(freq_dict.items())
    if len(items) < nterms:
        return dict(items)
    else:
        return dict(items[:nterms])
