public void TagPrepostions(PhraseNode phrase) { if (phrase == null) { return; } foreach (var word in phrase.GetPhrase()) { if (pos.IsPreposition(word.Text)) { word.Tag = PartOfSpeechTag.Preposition; } } }