'Truncates a string after a certain number of words. Takes an optional
argument of what should be used to notify that the string has been
truncated, defaulting to ellipsis (...).'

def words(self, num, truncate=None, html=False):

    length = int(num)
    if html:
        return self._html_words(length, truncate)
    return self._text_words(length, truncate)
