Split the transition labels into letters.
Preconditions:
Postconditions:
See also:
import vcsn
ctx = vcsn.context("law_char, b")
ctx
a = ctx.expression("(cat)+(dog)*").standard()
a
al = a.letterize()
al
al.context()
Note that here, the transitions are no longer words (law) but instead letters (nullableset<lal_char>).
ctx_t = vcsn.context("lat<law_char, law_char, lal_char>, z")
b = ctx_t.expression(r"(<2>'cat,dog,c')*+'\e,b,d'").derived_term()
b
bl = b.letterize()
bl
bl.context()
Here, all three labelsets have been converted to letters or the empty word (nullableset<lal_char>
).