Python 3+ version scrabble word finder! Super efficient with hashtables!
Project description
Python super efficient word scramble finder
word scramble is a python package that looks for all possibilities given a scrambled word.
Installation
If not already, install pip
Install the package with pip
or pip3
:
pip install word-scramble
Usage
from wsfinder import main
# Need to provide the language
finder = main.Finder("english")
scrambled_words = [
"taurdesta",
"achwt",
"ilane",
"alger",
]
res = {word:finder.find(word) for word in scrambled_words}
print(res)
Output:
{
'taurdesta': ['saturated'],
'achwt': ['watch'],
'ilane': ['liane', 'laine', 'elian', 'anile', 'aline', 'alien'],'alger': ['regal', 'large', 'lager', 'glare', 'elgar', 'argle'],
}
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
word-scramble-1.1.0.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for word_scramble-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a06ffff78b464203579d5218403b3cfffb420494ef315a696aab7355a23c8ef3 |
|
MD5 | 0e7365584bf514ca9ea5c615cfd65e1f |
|
BLAKE2b-256 | 548f8328c2f7111f2466a4bc9fbadd135fba99571564350ab7579bc7e75ee0b6 |