Skip to content

tanderbold/NicknameGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Library for nickname generating

Easy to use method to get nicknames for your targets

Example:

Dictionary<TypeOfPart, ISourcePart> sources = new Dictionary<TypeOfPart, ISourcePart>()
{
	// Custom file
	{ TypeOfPart.Adjective, new SourcePartFromFile("Adjectives.txt") },
	// Default values
	{ TypeOfPart.Noun, new SourcePartDefault(TypeOfPart.Noun) },
	// Numbers
	{ TypeOfPart.Number, new SourcePartNumber(1000) }
};


List<Part> parts = new List<Part>()
{
	new Part() { Type = TypeOfPart.Adjective, Format = FormatDescriptor.FirstUppercase },
	new Part() { Type = TypeOfPart.Noun, Format = FormatDescriptor.FirstUppercase },
	new Part() { Type = TypeOfPart.Number, Format = FormatDescriptor.FirstUppercase }
};

IGenerator generator = new Generator(parts, sources);
var firstnick = generator.Generate();
var secondnick = generator.Generate();
var thirdnick = generator.Generate();

Results:

"HollowInterest685"
"OptimalAccount883"
"EnthusiasticSpring57"

https://www.nuget.org/packages/NicknameGenerator/

About

Library for creation nicknames

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages