A lightweight word finder.
Project description
WordGoblin
WordGoblin is a simple, lightweight word finder package that returns words containing letters specified by the user. English is supported within the package, and custom dictionaries or lists of words can easily be loaded to work with other languages.
Installation and Usage
Install using pip:
pip install wordgoblin
WordGoblin takes as few as one argument or as many as three. If you only want to check the built-in English dictionary for words matching your letters, simply pass your letters as a string to the check_dict method:
import wordgoblin
wordgoblin.check_dict('yourstringofletters')
To only return words containing a certain number of letters, use the same method by specify your number as a second argument:
wordgoblin.check_dict('yourstringofletters', 3)
And to use a custom dictionary, simply provide the path of your JSON dictionary as a second argument (the dictionary should list the words as keys; their values don't matter). You can also (optionally) include the number of letters for your word matches:
wordgoblin.check_dict('yourstringofletters', 'path_to_custom_dict.json')
# or, to only return 4 letter words:
wordgoblin.check_dict('yourstringofletters', 'path_to_custom_dict.json', 4)
To use a custom list of words instead of a JSON dictionary, use the following (very similar) syntax:
wordgoblin.check_list('yourstringofletters', your_custom_list)
# or, to only return 4 letter words:
wordgoblin.check_list('yourstringofletters', your_custom_list, 4)
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
Built Distribution
Hashes for wordgoblin-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6454df644b03289029e85992c0578b880d787b50f768d3b8dbc6c1a1c9bdaabc |
|
MD5 | 378b987391f8c72473f90f97123cd556 |
|
BLAKE2b-256 | 5640b220d944f060e9b2bc78ec4909d8fd906dc0fe7961148921722a28b388b8 |