예제 #1
0
        private void BecomeNounPhrase()
        {
            NounPhraseBuilder nounPhrase = new NounPhraseBuilder();

            Parent?.ReplaceChild(this, nounPhrase);
            MoveChildrenTo(nounPhrase);
        }
예제 #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);
        }
예제 #3
0
 private void AssignRoleFor(NounPhraseBuilder phrase)
 {
     if (phrase.PossessiveSpecified && phrase.Possessive)
     {
         SetSpecifier(phrase);
     }
     else
     {
         AddHead(phrase);
     }
 }