# Example 1
x <- "mec3-ki-aj2-ga-ce-er ce du"
expr <- split_sumerian(x)$signs
type <- c("S", "S", "Sx->A", "xS->A", "S", "Sx->S", "S", "Sx->V")
grammatical_structure(x, type, expr)
grammatical_structure(as.cuneiform(x), type, as.cuneiform(expr))
# Example 2: An example with a proper name and verb prefixes
x <- "an-en-ki-en-gan-ig-la"
expr <- c("an-en-ki", "en", "gan", "ig", "la")
type <- c("S", "S", "xV->V", "xV->V", "Vt")
grammatical_structure(as.cuneiform(x), type, as.cuneiform(expr))
Run the code above in your browser using DataLab