public function generateGroup()
{
// Get the directory path
$path = ltrim(str_replace(getcwd(), '', $this->getStoryFilename()), DIRECTORY_SEPARATOR);
$directories = explode(DIRECTORY_SEPARATOR, $path);
// Remove the base directory at the beginning and story file at the end of the path
$groupName = array_splice($directories, 1, count($directories) - 2);
$this->setGroup($groupName);
return $this;
}