] when ;
: set-vocab-file-lines ( lines vocab name -- )
- dupd vocab-file-path [
+ dupd vocab-file-path or* [
swap [ ?delete-file ] [ swap utf8 set-file-lines ] if-empty
\ vocab-file-lines reset-memoized
- ] [ vocab-name no-vocab ] ?if-old ;
+ ] [ vocab-name no-vocab ] if ;
: vocab-resources-path ( vocab -- path/f )
"resources.txt" vocab-file-path ;