Skip to main content

Provides a bijection between numbers and lists of english words.

Project description

word_identifiers

This is a bijection between non-negative integers and lists of words, in English. This is useful to quickly make urls or tokens.

Usage

>>> from word_identifiers import words_to_id, id_to_words
>>> id_to_words(76985270495720357)
['head', 'dance', 'bully', 'race', 'gate', 'color']
>>> words_to_id(['head', 'dance', 'bully', 'race', 'gate', 'color'])
76985270495720357

Wordlist

The wordlist used is this public domain wordlist, compiled by Michael Wehar.

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-identifiers-1.0.0.tar.gz (6.5 kB view hashes)

Uploaded Source

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