Giter Club home page Giter Club logo

nomen-est-omen's Introduction

๐Ÿฆ„ Nomen est Omen

Java CI with Gradle

"Your name is your destiny", so be sure you pick a good name. This Java library helps with generating some super-awesome random names that you can use for some unique IDs or passwords :)

Generated names may consist of:

  • adjective (1400+)
  • animals (380+)
  • color name (80+)
  • nouns (850+)
  • person name (140+ names)
  • superb name (10+ names)
  • pokemon name (700+ names)
  • superheroes name (1800+ names)
  • count (any number > 0)

For example, you can get names such: hungry_navy_babbage or dreamy-cray. Isn't this super great?

Usage

It's complicated.

1. Add dependencies

In your Gradle or Maven project, add:

com.oblac:nomen-est-omen:<version>

There are 0 dependencies.

2. Use it

If you just want a short name (adjective and person name):

Nomen.randomName();

If you want to build your own template, e.g.:

Nomen.est().adjective().color().person().get();

Configure it using withXxx() methods:

Nomen.est().adjective().color().person().withSpace('/').get();

That is all.

3. Optimise if you will

Templates can be created once and reused:

Nomen uigen = Nomen.est().adjective().person();
...
String id1 = uigen.get();
String id2 = uigen.get();

Nice!

Thanx to Docker

I am blatantly stealing idea from Docker. It is so beautiful, that it deserves Java port :)

License

BSD

nomen-est-omen's People

Contributors

igr avatar ioannisnoukakis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nomen-est-omen's Issues

Add Builder-Method for Literals

Sometimes it is useful to discriminate different Types of Objects by adding a Literal String:

Nomen.est().literal("admin").color().adjective().person()
 = "admin_green_hopeful_meninsky"

Add Builder-Method to configure Uppercase Names

To Discriminate between, let's say, a Key and a Display-Value it would be nice to be able to generate Uppercase Names:

Nomen.est().casing(Casing.WORD).separator(" ").color().adjective().person()
 = "Green Hopeful Meninsky"

This could be used together with a Library like Gihub's Slugify to generate a Slugified key to the more Display-Like name.

Add more word types

Like:

  • connection words (and, or, )
  • places (room, space, earth...)
  • hardcoded words.

Example:

maria and john in blue room

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.