{"id":28144479,"url":"https://github.com/cryptic-wizard/random-word-generator","last_synced_at":"2025-05-14T22:12:36.139Z","repository":{"id":43675582,"uuid":"383663335","full_name":"cryptic-wizard/random-word-generator","owner":"cryptic-wizard","description":"A nuget package to generate random words","archived":false,"fork":false,"pushed_at":"2022-08-06T16:27:54.000Z","size":125,"stargazers_count":14,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-22T17:21:33.396Z","etag":null,"topics":["dotnet","dotnet-core","gherkin","nuget","specflow"],"latest_commit_sha":null,"homepage":"https://www.nuget.org/packages/CrypticWizard.RandomWordGenerator/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cryptic-wizard.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-07-07T03:33:41.000Z","updated_at":"2025-04-12T12:14:01.000Z","dependencies_parsed_at":"2022-08-22T16:01:26.995Z","dependency_job_id":null,"html_url":"https://github.com/cryptic-wizard/random-word-generator","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptic-wizard%2Frandom-word-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptic-wizard%2Frandom-word-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptic-wizard%2Frandom-word-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptic-wizard%2Frandom-word-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cryptic-wizard","download_url":"https://codeload.github.com/cryptic-wizard/random-word-generator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254235712,"owners_count":22036966,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dotnet","dotnet-core","gherkin","nuget","specflow"],"created_at":"2025-05-14T22:12:34.918Z","updated_at":"2025-05-14T22:12:36.132Z","avatar_url":"https://github.com/cryptic-wizard.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# random-word-generator\n[![nuget](https://img.shields.io/badge/nuget-v0.9.5-blue)](https://www.nuget.org/packages/CrypticWizard.RandomWordGenerator)\n## Description\n* A random word generator for .NET and .NET Core\n* Useful for:\n  * Username generation\n  * Random word stories\n## Tests\n[![.NET 6.0](https://github.com/cryptic-wizard/random-word-generator/actions/workflows/dotnet.yml/badge.svg)](https://github.com/cryptic-wizard/random-word-generator/actions/workflows/dotnet.yml)\n\n[![.NET Core 3.1](https://github.com/cryptic-wizard/random-word-generator/actions/workflows/dotnetcore.yml/badge.svg)](https://github.com/cryptic-wizard/random-word-generator/actions/workflows/dotnetcore.yml)\n\n[![Nuget Publish](https://github.com/cryptic-wizard/random-word-generator/actions/workflows/nugetpublish.yml/badge.svg)](https://github.com/cryptic-wizard/random-word-generator/actions/workflows/nugetpublish.yml)\n\n## Usage\n### Install Package:\n```Text\ndotnet add package CrypticWizard.RandomWordGenerator\n```\n```xml\n\u003cPackageReference Include=\"CrypticWizard.RandomWordGenerator\" Version=\"0.9.5\"/\u003e\n```\n\n### Include Package:\n```C#\nusing CrypticWizard.RandomWordGenerator;\nusing static CrypticWizard.RandomWordGenerator.WordGenerator; //for brevity, not required\n```\n\n### GetWord( )\n```C#\nWordGenerator myWordGenerator = new WordGenerator();\nstring word = myWordGenerator.GetWord(PartOfSpeech.noun);\n```\n```Text\njewel\n```\n\n### GetWords( )\n```C#\nWordGenerator myWordGenerator = new WordGenerator();\nList\u003cstring\u003e advs = myWordGenerator.GetWords(PartOfSpeech.adv, 5);\n```\n```Text\nabnormally\nboastfully\ndaintily\nshakily\nsurprisingly\n```\n\n### IsWord ()\n```C#\nWordGenerator myWordGenerator = new WordGenerator();\nbool isWord = myWordGenerator.IsWord(\"exemplary\");\n```\n```Text\ntrue\n```\n\n### IsPartOfSpeech( )\n```C#\nWordGenerator myWordGenerator = new WordGenerator();\nbool isPartOfSpeech = myWordGenerator.IsPartOfSpeech(\"ball\", PartOfSpeech.noun);\n```\n```Text\ntrue\n```\n\n### GetPatterns( )\n```C#\nWordGenerator myWordGenerator = new WordGenerator();\n\nList\u003cPartOfSpeech\u003e pattern = new List\u003cPartOfSpeech\u003e();\npattern.Add(PartOfSpeech.adv);\npattern.Add(PartOfSpeech.adj);\npattern.Add(PartOfSpeech.noun);\n\nList\u003cstring\u003e patterns = myWordGenerator.GetPatterns(pattern, ' ', 10);\n```\n```Text\nclearly calm bandana\ndoubtfully majestic pizza\nfaithfully acidic bat\nfreely bustling earthquake\nhastily corrupt cake\njealously poised harmony\nlively golden lizard\nmechanically foolish mitten\nsuccessfully spherical scooter\nupbeat salty soldier\n```\n\n### SetSeed( ) - thanks [michaldivis](https://github.com/cryptic-wizard/random-word-generator/pull/27)!\n```C#\nWordGenerator myWordGenerator = new WordGenerator(seed:123456);\nmyWordGenerator.SetSeed(654321);\n```\n\n### SetRandom( )\n```C#\nmyWordGenerator.SetRandom(new Random(654321));\nstring word = myWordGenerator.GetWord(PartOfSpeech.noun);\n```\n\n## Features\n### Recently Added\n* v0.9.4 - SetSeed()\n* v0.9.4 - SetRandom()\n* v0.9.3 - package prefix\n* v0.9.2 - IsWord()\n#### Planned Features\n* Other languages are not planned but can be added as .txt files in a folder of the language abreviation\n  * ES\n  * FR\n  * etc.\n\n## Tools\n* [Visual Studio](https://visualstudio.microsoft.com/vs/)\n* [NUnit 3](https://nunit.org/)\n* [SpecFlow](https://specflow.org/tools/specflow/)\n* [SpecFlow+ LivingDoc](https://specflow.org/tools/living-doc/)\n* [Run SpecFlow Tests](https://github.com/marketplace/actions/run-specflow-tests)\n## License\n* [MIT License](https://github.com/cryptic-wizard/random-word-generator/blob/main/LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptic-wizard%2Frandom-word-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcryptic-wizard%2Frandom-word-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptic-wizard%2Frandom-word-generator/lists"}