GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — bytecode-api/BytecodeApi.LanguageGenerator at master · bytecode77/bytecode-api

Expand file tree

/

BytecodeApi.LanguageGenerator

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

BytecodeApi.LanguageGenerator

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
.nuget
.nuget
 
 
Properties
Properties
 
 
BytecodeApi.LanguageGenerator.csproj
BytecodeApi.LanguageGenerator.csproj
 
 
ILanguageStringGenerator.cs
ILanguageStringGenerator.cs
 
 
LoremIpsumGenerator.cs
LoremIpsumGenerator.cs
 
 
NameGenerator.cs
NameGenerator.cs
 
 
README.md
README.md
 
 
SentenceGenerator.cs
SentenceGenerator.cs
 
 
TextGenerator.cs
TextGenerator.cs
 
 
WordGenerator.cs
WordGenerator.cs
 
 

README.md

Outline

BytecodeApi.LanguageGenerator

Library for arbitrary generation of words, sentences, names, and other language elements.

Examples

BytecodeApi.LanguageGenerator

WordGenerator

Generate a random word. The number of characters and the chance of two consecutive consonants or vocals can be specified in the constructor of WordGenerator.

WordGenerator wordGenerator = new()
{
	MinLength = 3,
	MaxLength = 10,
	DoubleConsonantChance = .1,
	DoubleVovelChance = .1
};

string randomWord = wordGenerator.Generate();

Output:

Ridavajoob
SentenceGenerator

Generate a random sentence. A WordGenerator is passed to this instance that generates each word. Additional settings, like how many commas are inserted, can be configured in the constructor of SentenceGenerator.

WordGenerator wordGenerator = ...;

SentenceGenerator sentenceGenerator = new()
{
	WordGenerator = wordGenerator,
	MinWords = 3,
	MaxWords = 10,
	CommaChance = .2,
	FinishPunctuation = ['.', '.', '.', '?', '!']
};

string randomSentence = sentenceGenerator.Generate();

Output:

Gawunumo refuttaazi tepaba cirumos narerr, esizibe?
TextGenerator

Generate random text with multiple sentences. A SentenceGenerator is passed to this instance that generates each sentence. Additional settings, like how many sentences are used, can be configured in the constructor of TextGenerator.

SentenceGenerator sentenceGenerator = ...;

TextGenerator textGenerator = new()
{
	SentenceGenerator = sentenceGenerator,
	MinSentenceCount = 10,
	MaxSentenceCount = 20,
	LineBreakChance = 0,
	ParagraphChance = .1
};

string randomText = textGenerator.Generate();

Output:

Ihotovewii yyewilezo bumi ahi inu agakooqqoz voperosi, uqigora ibisazut! Popime oddupulih, okis, ciinicoz orrib, naarruqqin furaveeto apezoyu kaliniicaa oju. Retokapag, ibbutakuyi efov! Irudis, zenexere ure evvuse ugecexi, ugeqeh duujufire lopeeyomuu jebevol, yofukodeem. Kas, unoow ussu sifiizid, izzucuci uwaxavici ipamabenna yuqa ecuupo. Ilacac ahhitiic ebeqodinni eedaffaha, enohotadi uyi urocava toovorriy, ceequww kiheetale! Gecc, pomezzi kiigozafo ecufucu, eppaxayaz, qubeh, anezaqam wuujujakib. Adulo ovevi, uurolaq? Xuloxil yyigij iyihisoqef uqaziwodos onihiccot, ucabb. Avihinedag ohedivol oqoxuti vop sepatez geguni iyufore zafejar, zaxom! Wwiforimug uxihun jicucu, efuli zuuvane, vufira, inisotila tazexxooqu ezeluseqos. Yufirokim uhhewes awewoy jufelife melacig alejeyivir? Umaj laroyemmu obotooniya livu ummibe, ezuw. Ejokanit nadijuxi igepujeq oki bob mefelaaxe ottenoonni etezoow? Aatokenizz, oqocikozey yeh sibizz uqapuff uxatiwokki, ucoca ummu ofeh ayaraccaa!

Effa umamidor zorerewebi upikob hekuxuj votoxugaa! Umitte qagacuzii fabaquk accijaa cewosu?

See also

  • NameGenerator to generate first/last names
  • LoremIpsumGenerator to generate text placeholders with lorem ipsum paragraphs.

Changelog

5.0.0 (15.02.2026)

  • change: Targeting .NET 10.0

4.0.0 (15.09.2025)

  • change: Targeting .NET 9.0

3.0.0 (08.09.2023)

  • Initial release
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.