GithubHelp home page GithubHelp logo

jeffreys2015 / subjectnamehere Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sequitur/subjectnamehere

0.0 1.0 0.0 75 KB

A random generator for buzzword-laden indie gaming pitches, written in Perl

License: Other

Perl 82.43% Shell 0.71% CSS 11.09% CoffeeScript 5.76%

subjectnamehere's Introduction

SubjectNameHere

A random generator for buzzword-laden indie gaming pitches, written in Perl.

Data Format

Subject Name Here takes random words and phrases from a plain text file called 'indiegaming.buzz'. That file defines the whole structure of the generated text.

The format for buzzword files is:

  • Everything after a // is treated as a comment and ignored.
  • The file is split into blocks, headed by [headers]. Everything before the top header is treated as part of the [default] block.
  • Normal blocks contain lists of words or snippets of text separated by pipes | and newlines.
  • Blocks whose names start with phrase_, on the other hand, contain phrases separated by lines that contain only a %.
  • Either way, phrases can contain <references> to other blocks. References get replaced with one of the phrases in the corresponding block, chosen at random. The format for a reference is <[a] reference [option]>.
    • [a], which can actually be written a or an, will use Lingua::EN::Inflect to put an 'a' or 'an' before the content of the reference, as dictated by English grammar.
    • [option] can be one of two things: * static will make the block static. This means the block will pick one option at random, and then that option will be chosen again every time the block is called subsequently with the static option. Keep in mind that if the block contains references to other blocks, those references will change unless they, too, are called statically. * x:y, where x and y are numbers, will call the block repeatedly at least x times and at most y times.

Reading the actual file will probably make this clearer. The [main] block is the only one explicitly called by the Shuffler module; [main] in turn calls other blocks.

subjectnamehere's People

Contributors

jeffreys2015 avatar sequitur avatar

Watchers

 avatar

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.