Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/drdub/namegen
Creates human readable names for hashes
https://github.com/drdub/namegen
Last synced: about 1 month ago
JSON representation
Creates human readable names for hashes
- Host: GitHub
- URL: https://github.com/drdub/namegen
- Owner: DrDub
- Created: 2011-12-27T12:16:33.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2015-07-30T22:51:54.000Z (over 9 years ago)
- Last Synced: 2023-03-11T04:12:49.322Z (almost 2 years ago)
- Language: Python
- Homepage:
- Size: 201 KB
- Stars: 5
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
Hashes to name generator and parser
===================================Uses three lists:
* List of colors, distilled from doloreslabs color names v1 (see
http://blog.doloreslabs.com/?p=17, now at
http://web.archive.org/web/20120828112952/http://blog.doloreslabs.com/?p=17).
Used last word for each color, cleaned mispellings by hand.* List of animals, distilled from WordNet 3.0 (wn animal -treen,
you'll need to patch your binary to see the whole output). Kept all
animals that were only one word. One animal per synset, first
one-word synonym picked.* List of locations, distilled from YAGO 2.0 (which in turn distilled
it from Wikipedia and other sources), postprocessed from hasArea.tsv
(dropped all locations that required non-printable characters).It produces verbalizations in the form 'color' 'animal' # 'left-over
number' from 'location'.It takes a hash in base 16 as argument. With the current lists, it can
represent up to 8 positions. 10 positions works fine with a few digits
number. If the hash is small, it will produce an animal, then
color+animal and finally color+animal from location before the full form.Use the option --parse to obtain back the hash, the following shell
command should be an identity transformation:$ python namegen.py `python namegen.py 62623831ab` --parse
62623831abEXAMPLES
(my GPG fingerprint)
$ python namegen.py 4A27AF6A
Mediumorchid-Shoebird-from-Arlay(the first digits of the MD5 hash for animals.list)
$ python namegen.py c345a6a36972
Lawngreen-Archeopteryx-#55840-from-Augne