if creating a group node programmatically, spaces_og sets the purl path to nodetype-nid

    if (isset($node->purl) && is_array($node->purl) && !empty($node->purl['value'])) {
      $modifier['value'] = $node->purl['value'];
      purl_save($modifier);
    }
    else if (empty($node->purl)) {
      $modifier['value'] = "{$node->type}-{$node->nid}";
      purl_save($modifier);
    }

It would be great to be able to make this configurable, i.e. like pathauto or even synchronised to the pathauto value.