An attempt to remake the game pédantix / pedantle from @enigmathix
Random wiki page, blank words, user types word, if word in text, reveal, if not show semantic similarity.
If title revealed 🏆
Multiplayer (create group and invite friends / colleagues)
pedantox.webm
Download the latest release (or build it yourself)
You'll need a word2vec pre-trained binary
Launch the server:
./pedantox -b <mandatory_word2vec_binary> [-p <port>] [-l <lang>] [-v <min_page_views>] [-d]
-b
to specify the word2vec pre-trained binary the semantic analyzer will use
-l
to indicate language of the app and wikipedia content (default: en)
-v
to specify the minimum views a page has to accumulate in the last month to be picked at random (default: 3500)
-d
to toggle debug mode
The debug mode exposes two endpoints :
/debug/state
returns the AppState as JSON/debug/fetch
updates manually the random wiki page
If you need a translation for another language, you just have to add yours inside translations.json
with the lang code and the app translation strings
If the lang code provided with the -l
flag does not have a translation, it will fallback to english by default.
- Clone the repo
- Install the go project dependencies
go build .
- pedantix - Original game idea
- wikipedia - Random page content
- sajari/word2vec - Go library for performing computations in word2vec binary models
- melody - 🎶 Minimalist websocket framework for Go
- lucide - Beautiful & consistent icons made by the community.
- Jean-Philippe Fauconnier - French word2vec binaries