EmergentInstructiveFramework

Expanding Grammar

This repository expands on the grammar established by Emergent Semantic Dialogue Framework into Emergent Instructive Framework.

The direction north you walk,    | but the direction south you avoid.
|      |      |      |    |        |    |       |      |     |  |
@word_class   |      |    |        @conjunction |      |     |  |
       |      |      |    |             |       |      |     |  @verb.
       @noun  |      |    |             @noun   |      |     |
              @adjective  |                     @noun  |     |
                     |    |                            @verb |
                     @pronoun                                |
                          |                                  @pronoun
                          @verb,

In this case only the conjunctive directional needs to be chosen by in game context: if you must avoid south, then you can visit North, West, and East.

Installation

sudo gem install EmergentInstructiveFramework

Usage

require "EmergentInstructiveFramework"

def generate_instructions
  EmergentInstructiveFramework::LanguageModel.craft_conjunctive
  EmergentInstructiveFramework::LanguageModel.directional_verb
  EmergentInstructiveFramework::LanguageModel.pronouns
  EmergentInstructiveFramework::LanguageModel.follow_up_verb
  EmergentInstructiveFramework::LanguageModel.from_conjuctive_gen_phrase
end

def self_reinforcer
  EmergentInstructiveFramework::LanguageModel.self_reinforcer
end

generate_instructions
self_reinforcer

Development

After checking out the repo, run bin/setup to install dependencies. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and the created tag, and push the .gem file to rubygems.org.