A random word generator for .NET and .NET Core
$ dotnet add package CrypticWizard.RandomWordGeneratordotnet add package CrypticWizard.RandomWordGenerator
<PackageReference Include="CrypticWizard.RandomWordGenerator" Version="0.9.5"/>
using CrypticWizard.RandomWordGenerator;
using static CrypticWizard.RandomWordGenerator.WordGenerator; //for brevity, not required
WordGenerator myWordGenerator = new WordGenerator();
string word = myWordGenerator.GetWord(PartOfSpeech.noun);
jewel
WordGenerator myWordGenerator = new WordGenerator();
List<string> advs = myWordGenerator.GetWords(PartOfSpeech.adv, 5);
abnormally
boastfully
daintily
shakily
surprisingly
WordGenerator myWordGenerator = new WordGenerator();
bool isWord = myWordGenerator.IsWord("exemplary");
true
WordGenerator myWordGenerator = new WordGenerator();
bool isPartOfSpeech = myWordGenerator.IsPartOfSpeech("ball", PartOfSpeech.noun);
true
WordGenerator myWordGenerator = new WordGenerator();
List<PartOfSpeech> pattern = new List<PartOfSpeech>();
pattern.Add(PartOfSpeech.adv);
pattern.Add(PartOfSpeech.adj);
pattern.Add(PartOfSpeech.noun);
List<string> patterns = myWordGenerator.GetPatterns(pattern, ' ', 10);
clearly calm bandana
doubtfully majestic pizza
faithfully acidic bat
freely bustling earthquake
hastily corrupt cake
jealously poised harmony
lively golden lizard
mechanically foolish mitten
successfully spherical scooter
upbeat salty soldier
WordGenerator myWordGenerator = new WordGenerator(seed:123456);
myWordGenerator.SetSeed(654321);
myWordGenerator.SetRandom(new Random(654321));
string word = myWordGenerator.GetWord(PartOfSpeech.noun);