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); }
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)); }
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ı"); }
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ı"); }