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')
Auto-download different corpuses!
recurser = Recurser(corpus='english')
recurser = Recurser(corpus='phonetic')
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.2.0.tar.gz
(8.5 kB
view hashes)
Built Distribution
Close
Hashes for recurse_words-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e666d35db5df4500c8046dbeea37621f27de9aa582af866b8288a54286837f1 |
|
MD5 | 2dd50e93fe682fb817d192a55bd364f2 |
|
BLAKE2b-256 | 92baf9905af237a02643f52f94f2d4db5a2b77bbf3d1ec9a04d4cf1461ddf22a |