def surname_is_toponym(self):
        """
        Is the surname the name of a country or US state?

        Returns: bool
        """

        surname = ' '.join(self.surname_tokens)
        return is_toponym(surname)
    def title_is_toponym(self):
        """
        Is the title the name of a country or US state?

        Returns: bool
        """

        title = ' '.join(self.title_tokens)
        return is_toponym(title)
Example #3
0
    def surname_is_toponym(self):

        """
        Is the surname the name of a country or US state?

        Returns: bool
        """

        surname = ' '.join(self.surname_tokens)
        return is_toponym(surname)
Example #4
0
    def title_is_toponym(self):

        """
        Is the title the name of a country or US state?

        Returns: bool
        """

        title = ' '.join(self.title_tokens)
        return is_toponym(title)