/// <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); } }
/// <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); } } }
private void AssignRoleFor(NounBuilder noun) { AddHead(noun); //if (noun.NumberSpecified) Number = noun.Number; }
/// <summary>Return true if this noun is allowed to form a compound noun with <paramref name="anotherNoun"/></summary> private bool CanBeCompoundedWith(NounBuilder anotherNoun) => !IsPartOfANominalModifier;