Text this: Automatically determines the length of the dual system to a bivalent system