def sub(self, text):
        if self._regexIsDirty:
            self._update_regex()
        return self._regex.sub(self, text)

# self-test
Translate text, returns the modified text.
dataset/ETHPy150Open encorehu/django-buddy/core/aiml/WordSub.py/WordSub.sub