This single page webapp predicts the country closest to your values, judged by questions Q177–Q195 from the World Value Survey. Predictions are performed on the 2018-2022 wave's data using a k-nearest neighbor classifyer running locally in your browser.
Check out the demo deployed at wanlo.github.io/values-to-country/. 🚀
The webapp is built with NuxtJS, TailwindCSS, D3, ml-knn, and iso-3166.
# install dependencies
$ npm install
# serve with hot reload at localhost:3000
$ npm run dev
# build for production and launch server
$ npm run build
$ npm run start
# generate static project
$ npm run generate
For detailed explanation on how things work, check out the Nuxt documentation.