This is code for performing the WaveFunctionCollapse algorithm on poems. It mashes up sentence fragments from a given corpus to produce poems with fixed metric forms.