class discopy.grammar.categorial.Word(name, cod, dom=None, **params)[source]#

Bases: Word, Box

A categorial word is a rule with a name, a grammatical type as cod and an optional domain dom.

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

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

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