A project developed during the Thessaloniki Hackathon organised by the Memrise team and the Computer Science Department of the Aristotle University of Thessaloniki, in June 2013.
The target of the application is to teach Greek words to foreigns, based on the way the Greek words sound, and associating them with English words.
The main algorithm is divided in 2 parts:
- Convert the Greek word into a form using the latin letters and can be pronounced as correctly as possible.
- Finding English words based on a dictionary, that sound like the converted Greek word.
The implementation is based on Ruby1.9, PHP, JS and jQuery library.
The dependencies listed are required if you wish to run the application.
- .fuzzy-string-match --
gem install fuzzy-string-match
- .text-hyphen --
gem install text-hyphen
- .activesupport --
gem install activesupport
To run the application, after you installed all dependencies, you have to:
$ ruby1.9 main.rb
This will start the script that is waiting for Greek keywords and will translate them into Greek-lish and finally find the correct corresponding English words for it.
For the Web Interface, just open index.php
. If the page is not loading, enter a sample parameter in the URL like this:
localhost:8888/rubytest/?keyword=sample
and the application will start running.
Here is an example: "άλογο" in Greek means "horse". First the algorithm converts the string "άλογο" into "alogo" and then finds English words to acciciate it with (alone, go)