Nasty.AST.NounPhrase (Nasty v0.3.0)

View Source

Noun Phrase: A phrase headed by a noun.

Structure: (Determiner) (Modifiers) Head (PostModifiers)

Examples

  • "the cat" - determiner + head
  • "the quick brown fox" - determiner + modifiers + head
  • "the cat on the mat" - determiner + head + PP postmodifier
  • "the cat that sat" - determiner + head + relative clause

Summary

Types

t()

@type t() :: %Nasty.AST.NounPhrase{
  determiner: Nasty.AST.Token.t() | nil,
  entity: Nasty.AST.Semantic.Entity.t() | nil,
  head: Nasty.AST.Token.t(),
  language: Nasty.AST.Node.language(),
  modifiers: [Nasty.AST.Token.t() | Nasty.AST.AdjectivalPhrase.t()],
  post_modifiers: [Nasty.AST.PrepositionalPhrase.t() | Nasty.AST.Clause.t()],
  span: Nasty.AST.Node.span()
}