danmermel / cryptario

Cryptic crossword solver
0 stars 0 forks source link

double def - compare pairs of strings #14

Closed danmermel closed 5 years ago

danmermel commented 5 years ago

given a pair of strings and a solution pattern like

("yearn", "for quite a while", [4,2]):

1- find the synonyms for each 2- Throw away any that are not as long as the solution pattern 3 - Compare those left over to see if there are identical strings in both lists 4- return all matches

glynnbird commented 5 years ago

needs tests!