Beispiel #1
0
 /// <summary>If necessary, reconfigure the appropriate things so this and <paramref name="aNoun"/> become components of a compound word</summary>
 internal void FormCompoundWith(NounBuilder aNoun)
 {
     if (!IsCompoundedWith(aNoun))
     {
         MoveTo(aNoun.AsCompoundNoun(), ParentElementBuilder.ChildRole.Component);
     }
 }
Beispiel #2
0
 /// <summary>If necessary, reconfigure the appropriate things so this and <paramref name="anotherNoun"/> become components of a compound word</summary>
 internal void FormCompoundWith(NounBuilder anotherNoun)
 {
     if (!IsCompoundedWith(anotherNoun) && CanBeCompoundedWith(anotherNoun))
     {
         if (anotherNoun.IsPartOfACompoundNoun)
         {
             MoveTo(anotherNoun.Parent, ParentElementBuilder.ChildRole.Component);
         }
         else
         {
             MoveTo(anotherNoun.AsCompoundNoun(), ParentElementBuilder.ChildRole.Component);
         }
     }
 }
Beispiel #3
0
 private void AssignRoleFor(NounBuilder noun)
 {
     AddHead(noun);
     //if (noun.NumberSpecified) Number = noun.Number;
 }
Beispiel #4
0
 /// <summary>Return true if this noun is allowed to form a compound noun with <paramref name="anotherNoun"/></summary>
 private bool CanBeCompoundedWith(NounBuilder anotherNoun) => !IsPartOfANominalModifier;