Giter VIP home page Giter VIP logo

riverrun's Introduction

riverrun

Dense, incomprehensible Joycean tract that will keep the professors busy for centuries.

A NaNoGenMo 2016 project.

License: Riverrun is released under an MIT License. It utilizes the Olipy library, which is released under the GNU Public License v3.

Turning Text into Data

UlyssesTextToData.py - this script processes the Gutenberg Ulysses text and parses it into a data file that is readable by the Olipy library.

This process changes for some chapters, as (for example) Penelope (Ch. 18) consists of 5 extremely long run-on sentences, and must be split up in a different way. Similarly, Aeolus (Ch. 7) must be parsed to separate newspaper headlines from the rest of the text.

This file defines a method for standard chapters, and a method for each chapter that requires its own special treatment.

Turning Data into a Novel

QueneauNovel.py - uses a queneau generator to create a new novel. Because the queneau generator uses the original novel as the corpus, it works much better when generating a finished product smaller than the original corpus.

MarkovNovel.py - uses a Markov generator to create a new novel. This is much less sensible, has many more grammatical mistakes, but generates much more interesting content.

Turning a Novel into HTML

MakeHTML.py - a very, very simple script to dump out the contents of a novel (in a Unicode text file) to an HTML file. This also correctly handles Unicode symbols and translates them into the corresponding HTML codes.

riverrun's People

Contributors

charlesreid1 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

estheroids

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.