Skip to main content

Convert cumbersome strings into memorable phrases

Project description

xkcd936

Convert cumbersome strings into memorable phrases.

Installation

pip install xkcd936

Usage

from xkcd936 import visualize
memorable_str = visualize('k2dhE4hd@!Y')

About

This generator performs an MD5 hash of the input. The resulting bits are used to choose a grammatical template:

  • article adj adj animal
  • adj article adj animal

The dictionary can be upgraded to include patterns like:

  • verb article adj noun
  • article adj adj noun
  • article adv adj noun
  • adv verb article noun

and a word for each slot.

The total space is around 43 bits. This may not sound like much, but it doesn't matter.

Software doesn't just run on the computer -- it also runs in each of your users' heads. For many problems with user-facing software, "adding more bits" is the wrong solution. The right solution often involves tapping into the user's natural cognitive and social capabilities.

License

Released under MIT license.

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

xkcd936-1.0.0.macosx-10.13-x86_64.tar.gz (2.4 kB view details)

Uploaded Source

File details

Details for the file xkcd936-1.0.0.macosx-10.13-x86_64.tar.gz.

File metadata

  • Download URL: xkcd936-1.0.0.macosx-10.13-x86_64.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

File hashes

Hashes for xkcd936-1.0.0.macosx-10.13-x86_64.tar.gz
Algorithm Hash digest
SHA256 6c5e87288823d256e5c94ae68799886927756e89a0f16148096c93d9c8180206
MD5 6e1ffe869fc8c5c306332bc07e9b3d11
BLAKE2b-256 8c0ead189245dbda95467be1303666dca914cc9acb7af64192b175a93d47db53

See more details on using hashes here.

Supported by

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