Skip to content

This is a script used to check all possible English words in a given string of letters.

License

Notifications You must be signed in to change notification settings

otseobande/checkwords

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Checkwords

Check word is a script used to check all possible English words in a given string of letters.

Installation

First of all you should clone this repository and navigate into the project folder:

$ git clone https://github.com/otseobande/checkwords
$ cd checkwords

Then you need to install the dependencies:

$ pip install -r requirements.txt

After the installing dependencies download the words corpus.

$ python
>>> nltk.download('words')

You should be good to go.

Usage

>>> from checkwords import get_possible_words
>>> get_possible_words('flag')
['fa', 'la', 'al', 'ga', 'alf', 'fag', 'lag', 'gal', 'flag']
>>>

Testing

To run tests simply run:

$ python -m unittest discover -v

License and Copyright

Licensed under the MIT License.

About

This is a script used to check all possible English words in a given string of letters.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages