Last active
March 17, 2019 08:29
-
-
Save talfco/9bb7eafcc938722f7f340dcd7b518f2d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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