Exemplo n.º 1
0
        private void BecomeNounPhrase()
        {
            NounPhraseBuilder nounPhrase = new NounPhraseBuilder();

            Parent?.ReplaceChild(this, nounPhrase);
            MoveChildrenTo(nounPhrase);
        }
Exemplo n.º 2
0
        /// <summary>Transform this CompoundNounBuilder into a NounPhraseBuilder with this as its head</summary>
        internal NounPhraseBuilder AsNounPhrase()
        {
            NounPhraseBuilder result = new NounPhraseBuilder();

            Parent.ReplaceChild(this, result);
            result.AddHead(this);
            return(result);
        }
Exemplo n.º 3
0
 private void AssignRoleFor(NounPhraseBuilder phrase)
 {
     if (phrase.PossessiveSpecified && phrase.Possessive)
     {
         SetSpecifier(phrase);
     }
     else
     {
         AddHead(phrase);
     }
 }