Ejemplo n.º 1
0
        public JaneAusten()
        {
            Adjectives         = new Adjective(LearnAdjectives());
            Nouns              = new Noun(LearnNouns());
            Names              = new Name(GenerateNames());
            Verbs              = new Verb(LearnVerbs());
            Pronouns           = new Pronoun(LearnPronouns());
            SentenceStructures = GenerateSentenceStructures();

            RandomInspirations = new Random();
        }
Ejemplo n.º 2
0
    public Voice()
    {
        structure = new SentenceStructure();

        positivity = Random.Range(0f, 1f);
        assertion  = Random.Range(0f, 1f);
        verbosity  = Random.Range(0f, 1f);

        directAddress = Random.Range(0, VoiceDatabase.directAddresses["Wyatt"].Length);
        fullAddress   = Random.Range(0, 2) == 0 ? true : false;
        SetAddress();

        InitVocab();
    }
Ejemplo n.º 3
0
        private SentenceStructure GenerateSentenceStructures()
        {
            HashSet <List <string> > sentenceStructures = new HashSet <List <string> >();

            sentenceStructures.Add(new List <string>()
            {
                "(name1)", "(verbPast)", "the", "(nounPlural)", "with ", "(adjective)", "(noun)", ",", "(verbActive)", "at the", "(adjective)", "(noun)", "."
            });
            sentenceStructures.Add(new List <string>()
            {
                "if", "(name1)", ", when", "(name2)", "(verbPast)", "(her/him)1", "the", "(noun)", ",", "did not", "(verbSimple)", "it to", "(verbSimple)", "a", "(noun)", "of", "(her/his)2", ",", "(he/she)1", "had", "(verbPast)", "no", "(noun)", "at all of its ", "(nounPlural)", "."
            });
            sentenceStructures.Add(new List <string>()
            {
                "(name2)", "with", "(adjective)", "(noun)", "(verbPast)", "to be", "(verbPast)", "the", "(noun)", "of", "(her/his)1", "(noun)", "; but in", "(noun)", "."
            });
            sentenceStructures.Add(new List <string>()
            {
                "(name1)", "was", "(adjective)", "; nor did", "(name3)", "at all", "(verbSimple)", "(her/his)1", "(noun)", "by", "(her/his)3", "(noun)", "at", "(noun)", "."
            });
            sentenceStructures.Add(new List <string>()
            {
                "(name1)", "could", "(adverb)", "(verbSimple)", "that it was a", "(adjective)", "(noun)", "where that was the", "(noun)", ", and with", "(adjective)", "(noun)", "could", "(verbSimple)", "that", "(she/he)1", "(adverb)", "(verbPast)", "that was the", "(noun)", ".", "", "", "", "", "", "", "", "", "", ""
            });
            sentenceStructures.Add(new List <string>()
            {
                "(she/he)1", "was not", "(adjective)", ", however, to have the", "(noun)", "of them", "(verbPast)", "by the", "(noun)", "of the", "(noun)", "from whom they", "(verbPast)", "."
            });
            sentenceStructures.Add(new List <string>()
            {
                "At", "(noun)", "the", "(noun)", "(verbPast)", ", the", "(nounPlural)", "were", "(verbPast)", "on, the", "(nounPlural)", "(verbPast)", "within, and it was", "(verbPast)", "to be", "(adjective)", "."
            });

            SentenceStructure sentenceStructure = new SentenceStructure(sentenceStructures, Nouns, Verbs, Names, Pronouns, Adjectives);

            return(sentenceStructure);
        }