Skip to main content

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


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)

Uploaded Source

Built Distribution

word_scramble-1.1.0-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page