Exemple #1
0
        public TenseArray(String spanishInfinitive)
        {
            String stem   = spanishInfinitive.Substring(0, spanishInfinitive.Length - 2);
            String ending = spanishInfinitive.Substring(spanishInfinitive.Length - 2, 2);

            TenseArray endings = new TenseArray();

            switch (ending)
            {
            case "ar":
                endings = new TenseArray("o", "as", "a", "amos", "an", "an");
                break;

            case "er":
                endings = new TenseArray("o", "es", "e", "emos", "en", "en");
                break;

            case "ir":
                endings = new TenseArray("o", "es", "e", "imos", "en", "en");
                break;
            }

            this.firstSingular  = stem + endings.firstSingular;
            this.secondSingular = stem + endings.secondSingular;
            this.thirdSingular  = stem + endings.thirdSingular;
            this.firstPlural    = stem + endings.firstPlural;
            this.secondPlural   = stem + endings.secondPlural;
            this.thirdPlural    = stem + endings.thirdPlural;
        }
Exemple #2
0
 public Verb(Verb verb)
 {
     this.randomtag           = verb.randomtag;
     this.englishForms        = verb.englishForms;
     this.englishInfinitive   = verb.englishInfinitive;
     this.englishParticiple   = verb.englishParticiple;
     this.spanishForms        = verb.spanishForms;
     this.spanishInfinitive   = verb.spanishInfinitive;
     this.spanishParticiple   = verb.spanishParticiple;
     this.spanishCommandForms = verb.spanishCommandForms;
     this.transitivity        = verb.transitivity;
 }
Exemple #3
0
 public Verb(int number)
 {
     this.randomtag           = DateTime.UtcNow;
     this.englishForms        = new TenseArray("", "", "", "", "", "");
     this.englishInfinitive   = "Verb" + number.ToString();
     this.englishParticiple   = "";
     this.spanishForms        = new TenseArray("", "", "", "", "", "");
     this.spanishInfinitive   = "Verbo" + number.ToString();
     this.spanishParticiple   = "";
     this.spanishCommandForms = new CommandForms("", "", "", "", "");
     this.transitivity        = Transitivity.ditransitive;
 }
Exemple #4
0
 public Verb(TenseArray englishForms, String englishInfinitive, String englishParticiple,
             TenseArray spanishForms, String spanishInfinitive, String spanishParticiple,
             CommandForms spanishCommandForms, Transitivity transitivity)
 {
     this.randomtag           = DateTime.UtcNow;
     this.englishForms        = englishForms;
     this.englishInfinitive   = englishInfinitive;
     this.englishParticiple   = englishParticiple;
     this.spanishForms        = spanishForms;
     this.spanishInfinitive   = spanishInfinitive;
     this.spanishParticiple   = spanishParticiple;
     this.spanishCommandForms = spanishCommandForms;
     this.transitivity        = transitivity;
 }