Text this: Classifying the complexity of constraints using finite algebras