recurse-words
find words that have other words in them that when you remove the inner word what's left is still a word
and do other stuff too like evaluate the modular phonetic structure of English like
from recurse_words import Graph_Recurser, Graph
recurser = Graph_Recurser('phonetic_common')
recurser.recurse_all_words(
min_include_word = 3,
min_test_word = 2,
min_clipped_word = 2
)
Graph(recurser).render_graph('img').save('/some/path.png')
docs are here!!!
main docs at https://recurse-words.readthedocs.io/
______________________________
/ \ \.
| | p l e s |.
\_ | t a k e |.
| n o t e |.
| ------------------- |.
| |.
| this software is |.
| developed expressly |.
| for the purpose of |.
| "funzies" |.
| |.
| i make no promises |.
| that it works |.
| or is good |.
| |.
| _________________________|___
| / /.
\_/dc__________________________/.
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')
Release files for recurse-words 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| recurse-words-0.2.1.tar.gz | 15.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| recurse_words-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.8 kB
Release files / recurse-words-0.2.1.tar.gz
| Download URL | recurse-words-0.2.1.tar.gz |
|---|---|
| Size | 15.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
752ec163f03e9927aaad3de8c3e2e4fc39ed680cd257e19a75181819637f444b
|
|
BLAKE2b-256 checksum How to use checksums |
9b5b85ca81cac3fb29f8ea46fe419a2b5e1ed4bdbc1c83986e76501f18464330
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.9.1 Darwin/21.2.0
|
Release files / recurse_words-0.2.1-py3-none-any.whl
| Download URL | recurse_words-0.2.1-py3-none-any.whl |
|---|---|
| Size | 16.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e786147eac97e31c20980886fc7a3518876dc7b3e03511b34a89bcf05295f326
|
|
BLAKE2b-256 checksum How to use checksums |
664e55bfd31e9cf0817af324789b54f4bd3238eb806a336f23fcfacdd4b240ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.9.1 Darwin/21.2.0
|