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