private List <ThesaurusItem> parseDataObjectComponents(SpeechComponent component)
        {
            List <ThesaurusItem> values = new List <ThesaurusItem>();

            if (component != null)
            {
                values.AddRange(parseComponentItems(component.syn, component.SpeechPart, WordRel.Synonym));
                values.AddRange(parseComponentItems(component.sim, component.SpeechPart, WordRel.Similar));
                values.AddRange(parseComponentItems(component.rel, component.SpeechPart, WordRel.Related));
                values.AddRange(parseComponentItems(component.ant, component.SpeechPart, WordRel.Antonym));
            }

            return(values);
        }
Example #2
0
 public void SetUp()
 {
     _component = (SpeechComponent)_factory.Person(new Coord()).GetComponent <SpeechComponent>();
     _answer    = _component.GetDetails();
 }