def _text_words(self, length, truncate):
        """
        Truncates a string after a certain number of words.

        Newlines in the string will be stripped.
        """
        words = self._wrapped.split()
        if length > len(words):
            words = words[:length]
            return self.add_truncation_text(' '.join(words), truncate)
        return ' '.join(words)
dataset/ETHPy150Open django/django/django/utils/text.py/Truncator._text_words/swapped operands of `>`