Generate human-readable ids from lists of easy-to-spell nouns and adjectives
Generate ids in the format of
adjective-noun-# such as
My problem is that I often want ids that I can type without having to look at twice (nor telling someone else twice).
I should be able to shout one of these ids across the room to a co-worker or spouse and have them be able to enter it without any confusion.
Currently the id space is about 100,000 ids (100 * 100 * 100).
The goal is to have several billion possible combinations by adding more words as well as expanding the ids to have verbs and adverbs.
npm install --save human-readable-ids
'use strict';var hri = require'human-readable-ids'hrii;// generate 100 random idsfor i = 0; i < 100; i += 1console.loghrirandom;
bower install --save human-readable-ids
;'use strict';var hri = exportshumanReadableIds || require'human-readable-ids'hrii;for i = 0; i < 100; i += 1console.loghrirandom;'' !== typeof exports && exports || 'return this';
Please add more words that fit these criteria
- Easy-to-spell - such that even my redneck dad can manage
- Phonetically distinct - no words like bore/boar
- Few syllables
All of the words are sorted alphabetically (
sort -u) and stored in
- wednesday, hamster, ostrich (difficult to spell)
- grey, gray, bore, boar (two ways of spelling the same word or sound)
- prawn (not well-known)
Acheive 1 trillion ids with a combination such as
number adjective noun verb adverb
And allow choosing various formats based on the desired number of ids.
adjective noun number
number adjective noun verb