Skip to content

Instantly share code, notes, and snippets.

@talfco
Last active March 17, 2019 08:29
Show Gist options
  • Save talfco/9bb7eafcc938722f7f340dcd7b518f2d to your computer and use it in GitHub Desktop.
Save talfco/9bb7eafcc938722f7f340dcd7b518f2d to your computer and use it in GitHub Desktop.
def match_name(self, name_tuple):
match_list = []
combinations = self.generate_combinations(name_tuple)
for comb_tuple in combinations:
concat_name = self.generate_normalized_name(comb_tuple)
metaphone_tuple = doublemetaphone(concat_name)
if metaphone_tuple[0] in self.__lookup_dict[0]:
match_list.append((concat_name, self.__lookup_dict[0][metaphone_tuple[0]]))
print("Match with "+ match_list.__str__())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment