Yesterday I needed to write a little prototype of a site that would allow users to spell check their documents. The idea being that we want to add new dictionaries to the site, demo it to the right owners and thus secure an open license for their word lists. This is for an association interested in providing tech support for minority languages called Korero.
I used the Text::Hunspell library and the Hunspell dictionaries available from Debian. Yay!
Oddmuse is my Perl 5 project and has been since 2003. At the time, all we needed was a CGI script. These days, however, people often seem to use their own web servers that are part of their application. And so I decided to take a look at Mojolicious. And it was simple to use and easy to get started. I like it!
More info on Github.
Plans:
1. add mobile support, the CSS currently depends on the `:hover` attribute
2. better menu placement, the CSS currently just uses `position: absolute` which places the menu at the left edge (this might require Javascript)
3. the menu should replace the text in question
4. a JSON interface to allow other apps to do thrir spell checking here
At the same time, we’re working on a Hunspell dictionary for one of the many Rumantsch idioms in Switzerland.
#Perl #Software