private static XElement GetVerb(IEnumerable <XElement> sequence, Language language) { const string VERB_MI = "A"; const DictionaryTypeVerbs dictionaryType = DictionaryTypeVerbs.VerbsOpinion2; Func <XElement, bool> verbConditionFunction = v => language.DictionaryManager.ExistsInVerbs(v.GetAttributeVALUE().ToLowerEx(), dictionaryType); var verb = sequence.FindVERBtypeDEEPR(verbConditionFunction, VERB_MI); return(verb); }
/*public bool ExistsInVerbs( string text, DictionaryType dictionaryType ) * { * return (_Verbs[ dictionaryType ].GetWeigth( ref text ).HasValue); * }*/ public bool ExistsInVerbs(string text, DictionaryTypeVerbs dictionaryType) { return(_Verbs[(DictionaryType)dictionaryType].GetWeigth(text).HasValue); }