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.1.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for word_scramble-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0492672c889c241498bd2b7958b794a9e82ae83c173d47e84703722313355c6 |
|
MD5 | 1dfadeedf088a5cc7c0e12b75e0ae3d0 |
|
BLAKE2b-256 | b02191cb9717ddd4f256ad9abe7eb4c96f01488bd1f95a4603920215dfc18bc6 |