Python 3+ version scrabble word finder! Super efficient with hashtables!
Project description
Python basic data structures implementations
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.0.0.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for word_scramble-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 757470e4ee84699baebd50da25e8af00cbe5ed4d1b1a0705f0833915cefc1ad9 |
|
MD5 | 8498d03d95f8c9d236fe81019e9bc381 |
|
BLAKE2b-256 | bccdae415f5e31bf1b9ef86328f4c9f72f1b3d94bb1abaa3bab651aa2b71cd07 |