Esempio n. 1
0
        public static string GenerateBiography(string Name, Gender Gender)
        {
            var hobbyTemplates = TextGenerator.GetAtoms(ContentPaths.Text.Templates.hobby);
            var hobby          = TextGenerator.GenerateRandom(new List <string>(),
                                                              hobbyTemplates[MathFunctions.Random.Next(hobbyTemplates.Count)].ToArray());
            var biographyTemplates = TextGenerator.GetAtoms(ContentPaths.Text.Templates.biography);

            return(TextGenerator.ToSentenceCase(TextGenerator.GenerateRandom(
                                                    new List <string> {
                Name, Gender.ToString(), hobby, Mating.Pronoun(Gender), Mating.Posessive(Gender)
            },
                                                    biographyTemplates[MathFunctions.Random.Next(biographyTemplates.Count)].ToArray())));
        }