Text this: TD algorithm based on double-layer fuzzy partitioning