using System.Collections.Generic;
public class PhoneticSound
public PhoneticSound(string written, Language language)
language.PhoneticList.Add(this);
Random Rand = new Random();
public List<PhoneticSound> PhoneticList = new List<PhoneticSound>();
public string GenerateWord(int length)
for (int n = 0; n < length; n++)
int r = Rand.Next(PhoneticList.Count);
returnValue += PhoneticList[r].Written;
return FirstLetterToUpper(returnValue);
public string FirstLetterToUpper(string str)
return char.ToUpper(str[0]) + str.Substring(1);
public string Descriptor = "person";
public string Occupation = "vagrant";
public Person(Language language, int age, int gender, string occupation)
Name = language.GenerateWord(2);
if (Occupation == "king"){
else if (Occupation == "lord"){
else if (Occupation == "monk"){
talkString += "Hi, my name is ";
talkString += " and I am a ";
talkString += " year old ";
talkString += Descriptor;
talkString += " I am a ";
talkString += Occupation;
Console.WriteLine(talkString);
public static void Main()
List<string> Occupations = new List<string>{"farmer","guard","merchant","bard","serf","king","lord","monk"};
Random Rand = new Random();
Language Dolfian = new Language();
PhoneticSound oar = new PhoneticSound("car", Dolfian);
PhoneticSound toe = new PhoneticSound("to", Dolfian);
PhoneticSound bin = new PhoneticSound("be", Dolfian);
PhoneticSound gar = new PhoneticSound("ger", Dolfian);
PhoneticSound yan = new PhoneticSound("pan", Dolfian);
PhoneticSound viss = new PhoneticSound("vis", Dolfian);
PhoneticSound ner = new PhoneticSound("ner", Dolfian);
PhoneticSound oh = new PhoneticSound("o", Dolfian);
PhoneticSound ing = new PhoneticSound("ing", Dolfian);
PhoneticSound ton = new PhoneticSound("ton", Dolfian);
PhoneticSound sher = new PhoneticSound("sher", Dolfian);
PhoneticSound uck = new PhoneticSound("uck", Dolfian);
for (int n = 0; n < 5; n++)
Person person = new Person(Dolfian, Rand.Next(5, 100), Rand.Next(2), Occupations[Rand.Next(Occupations.Count)]);