     [ "platforms.txt" ] dip scaffold-metadata ;
 
 : scaffold-vocab ( vocab-root string -- )
-    {
+    check-vocab-exists {
         [ scaffold-directory ]
         [ scaffold-main ]
         [ nip require ]


ERROR: not-a-vocab-root string ;

<PRIVATE

: vocab-root? ( string -- ? )


: check-vocab-root/vocab ( vocab-root string -- vocab-root string )
    [ check-root ] [ check-vocab-name ] bi* ;

: check-vocab-exists ( string -- string )
    dup vocab-exists? [ vocab-must-not-exist ] when ;

: replace-vocab-separators ( vocab -- path )
    path-separator first CHAR: . associate substitute ; inline
