Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Dichotomous Key

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 coffeescripts
Octocat-spinner-32 public
Octocat-spinner-32 spec
Octocat-spinner-32 .rvmrc
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 Guardfile
Octocat-spinner-32 Rakefile

Dichotmous Key

This is a small CoffeScript/ JavaScript library implementing a Dichotmous Key for fossils.

Setup instructions

  • Ruby 1.9
  • bundle install
  • guard (to automatically compile CoffeeScript)
  • rake jasmine
  • http://localhost:8888/ to run the tests


The fossil key is referenced by


An example of a key pair of statements is :

[ { key_pair: 1, statement: "The fossil resembles a modern day seashell", next_statement_pair: 2 },
{ key_pair: 1, statement: "The fossil does not resembles a modern day seashell", next_statement_pair: 8 }]

To get the start of the finder


To get the next statement pair or final answer based on the text chosen:

fossil_key.choose_statment ("The fossil resembles a modern day seashell")

It will return either the next key pair of statements or the final specimen:

{ name: "Dunbarella PELECYPOD", photo_image: "test_photo_image" , drawing_image: "test_drawing_image" , description: "This is a test description" }
Something went wrong with that request. Please try again.