Skip to content

Instantly share code, notes, and snippets.

@polyglothacker
Created May 18, 2022 11:25
Show Gist options
  • Save polyglothacker/e720fbba5a01a9fbfd3124dbdfaa4cbf to your computer and use it in GitHub Desktop.
Save polyglothacker/e720fbba5a01a9fbfd3124dbdfaa4cbf to your computer and use it in GitHub Desktop.
"""
Generating new words from existing words
"""
fruits = ['grape', 'banana', 'apple', 'orange', 'litchi', 'pomegranate']
'apple', 'grape' => 'leg'
'banana', 'apple' => 'bale'
By picking substrings at least of length 1 from one word beginning or end + substrings of at least length 1 from beginning or end
of another word - you can create new words. The substrings should not be the entire word.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment