Skip to content

RedoxEngine/medical-word-uuid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

medical-word-uuid

generate fun, unique random IDs with medical terms

usage

uuid(length, appendNumber)

length - how many words to include. The wordlist is ~93k words so 2 words is 8.649 × 10^9 and 3 is 8.04357 × 10^14.

appendNumber - append an additonal 4 digits to the end to bump up uniqueness.

import {uuid} from @redoxengine/medical-word-uuid;
uuid()
'thermocoagulation-superficies'
uuid(3, true)
'envy-pegoxol-spongiositis-7384'

Wordlist is from glutanimate/wordlist-medicalterms-en I removed any with punctuation and lowercased everything cat data/wordlist.txt | grep -Eo '^[a-zA-Z0-9]+$' | awk '{print tolower($0)}' |awk '{ printf "\"%s\",\n", $0 }' > src/words.ts

About

generate fun, unique random IDs with medical terms

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published