A downloadable tool

A clumsy attempt to implement Wave Function Collapse algorithm for text. Not feature complete, but can be used.

How to run (Windows only):

TotalGarbage [input_file [output_length [output_file ["VERBOSE"]]]]

  • Input file - Input file can be raw text or formatted XML (described below). If XML is used, a skeleton is generated first and then each subsection is generated seperately.
  • Output length - The length of the final output (in characters, best kept at 1000 or under)
  • Output file - Output file that the final result is written to
  • "VERBOSE" - add the word Verbose to watch the text generate (warning: EXTREMELY verbose)

INPUT XML FORMAT

A formatted input file can be used to break up the output file into slightly more structured text. An example input file is included. 

<MWC> - Root tag

<MWCDATA> - This is the example text. You can tag the text inside this block however you want (eg. "<TEXT>Hello my name is </TEXT><NAME>Alice</NAME><TEXT>and his name is </TEXT><NAME>Bob</NAME> ".) Nested tags kind of work, but an element can only contain either text or subelements, not both, due to poor choices in development on my part

<MWCRULES> - These are rules for the output text. You can add custom suffixes and prefixes currently. (eg. if you generate a TEXT block of "blah", then adding <TEXT prefix = "[" suffix="]" /> will cause it to output as "[blah]".)

<MWCEXTRA> - You can add extra examples in this section that are not used to generate the overall skeleton of the document, but can be used to give the substring generators more info to work with.

Download

Download
TotalGarbage.zip (Windows) 202 MB

Leave a comment

Log in with itch.io to leave a comment.