Word

Contents

Word#

class discopy.grammar.cfg.Word(name, cod, dom=monoidal.Ty(), **params)[source]#

Bases: discopy.grammar.thue.Word, Rule

A word is a leaf in a context-free tree.

Parameters:
  • name (str) – The name of the word.

  • cod (C0) – The grammatical type of the word.

  • dom (C0) – An optional domain for the word, empty by default.