Identifying genre by previewing a text