private HashSet<string> ExtractTags(Dictionary<string, bool> features) { return new HashSet<string>(features.Where(f => f.Value).Select(f => f.Key)); }