All Projects → colinmxs → CodenameGenerator

colinmxs / CodenameGenerator

Licence: MIT license
Configurable code name generator for .NET

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to CodenameGenerator

codenames
A simple bash script to convert hex values (such as commit ids) to codenames
Stars: ✭ 14 (-51.72%)
Mutual labels:  codename

CodenameGenerator Build status

Generates random codenames/usernames/whatever you want!

NuGet link

Examples

Default Configuration

var generator = new Generator();
var name = generator.Generate(); //ex: "rambunctious arthropod"

.Generate() will return a string consisting of an adjective and a noun with a space in between the two. The result will be lowercase.

var names = generator.GenerateMany(5);

//ex: "rambunctious arthropod"
//ex: "green man"
//ex: "laborious documentation"
//ex: "angelic lobotomy"
//ex: "abyssal hotdog"

Configurations

Specify the separator:

generator.Separator = "-"
var name = generator.Generate(); // ex: "rambunctious-arthropod"

Specify the types of words used to construct the code name:

generator.SetParts(WordBank.Adjectives, WordBank.FirstNames, WordBank.LastNames);
var name = generator.Generate(); //ex: "stupid david jones"

Specify the casing:

generator.Casing = Casing.UpperCase;
var name = generator.Generate(); // ex: "RAMBUNCTIOUS ARTHROPOD"

Specify a suffix

generator.EndsWith = "@email.com";
generator.Separator = ""; //no separator
var name = generator.Generate(); // ex: "[email protected]"

Available WordBanks

Available Casings

  • PascalCase (e.g. HelloWorld)
  • CamelCase (e.g. helloWorld)
  • LowerCase (e.g. helloworld)
  • UpperCase (e.g. HELLOWORLD)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].