Skip to main content

Help you guess drawsomething words by brute force all permutations.

Depends

  • pyenchant

  • google-translate

Install Guide

Take OS X for example.

Drawsomething depends on enchant to do spell checking.

As pyenchant is only a python binding for enchant, we need to install enchant first. And we also need to install aspell with en dict because enchant use aspell as backend.

$ brew install aspell --lang=en
$ brew install enchant
$ pip install pyenchant google-translate

Usage

One line script to generate all possible words:

>>> import drawsomething
>>> drawsomething.get_words('esttxyz', 4)
['ttys', 'sexy', 'yest', 'text', 'sett', 'zest', 'stet', 'test']

To list words with translations:

>>> import drawsomething
>>> words = drawsomething.get_words('esttxyz', 4)
>>> for w in words:
>>>     trans = drawsomething.translate(w, 'zh_cn').lower()
>>>     print w, trans

The drawsth is a cli script to list all possible words:

$ drawsth -l 4 -c esttxyz
ttys
sexy
yest
text
sett
zest
stet
test

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

drawsomething-0.1.0.tar.gz (2.4 kB view details)

Uploaded Source

File details

Details for the file drawsomething-0.1.0.tar.gz.

File metadata

  • Download URL: drawsomething-0.1.0.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for drawsomething-0.1.0.tar.gz
Algorithm Hash digest
SHA256 524b69a339ddadaa9e4d87524faee52b6824f864f35b61c97eb3bccc2e73b967
MD5 5413305350dd75cedadc2b6f44ec6964
BLAKE2b-256 7ad37e8b28970bb1d6518ab3cf5e29c24fbba394fc0fdc4d83ac99d34616a515

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page