private PhraseNode GetNounPhrase(PhraseNode parsedName, int startIndex)
{
PhraseNode phrase = parsedName.GetNewEmpty();
for (int i = startIndex; i < parsedName.Size(); i++)
{
PartOfSpeechTag tag = parsedName[i].Tag;
if (tag == PartOfSpeechTag.Noun
|| tag == PartOfSpeechTag.NounModifier
|| tag == PartOfSpeechTag.Determiner
|| tag == PartOfSpeechTag.Pronoun
|| tag == PartOfSpeechTag.NounIgnorable
|| tag == PartOfSpeechTag.Digit
|| tag == PartOfSpeechTag.Preamble)
{
phrase.Add(parsedName[i]);
}
else if (tag == PartOfSpeechTag.Preposition)
{
break;
}
}
return phrase;
}