find words that have other words in them that when you take the inner words out what's left is still a word
Project description
recurse-words
find words that have other words in them that when you remove the inner word what's left is still a word
installation
From pypi:
pip install recurse-words
From github:
git clone https://github.com/sneakers-the-rat/recurse-words
pip install ./recurse-words
# or
poetry install ./recurse-words
usage
Point the recurser at a file that has a list of words, for example this one, and let 'er rip
from recurse_words import Recurser
recurser = Recurser('path/to/some/words.txt')
recurser.recurse_all_words()
recurser.save('word_trees.pck')
# see word trees by a few metrics
# max tree depth
recurser.by_depth
# total number of leaves
recurser.by_leaves
# total number of edges
recurser.by_density
Draw network graphs!
recurser.draw_graph('some_word', '/output/directory')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
recurse-words-0.1.0.tar.gz
(6.5 kB
view hashes)
Built Distribution
Close
Hashes for recurse_words-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4dbe2e837fc7dabb08f4223b47fc737471ad0a488051eb478b4ab897cb2955bf |
|
MD5 | c6864ca44908808f703bb9c5592c5663 |
|
BLAKE2b-256 | 82611bb3c2e351849e7c7922373e60c63953d68a03e00956824b143e0e8e0bcb |