Exemple #1
0
        public static string[] GetConjugations(string verb)
        {
            if (verb == "falloir")
            {
                return(new[] { "", "", "fallait", "", "", "" });
            }

            if (verb == "pleuvoir")
            {
                return(new[] { "", "", "pleuvait", "", "", "pleuvaient" });
            }

            if (verb == "seoir")
            {
                return(new[] { "", "", "seyait", "", "", "seyaient" });
            }

            if (verb == "messeoir")
            {
                return(new[] { "", "", "messeyait", "", "", "messeyaient" });
            }

            if (verb == "chaloir")
            {
                return(new string[6]);
            }

            var present  = PresentConjugator.GetConjugations(verb);
            var nousForm = present[3];
            var stem     = nousForm.TrimEnd("ons");

            return(Endings.AddEndings(stem));
        }
 public static string[] GetConjugations(string verb)
 {
     string[] present = PresentConjugator.GetConjugations(verb);
     return(new[]
     {
         null,
         present[1].TrimEnd('s'), // tu
         null,
         present[3],              // nous
         present[4],              // vous
         null
     });
 }