How to use the inflect.joinstem function in inflect

To help you get started, we’ve selected a few inflect examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jazzband / inflect / tests / test_pwd.py View on Github external
def test_joinstem(self):
        # def joinstem
        self.assertEqual(
            inflect.joinstem(-2, ["ephemeris", "iris", ".*itis"]), "(?:ephemer|ir|.*it)"
        )
github jazzband / inflect / tests.py View on Github external
def test_joinstem(self):
        # def joinstem
        self.assertEqual (inflect.joinstem(-2, ["ephemeris", "iris", ".*itis"]),
                          '(?:ephemer|ir|.*it)')
github GeneralizedLearningUtilities / SuperGLU / python_module / SuperGLU / Services / TextProcessing / Tests / Inflect / test_pwd.py View on Github external
def test_joinstem(self):
        # def joinstem
        self.assertEqual(inflect.joinstem(-2, ["ephemeris", "iris", ".*itis"]),
                         '(?:ephemer|ir|.*it)')