matches
to store words that match the pattern.words
list.pattern_to_word
and word_to_pattern
.pattern_to_word
, add the mapping pattern_to_word[pattern_char] = word_char
.word_to_pattern
, add the mapping word_to_pattern[word_char] = pattern_char
.matches
list.matches
list.