Skip to content

Make hashes human readable by using verb-adjective-noun format. 📜

License

Notifications You must be signed in to change notification settings

lfrati/wordhasher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WordHasher

Hashes are cool. But gosh they are ugly to read...

Let's convert them to verb-noun-adjective form to be more human friendly!

We are going to use WordNet to get some words and hashlib to get some hashes.

Example

>>> from wordhasher import WordHasher
>>> wh = WordHasher()
>>> print(wh)
WordHasher:
     nouns: 9698
adjectives: 3644
     verbs: 2872
>>> wh.from_str('This is a test.') 
catnap-abatic-upshot
>>> wh.from_str(__file__)
syphon-abashed-decidua
>>> wh.sample()
keep-vain-smugness-247
>>> wh.sample(mode="an")
inviting-patrial
>>> wh.sample(mode="anN")
unsaved-asshole-908

Credits

Princeton University "About WordNet." WordNet. Princeton University. 2010.

About

Make hashes human readable by using verb-adjective-noun format. 📜

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages