Text this: Correlation length in a generalized two-dimensional XY model