sentence: In particular , many tales were originally folk stories from the Caliphate era , while others , especially the frame story , are most probably drawn from the Pahlavi Persian work Hazār Afsān ( Persian : هزار افسان , lit .