Turn James Cook’s first voyage into an interactive website

About the journal

Thanks Project Gutenberg!

Parsing the journal

Natural language is not an easy thing to parse. Natural language written with spelling and grammar of someone from the 18th century is harder. We are going to sidestep a lot of those concerns by taking a lot at the data.

Sir James has actually done a very good job of being very diligent. The journal is very structured. We can use this structure to transform his words into data. The editor has also taken care

  • The first sentence of every journal entry is the day of the month.
  • Annotations provide
    • months and years, e.g. “[July 1770.]”
    • locations
  • The editor’s own comments are provided inline as according to the following structure: “* (* possibly long comment )”

Dates in the journal

Although the editor makes the following remark in his introduction, we will ignore it for now:

“It was the usual custom on board ships to keep what was known as Ship time–i.e., the day began at noon BEFORE the civil reckoning, in which the day commences at midnight. Thus, while January 1st, as ordinarily reckoned, is from midnight to midnight, in ship time it began at noon on December 31st and ended at noon January 1st, this period being called January 1st. Hence the peculiarity all through the Journal of the p.m. coming before the a.m. It results that any events recorded as occurring in the p.m. of January 1st in the log, would, if translated into the ordinary system, be given as happening in the p.m. of December 31st; while occurrences in the a.m. of January 1st would be equally in the a.m. of January 1st in both systems.” — http://www.gutenberg.org/catalog/world/readfile?fk_files=3275884&pageno=6

An interesting task for you in the future might be to correct the dates programmatically.

Take a look at his notes from early July 1770, a few days after the Endeavour had run aground in Endeavour River, Queensland.

[July 1770.]

Sunday, 1st July. Gentle breezes at South-East, and Cloudy weather, with some Gentle Showers in the morning. P.M., the People return’d from hauling the Sean, having caught as much fish as came to 2 1/2 pound per Man, no one on board having more than another. The few Greens we got I caused to be boil’d among the pease, and makes a very good Mess, which, together with the fish, is a great refreshment to the people. A.M., a party of Men, one from each Mess, went again a fishing, and all the rest I gave leave to go into the Country, knowing that there was no danger from the Natives. To-day at Noon the Thermometer in the Shade rose to 87 degrees, which is 2 or 3 Degrees higher than it hath been on any day before in this place.

Monday, 2nd. Ditto weather. P.M., the fishing-party caught as much fish as came to 2 pounds a Man. Those that were in the Country met with nothing New. Early in the A.M. I sent the Master in the pinnace out of the Harbour, to sound about the Shoals in the Offing and to look for a Channel to the Northward. At this time we had a breeze of wind from the land, which continued till about 9. What makes me mention this is, that it is the first Land breeze we have had since we have been in this River. At low water lashed empty Casks under the Ship’s bows, being in some hopes of floating her the next high Water, and sent some hands a fishing, while others were employ’d in refitting the Ship.

Tuesday, 3rd. Winds at South-East, Fore and Middle part gentle breeze, the remainder a fresh gale. In the evening the fishing Party return’d, having got as much fish as came to 2 pounds a Man. At high water we attempted to heave the Ship off, but did not succeed. At Noon the Master return’d, and reported he had found a passage out to Sea between the Shoals, which passage lies out East-North-East or East by North from the River mouth. He found these Shoals to Consist of Coral Rocks; he landed upon one, which drys at low Water, where he found very large cockles* (* Tridacna.) and a Variety of other Shell fish, a quantity of which he brought away with him. He told me that he was 5 Leagues out at Sea, having at that distance 21 fathoms water, and judg’d himself to be without all the Shoals, which I very much doubted.* (* Cook was right. The shoals extend for four leagues farther.) After this he came in Shore, and Stood to the Northward, where he met with a Number of Shoals laying a little distance from the Shore. About 9 in the evening he landed in a Bay about 3 Leagues to the Northward of this Place, where he disturbed some of the Natives, whom he supposed to be at supper; they all fled upon his approach, and Left him some fresh Sea Eggs, and a fire ready lighted behind them; but there was neither House nor Hut near. Although these Shoals lay within sight of the Coast, and abound very much with Shell fish and other small fish, which are to be caught at Low water in holes in the Rocks, yet the Natives never visit them, for if they did we must have seen of these Large shells on shore about their fire places. The reason I do suppose is, that they have no Boats that they dare Venture so far out at Sea in.* (* Nevertheless the natives do get out to the islands which lie farther from the shore than these reefs, as Cook himself afterwards found.)

Wednesday, 4th. Strong gales at South-East and fair weather. P.M., the fishing party return’d with the usual success; at High water hove the ship Afloat. A.M., employ’d trimming her upon an even Kiel, intending to lay her ashore once more, to come at her bottom under the Larboard Main Chains.

Thursday, 5th. Strong breezes at South-East and fair weather. P.M. Warped the Ship over, and at high Water laid her ashore on the Sandbank on the South side of the River, for I was afraid to lay her broad side to the Shore where she lay before, because the ground lies upon too great a decent, and she hath already received some Damage by laying there these last Niep Tides, at least she still makes water.

As you can see, Cook begins each journal entry with the date. Months are indicated in square brackets.

Cleaning the data

Note to self

Transform the book to a data structure

Removing secondary authors

Note to self

Discuss how to remove Gutenberg boilerplate and first chapter, which wasn’t written by Cook

Describibt

[In Endeavour River, Queensland.]

Some outliers:

[Ship Beached in Endeavour River.]

  1. The notable exception is the <pre> tag, which we have not encountered yet. <pre> is shorthand for pre-formatted. The way the text within it is laid out in source code form is the layout which will appear on to the website reader.