A text-based learning robot