I have a list of months in Latin:
latinMonths = ['januarii', 'februarii','martii', 'aprilis', 'maii', 'junii', 'julii', 'augusti', 'septembris', 'octobris', 'novembris', 'decembris']
which unfortunately in my text I find variations of them spelled differently ex: 'januarij' or 'septembrjs' etc...
I am trying to scan the text to find the exact word as the the list or variations of it.
I know I can use difflib and found that I can check a sentence with a list of words in this post: Python: how to determine if a list of words exist in a string. Is there a way I can combine both, thus finding an instance in a string where the months in the list or variations of it exist?
ex: If I have the text "primo januarij 1487" I would like to return true as januarij is a close match to january while if I have 'I love tomatoes' neither of the words are a close match or exact match to the words in the list