The word2vec node package says it only works on Unix systems, so I guess I can't use it with webpack. The dataset Semantle uses is 1.6GB (and 3.5GB unzipped...) which I can't really load into the browser.
Maybe the way to go is to precompute values and limit the selection of words that can be used. Each player could have a selection of a few words to choose from, taken from a trimmed down dataset.
I feel that would defeat the point though, you're supposed to be able to think of anything. Maybe I can just remove uncommon words and it wouldn't be too noticeable.
I think even if I reduced the vocabulary size, I would still need to store the data as vectors and not precompute the actual similarity values since the vector representation probably reduces the number of dimensions a lot.