Text this: The private archives of Ugarit: a functional analysis