House icon

Personal projects

4, 24, 72 Seasons

This project displays the current season, solar term and pentad of the traditional East Asian calendars.

Details

Uses jQuery, Luxon for the temporal logic, and free images from Unsplash or from Wikimedia Commons.


Phenological Seasons

This project displays the current phenological season in central Europe.

Details

Uses jQuery, Luxon for the temporal logic, and free images from Unsplash or from Wikimedia Commons.


CSS Patterns

This is a (growing) compilation of css patterns which can be used as background elements.


Haiku-Remixer

This app generates a haiku (or a tanka) by randomly picking three (or five) lines with 575(77) syllables from well-known poets whose works are in the public domain.

Details

Uses jQuery, PHP, and a MySQL database.

The lines are sorted by syllable count beforehand, using Python, NLTK, CMUdict (Carnegie Mellon University Pronouncing Dictionary), and syllabes. These methods of counting syllables aren’t very accurate, however, and many improvements are necessary.

Read about the poetry corpora that were used.

Poem Hopper

This app consists of two parts: First, it displays a random poem from a poet you can specify. Then, once a poem is displayed, you can click on any word and the app displays another poem that includes this word.

Details

Uses jQuery, PHP, and a MySQL database.

Read about the poetry corpora that were used.

Synaesthetic Metaphor Generator

With this app you can generate a synæsthetic or surreal metaphor or simile either completely at random or by restricting one or more of the word classes to a specific sensory category.

Details

Uses jQuery and (nlp-)compromise.

This app is very much a work in progress, firstly because there are many general improvements that need to be made, secondly because there are many more ways of creating metaphors that need to be added, and thirdly because the word lists need to be ameliorated by removing some words, by recategorizing some words, and by adding a lot more words.

Poetry Corpora

Poetry corpora are from the TextGrid Repository, Project Gutenberg / GutenTag , and Œuvres. The corpora are processed with Python, Bash, Pandoc, Sed, and Perl and other tools.

Unfortunately, these corpora aren’t completely regular and use rather different TEI XML structures, sometimes within one and the same file, which is why I’ve regularized them somewhat using Python and Regex, but some comments, notes, dates, line numbers, bad formatting, unnecessary special characters, etc. still made it through and will need to be removed in the future so that only pure poetry is left.