Skip to content

bgalek/friendly-names

Repository files navigation

Friendly names

Simple and lightweight library that creates friendly names using nouns and adjectives.

GitHub Workflow Status Codecov GitHub Release Date Libraries.io dependency status for GitHub repo Scrutinizer code quality Quality Gate Status

Usage

Add library dependency:

compile "com.github.bgalek.utils:friendlynames:1.0.0"

You can use this library generate user-friendly names:

FriendlyNames.defaultDictionary(Locale.forLanguageTag("pl-PL")).random()

honorowa-mariola
FriendlyNames.defaultDictionary().stream().limit(10).forEach(System.out::println)

little-virgie
strong-rachel
military-wes
black-lenard
clear-nelia
important-hans
good-lessie
hard-roxann
real-madelaine
easy-mariela

You can provide your own set of nouns and adjectives

var dictionary = new FriendlyNamesDictionary(Set.of("noun"), Set.of("adjective"))
FriendlyNames.customDictionary(dictionary).random()

noun-adjective

Features

  • infinite stream of name combinations
  • thread safe
  • easy to use/extend

About

Simple and lightweight library that creates friendly names using nouns and adjectives.

Topics

Resources

License

Stars

Watchers

Forks

Languages