Skip to content
A project that utilizes a database of Star Trek scripts to generate new captains logs
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.


Type Name Latest commit message Commit time
Failed to load latest commit information.


A project that utilizes a database of Star Trek scripts to generate new phrases, such as captains logs, commands to the computer, or lines of dialogue from a specified character

How It Works

Scripts are pulled from using the ScriptScraper class and saved into "./scripts/SeriesName/EpisodeNum.txt". This is done the first time your run the program, and can take a long time.

A GUI is opened to let you customize how the chain will be built. You can generate lines of dialogue from characters by inputing how their lines appear in the scripts. E.g. "PICARD:" and using the check box to select which series to search through. There are also a few preset generators for you to choose from.

A MarkovChain (type of statistical model) is built based off of the scripts fed in and is used to generate phrases.

Example outputs can be found at

##Download Download the executable jar by clicking this link
Run it by double clicking on it.
If you run it from the command line with "java -jar CaptainMarkov.jar" the command line will show much more robust feedback so you know if something is going wrong.

##Legal Star Trek and related marks are trademarks of CBS Studios Inc. Copyright 1966, Present. The Star Trek scripts in this repo are for educational and entertainment purposes only. All other copyrights property of their respective holders.

You can’t perform that action at this time.