Nasty.AST.Semantic.Reference (Nasty v0.3.0)
View SourceReference node representing anaphora and coreference.
References link pronouns and referring expressions to their antecedents, building entity chains across sentences.
Summary
Types
@type reference_type() :: :pronominal | :nominal | :proper | :demonstrative
Reference type classification.
:pronominal- Pronoun reference ("he", "it", "they"):nominal- Definite noun phrase ("the company", "the president"):proper- Proper name ("Obama", "Microsoft"):demonstrative- Demonstrative reference ("this", "that", "these")
@type t() :: %Nasty.AST.Semantic.Reference{ antecedent: Nasty.AST.NounPhrase.t() | Nasty.AST.Semantic.Entity.t() | nil, entity_chain_id: String.t() | nil, referring_expression: Nasty.AST.Token.t() | Nasty.AST.NounPhrase.t(), span: Nasty.AST.Node.span(), type: reference_type() }