Rapid Website Development with Mojolicious and Polymer
9 Nov 2017
My girlfriend works for BYU SA—it’s the division of BYU that’s responsible for planning and running events. As part of her job, she has to review song lyrics and make sure that the song is okay to play at BYU functions.
This can get rather irksome. Imagine reading text looking for vulgar words or phrases. Yuck. I took some time this evening to write a little website that checks MetroLyrics for any vulgar words or phrases. I have an extensible blacklist which gets initialized at server start by some phrases from FrontGate.
I coded this up with Mojolicious and Polymer Web Components. Polymer might have been a little overkill, but it saved me from writing lots of boring jQuery to set variable.
Here’s what the site looks like:
You can look at the code for the repository here.
This all took about 3 hours, the last of which was spent mostly getting some of the finer points of the user interface to work.
I’d be happy to get some contributions to my project, if anyone is feeling a little bored. ;-) Some more robust song searching would be nice, as well as better heuristics for bad phrases and whatnot.