예제 #1
0
 private static Conjugation GetConjugation(ConjugationLine entry, Language language)
 {
     Word verb = GetSolution(entry, language);
     FirstTense firstTense = GetFirstTense(entry.FirstTense);
     SecondTense secondTense = GetSecondTense(entry.SecondTense);
     Person person = GetPerson(entry.Person);
     return new Conjugation(verb, firstTense, secondTense, person);
 }
예제 #2
0
        private static Conjugation GetConjugation(ConjugationLine entry)
        {
            Word        verb        = GetSolution(entry);
            FirstTense  firstTense  = GetFirstTense(entry.FirstTense);
            SecondTense secondTense = GetSecondTense(entry.SecondTense);
            Person      person      = GetPerson(entry.Person);

            return(new Conjugation(verb, firstTense, secondTense, person));
        }
예제 #3
0
        private static Word GetSolution(ConjugationLine entry)
        {
            foreach (Word solution in ANALYZER.Analyze(entry.Verb))
            {
                if (solution.ToString() == entry.Solution)
                {
                    return(solution);
                }
            }

            throw new Exception("Çekimli Fiil için çözüm bulunamadı");
        }
예제 #4
0
        private static Word GetSolution(ConjugationLine entry, Language language)
        {
            foreach (Word solution in language.Analyze(entry.Verb))
            {
                if (solution.ToString() == entry.Solution)
                {
                    return solution;
                }
            }

            throw new Exception("Çekimli Fiil için çözüm bulunamadı");
        }