Trigrams

Trigrams is the only file of interest here.

It works, and it was kind of fun. The only improvement that I might make is to treat the punctuation as 'containers' and insert the words around these. As it stands, the punctuation can get moved around depending on what's going on in the trigrams dict. It usually works, I think it kind of fits the sort of lunatic rambling quality of a 'translated fragment,' but the occasional mismatched quotes are kind of annoying. I couldn't think of a clean way to do this that doesn't involve using regex...