You could try constucting a generic list of words and then using the contains method in the databound context.
List<string> words = new List<string>();
foreach(ListItem li in relatedWords.Items)
{
words.AddRange(li.ToString().Split(new char[]{','}, StringSplitOptions.RemoveEmptyEntries));
}
words.Contains("word");