Testing and composing strings

Published

June 4, 2024

Composing strings

Several functions simplify composing a string.

Example: compose a perfect active verb form from a stem and ending:

using PolytonicGreek
ortho = literaryGreek()
s = strcat(ortho, "γραφ", "ται")
"γραπται"
reduped = reduplicate(s, ortho)
"γεγραπται"
accentword(reduped, :RECESSIVE, ortho)
"γέγραπται"

Example: composte a pluperfect active verb form from a stem and ending:

s = strcat(ortho, "γραφ","ει")
"γραφει"
reduped = reduplicate(s, ortho)
"γεγραφει"
withaug = augment(reduped, ortho)
"ἐγεγραφει"
accentword(withaug, :RECESSIVE, ortho)
"ἐγεγράφει"

Testing strings

vocalic, consonantal, accented