Example #1
0
 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;
 }
Example #2
0
        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);
        }