Exemplo n.º 1
0
 internal WordRelation(WordRel Relationship)
 {
     this.Relationship = Relationship;
 }
 public ThesaurusItem(String word, SpeechPart speechPart, WordRel wordRel)
 {
     this.Word         = textInfo.ToTitleCase(word);
     this.SpeechPart   = speechPart;
     this.WordRelation = wordRel;
 }
        private List <ThesaurusItem> parseComponentItems(String[] words, SpeechPart speechPart, WordRel wordRel)
        {
            List <ThesaurusItem> values = new List <ThesaurusItem>();

            if (words != null)
            {
                foreach (String word in words)
                {
                    values.Add(new ThesaurusItem(word, speechPart, wordRel));
                }
            }

            return(values);
        }