Learn new words in Welsh and practice your vocabulary. You will be shown random word. Your task is to provide their synonyms, i.e. different words with the same meaning. The words are divided into four Welsh language levels. Please use the slider to change the level. There are two game modes: practice and test. Please use the radio buttons to change the mode.
- Click on HINT to see synonym suggestions from the Welsh WordNet.
- Click on TRANSLATE to access an English translation.
- Click on SUBMIT to submit your answers.
- Click on NEXT to move onto the next round.
- Click on EXIT to end the game session.
The application is written using MEAN stack (http://meanjs.org/)
Demo is accessible on https://datainnovation.cardiff.ac.uk/welshsynonyms/
The following will install the npm packages according to the configuration:
Node.js version 16 or lower is required to run the application.
Run npm start
for a dev frontend server and node server.js
for backend server from separate consoles.
Navigate to http://localhost:4202/
.
The app will automatically reload if you change any of the source files.
The following will build the production version of the applicaion:
The following will run the production version of the application:
MongoDB is used to store and access the Welsh WordNet.
There are two mongodb databases used, both are provided in mongodb
folder, and should be initiliased before the application is running.
wordNetWelsh
database contains the Welsh WordNet.
welshWordsLists
database contains lists of Welsh Words for the game.
You can initialise those databases using the following commands:
mongorestore --db wordNetWelsh <path_to_wordNetWelsh_BSON>
mongorestore --db welshWordsLists <path_to_welshWordsLists_BSON>
To make use of the mongoDB connection, you need to provide mongoDB user settings in .env
file in the source directory.
The variables required:
WORDNET_USER
: Name of a user with access towordNetWelsh
database.WORDNET_PASSWORD
: Password of a user with access towordNetWelsh
database.WELSHWORDSLISTS_USER
: Name of a user with access towelshWordsLists
database.WELSHWORDSLISTS_PASSWORD
: Password of a user with access towelshWordsLists
database.
Difficulty settings are enabled by default, and words are acquired from lists of Welsh words based on difficulty.
To disable the difficulty settings and acquire the words from a predefined list of Welsh words, several files need to be adjusted:
src/app/app.component.html
: comment code marked by "DIFFICULTY SETTING SLIDER"src/app/game/game.component.html
: comment code marked by "DIFFICULTY SETTING SLIDER"src/app/game-advanced/game-advanced.component.html
: comment code marked by "DIFFICULTY SETTING SLIDER"src/app/game/game.component.ts/
: comment function marked by "//WITH DIFFICULTY SETTING" and uncomment function marked by "//WITHOUT DIFFICULTY SETTING"src/app/game-advanced/game-advanced.component.ts/
: comment function marked by "//WITH DIFFICULTY SETTING" and uncomment function marked by "//WITHOUT DIFFICULTY SETTING"
- Maxim Filimonov
- Irena Spasić
If you have any questions, feel free to contact the authors on GitHub