def term_frequency(text, term, per=1000):
    """
    :type text: Text
    :param text: The text to be analysed
    :param term: A term/word
    :type term: str
    :param per: An Int determining per how many terms the frequency should be evaluated
    :type per: int
    :return: The frequency of the term appearing in the text
    :rtype: float
    """

    return (text.frequency_distribution[term] * per) / text.frequency_distribution.N()