a device used to type words onto paper