Exemplo n.º 1
0
    def is_suffix(self, word):
        """Checks to see if the word passed in is a name suffix"""
        if NumberParser in self.config.enabled_modules:
            nump = NumberParser(self.config)
            if nump.is_roman_numeral(word) != (False, 0):
                return True

        word = word.replace('.', '').upper()
        return word in self.suffixes
Exemplo n.º 2
0
 def setUp(self):
     self.np = NumberParser(TestConfig)