/GfycatesqueIds

Create human-readable Ids just like Gfycat. Use the default format of VerbAdjectiveAnimal or a custom format of your choosing.

Primary LanguageC#MIT LicenseMIT

GfycatesqueIds

.NET Core

Create human-readable Ids, just like Gfycat. Use the default format of VerbAdjectiveAnimal or a custom format of your choosing.

Example Usage

https://dotnetfiddle.net/4KGjWQ

// Create Id in the default form VerbAdjectiveAnimal
var id = GfycatesceIds.Generate(); // id == "ExaltedDifficultAntelope"

// Create classic Gfycat Id in the form AdjectiveAdjectiveAnimal
var id = GfycatesceIds.Generate(GfycatesceIds.GfycatPattern); // id == "CalmFriendlyLion"

// Create Id in a custom form and length
var id = GfycatesceIds.Generate(new[]
    {
        WordType.Verb, WordType.Adjective, WordType.Verb, WordType.Verb, WordType.Animal
    }); // id == "WalkHorribleConfessQuestionZebra"