Nasty.Language.Catalan.SentenceParser (Nasty v0.3.0)

View Source

Sentence and clause parser for Catalan.

Builds Clause and Sentence structures from phrases with Catalan-specific patterns.

Catalan-Specific Features

  • Flexible word order: SVO default, but VSO and VOS common
  • Pro-drop: subject pronouns often omitted
  • Subordination: que, perquè, quan, si, encara, mentre

Summary

Functions

parse_clause(tokens)

parse_sentence(tokens)

parse_sentences(tokens, opts \\ [])

@spec parse_sentences(
  [Nasty.AST.Token.t()],
  keyword()
) :: {:ok, [Nasty.AST.Sentence.t()]} | {:error, term()}

parse_sentences_rule_based(tokens)