Word#
- class discopy.grammar.thue.Word(name, cod, dom=None, **params)[source]#
Bases:
Rule
A word is a rule with a
name
, a grammatical type ascod
and an optional domaindom
.- Parameters:
name (str) – The name of the word.
cod (T) – The grammatical type of the word.
dom (T) – An optional domain for the word, empty by default.