Functions for the Analysis of Star Trek Thematic Data

An implementation of 1) the hypergeometric test for over-representation of literary themes in a storyset (a list of stories) relative to a background list of stories, and 2) a recommendation system that takes a user-selected story as input and returns a ranked list of similar stories on the basis of shared themes. The package is currently implemented for the episodes of the Star Trek television franchise series The Original Series (TOS), The Animated Series (TAS), The Next Generation (TNG), and Voyager (VOY).


Version 0.1.2

  • Added similar story recommender function
  • Added thematic and meta data for Star Trek: Voyager series to package datasets
  • Added benchmark_storysets.smt storyset file
  • Updated documentation
  • Renamed TEA function to get_enriched_themes

Version 0.1.1

  • Updated documentation
  • Updated package datasets
  • Added print_tree function which prints theme hierarchies in a tree format
  • Simplified TEA function outputs
  • Story IDs converted from uppercase to lowercase

Version 0.1.0

  • Initial release

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.1.5 by Paul Sheridan, a year ago

Browse source code at

Authors: Paul Sheridan , Mikael Onsjö

Documentation:   PDF Manual  

GPL-3 license

Imports R6, data.tree

Suggests knitr

See at CRAN