Email Record: Analytical learning and term-rewriting systems /