NPetrovich.Inflection.CaseInflection.FindRulesFor C# (CSharp) Method

FindRulesFor() private method

private FindRulesFor ( string name, RuleSet ruleSet, bool>.Dictionary features ) : Rule
name string
ruleSet NPetrovich.Rules.Data.RuleSet
features bool>.Dictionary
return NPetrovich.Rules.Data.Rule
        private Rule FindRulesFor(string name, RuleSet ruleSet, Dictionary<string, bool> features)
        {
            HashSet<string> tags = ExtractTags(features);

            Rule rule;
            if (ruleSet.Exceptions != null)
            {
                rule = Find(name, ruleSet.Exceptions, true, tags);
                if (rule != null)
                    return rule;
            }

            return Find(name, ruleSet.Suffixes, false, tags);
        }