script for creating stories from phrases and fetching story phrases