Code Monkey home page Code Monkey logo

winnow's Introduction

Winnow

Winnow is a declarative domain-specific query language for story sifting, or identifying narratively compelling sequences of events in a larger corpus of narrative material. For instance, Winnow can be used to search for compelling emergent microstories within the output of a simulation-driven game, such as Dwarf Fortress or The Sims.

Example

A typical Winnow sifting pattern looks something like this:

(pattern violationOfHospitality
  (event ?e1 where
    eventType: enterTown,
    actor: ?guest)
  (event ?e2 where
    eventType: showHospitality,
    actor: ?host,
    target: ?guest,
    ?host.value: communalism)
  (event ?e3 where
    tag: harm,
    actor: ?host,
    target: ?guest)
  ;; make sure the guest hasn't left town
  (unless-event ?eMid between ?e1 ?e3 where
    eventType: leaveTown,
    actor: ?guest))

This sifting pattern can be used to find instances of a violation of hospitality microstory, in which a ?guest character enters a town; is shown hospitality by a ?host character who values communalism; but then is somehow harmed by the ?host character before the ?guest has a chance to leave town again.

More examples of Winnow sifting patterns can be found on the tests page.

Use cases

Winnow sifting patterns can be automatically translated into lower-level Felt sifting patterns, allowing you to use Winnow as a more human-friendly syntax for the specification of Felt patterns. However, Winnow also provides unique affordances for incremental story sifting (sifting while the simulation is still live) and partial story sifting (identifying the beginnings of compelling event sequences that haven't yet been completed.)

Further reading

For more information on Winnow, see the following paper:

This paper can be cited as follows:

@inproceedings{kreminski2021winnow,
  title={Winnow: A Domain-Specific Language for Incremental Story Sifting},
  author={Kreminski, Max and Dickinson, Melanie and Mateas, Michael},
  booktitle={Proceedings of the AAAI Conference on Artificial Intelligence and Interactive Digital Entertainment},
  year={2021}
}

winnow's People

Contributors

mkremins avatar

Watchers

James Cloos 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.