RandomWordGenerator 0.9.2

Suggested Alternatives

CrypticWizard.RandomWordGenerator

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package RandomWordGenerator --version 0.9.2
NuGet\Install-Package RandomWordGenerator -Version 0.9.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="RandomWordGenerator" Version="0.9.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RandomWordGenerator --version 0.9.2
#r "nuget: RandomWordGenerator, 0.9.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install RandomWordGenerator as a Cake Addin
#addin nuget:?package=RandomWordGenerator&version=0.9.2

// Install RandomWordGenerator as a Cake Tool
#tool nuget:?package=RandomWordGenerator&version=0.9.2

Description

  • A random word generator for .NET and .NET Core
  • Useful for:
    • Username generation
    • Random word stories

Tests

.NET 5.0

.NET Core 3.1

Usage

Install Package:
dotnet add package RandomWordGenerator
<PackageReference Include="RandomWordGenerator" Version="0.9.2" />
Include Package:
using RandomWordGenerator; //required
using static RandomWordGenerator.WordGenerator; //for brevity, not required
GetWord( )
WordGenerator myWordGenerator = new WordGenerator();
string word = myWordGenerator.GetWord(PartOfSpeech.noun);
Console.WriteLine(word);
jewel
GetWords( )
WordGenerator myWordGenerator = new WordGenerator();
List<string> advs = myWordGenerator.GetWords(PartOfSpeech.adv, 5);

foreach(string s in advs)
{
    Console.WriteLine(s);
}
abnormally
boastfully
daintily
shakily
surprisingly
IsWord ()
WordGenerator myWordGenerator = new WordGenerator();
bool isWord = myWordGenerator.IsWord("exemplary");
Console.WriteLine(isWord);
true
IsPartOfSpeech( )
WordGenerator myWordGenerator = new WordGenerator();
bool isPartOfSpeech = myWordGenerator.IsPartOfSpeech("ball", PartOfSpeech.noun);
Console.WriteLine(isPartOfSpeech);
true
GetPatterns( )
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);

foreach(string s in patterns)
{
    Console.WriteLine(s);
}
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

Features

Recently Added
  • v0.9.2 - IsWord()
Planned Features
  • Other languages are not planned but can be added as .txt files in a folder of the language abreviation
    • ES
    • FR
    • etc.

Tools

License

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 3.1

    • No dependencies.
  • net5.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated

Added IsWord() function