private static bool EvaluateCase(EvaluateParameters parameters, IEvalCase @case, out string inflectResult) { var petrovich = new Petrovich { Gender = @case.Gender }; parameters.PetrovichAccessor(petrovich, @case.Lemma); inflectResult = parameters.PetrovichInflectAccessor(petrovich, @case.Case); var isActive = inflectResult.ToLower().Equals(@case.Word.ToLower()); return isActive; }
private static bool EvaluateCase(EvaluateParameters parameters, IEvalCase @case, out string inflectResult) { var petrovich = new Petrovich { Gender = @case.Gender }; parameters.PetrovichAccessor(petrovich, @case.Lemma); inflectResult = parameters.PetrovichInflectAccessor(petrovich, @case.Case); var isActive = inflectResult.ToLower().Equals(@case.Word.ToLower()); return(isActive); }