Skip to content

rec/nmr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

72 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ”ข nmr: name all canonical things ๐Ÿ”ข

Convert each canonical thing into a number, and then that number into a unique, non-repeating name from a short list of common, short English words... or use a word list of your choice.

Installs both a module named nmr and an executable called nmr.py

EXAMPLE

import nmr

assert nmr(0) == ['the']
assert nmr(2718281828) == ['the', 'race', 'tie', 'hook']

for i in range(-2, 3):
    print(i, ':', *nmr(i))

# Prints
#   -2 : to
#   -1 : of
#   0 : the
#   1 : and
#   2 : a

About

๐ŸŒ Name all canonical things ๐ŸŒ

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages