/// <summary> /// Returns a string representation of the PronounPhrase /// </summary> /// <returns>A string representation of the PronounPhrase</returns> public override string ToString() { var result = base.ToString() + (RefersTo.EmptyIfNull().Any() ? "\nreferring to -> " + RefersTo.Text : string.Empty); result += AliasLookup.GetDefinedAliases(RefersTo ?? this as IEntity).Any() ? "\nClassified as: " + AliasLookup.GetDefinedAliases(RefersTo as IEntity ?? this).Format() : string.Empty; return(result); }
/// <summary> /// Returns a string representation of the Pronoun. /// </summary> /// <returns>A string representation of the Pronoun.</returns> public override string ToString() => GetType().Name + " \"" + Text + "\"" + ( VerboseOutput ? " " + PronounKind + ( RefersTo.EmptyIfNull().Any() ? " referring to -> " + RefersTo.Text : string.Empty ) : string.Empty );