~subsetpark/archy

46aac32e — Zach Smith 2 months ago
Remove links
800abfac — Zach Smith 2 months ago
More poems
2f600f02 — Zach Smith 2 months ago
elixir

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~subsetpark/archy
read/write
git@git.sr.ht:~subsetpark/archy

You can also use your local clone with git send-email.

#archy

An uninspired poet.

#Build

$ rebar3 compile

#Application

archy is the software that powers http://archy.zdsmith.com. It consists of two halves: archy, the core logic that randomly generates poetry, and archyweb, the Cowboy application that requests a new poem and then wraps it in a web page.

At startup, archy will read the text files in archy/priv and interpret them as poetry. It will create a series of ETS tables from the parsed poems. Then, whenever a poem is requested, it will generate a poem from the skeletons of one of the parsed poems, randomly using either the original language or pulling a structurally equivalent word from a different text.