//Bing Syn //Returns a list of synonyms of //specialWord(people, location, products). static List <string> specialSynon(string specialWord) { DataServiceQuery <GetSynonymsEntitySet> SynonymsDataServiceQuery; BingSynonyms bingSynonyms = new BingSynonyms(); List <string> synonyms = new List <string>(); SynonymsDataServiceQuery = bingSynonyms.GetSynonyms(specialWord); foreach (GetSynonymsEntitySet entity in SynonymsDataServiceQuery) { synonyms.Add(entity.Synonym); } return(synonyms); }
//Bing Syn //Returns a list of synonyms of //specialWord(people, location, products). static List<string> specialSynon(string specialWord) { DataServiceQuery<GetSynonymsEntitySet> SynonymsDataServiceQuery; BingSynonyms bingSynonyms = new BingSynonyms(); List<string> synonyms = new List<string>(); SynonymsDataServiceQuery = bingSynonyms.GetSynonyms(specialWord); foreach (GetSynonymsEntitySet entity in SynonymsDataServiceQuery) { synonyms.Add(entity.Synonym); } return synonyms; }