Inspiration

My background is in linguistics. I’ve been wanting to write a program dealing with language and I’m a fan of Douglas Adams, so I decided to write a program that writes very bad poetry.

What it does

At a minimum I hope to actually generate some poetry. If I have time I’d like to add a machine-learning aspect to improve its poetry-writing abilities.

How I built it

I read nltk documentation and fell down a lot of Internet rabbit holes about NLP.

Challenges I ran into

It turns out that parsing syntax is complicated. I spent a lot of time working on a proper parser with a CFG, but it will take far more time to get that working than I had during this Hackathon.

Accomplishments that I'm proud of

I did succeed in writing a program that "learns" new words and patterns after it reads more text.

What I learned

I'd never spent much time developing in Python before this project. I learned Python as I went. I also learned more about NLP than I knew before.

What's next for Vogonesque Poetry-Writing Machine

I'd love to get a proper parser working so that I can build and update a grammar instead of the pattern-saving solution I implemented here.

Share this project:

Updates