Text this: Foundations of the triplet unravelling algorithm