Text this: Dynamic flexible constraint satisfaction and its application to AI planning /