├── .gitignore
├── CCCma
├── CCCma_Basemap.ipynb
├── CCCma_SNC_to_2099.ipynb
└── README.md
├── Japan_Earthquakes
├── earthquakes-jp.ipynb
└── earthquakes-rest-api.py
├── LICENSE
├── README.md
├── billboard_charts
├── README.md
└── billboard_top_words.ipynb
├── colorbrewdict.py
├── imagecompare.ipynb
├── monty_monte.ipynb
├── mortality
├── Compressed Mortality, 1968-1978 per year.txt
├── Compressed Mortality, 1968-1978 totals.txt
├── Compressed Mortality, 1979-1998 per year.txt
├── Compressed Mortality, 1979-1998 totals.txt
├── Compressed Mortality, 1999-2012 per year.txt
├── Compressed Mortality, 1999-2012 totals.txt
├── README.md
├── icd-1.txt
├── icd-10.txt
├── icd-10_long.txt
├── icd-2.txt
├── icd-3.txt
├── icd-4.txt
├── icd-5.txt
├── icd-6.txt
├── icd-7.txt
├── icd-8.txt
├── icd-8_long.txt
├── icd-9.txt
├── icd-9_long.txt
├── unusual_mortality.html
└── unusual_mortality.ipynb
├── pocket_tumblr_reddit_api.ipynb
├── star_trek_tos
├── munge_tos_transcripts.ipynb
├── star_trek_tos_char_dialogue.html
├── tos_episode_numbers.tsv
├── tos_transcript_1.txt
├── tos_transcript_10.txt
├── tos_transcript_11.txt
├── tos_transcript_12.txt
├── tos_transcript_13.txt
├── tos_transcript_14.txt
├── tos_transcript_15.txt
├── tos_transcript_16.txt
├── tos_transcript_16b.txt
├── tos_transcript_17.txt
├── tos_transcript_18.txt
├── tos_transcript_19.txt
├── tos_transcript_2.txt
├── tos_transcript_20.txt
├── tos_transcript_21.txt
├── tos_transcript_22.txt
├── tos_transcript_23.txt
├── tos_transcript_24.txt
├── tos_transcript_25.txt
├── tos_transcript_26.txt
├── tos_transcript_27.txt
├── tos_transcript_28.txt
├── tos_transcript_29.txt
├── tos_transcript_3.txt
├── tos_transcript_30.txt
├── tos_transcript_31.txt
├── tos_transcript_32.txt
├── tos_transcript_33.txt
├── tos_transcript_34.txt
├── tos_transcript_35.txt
├── tos_transcript_36.txt
├── tos_transcript_37.txt
├── tos_transcript_38.txt
├── tos_transcript_39.txt
├── tos_transcript_4.txt
├── tos_transcript_40.txt
├── tos_transcript_41.txt
├── tos_transcript_42.txt
├── tos_transcript_43.txt
├── tos_transcript_44.txt
├── tos_transcript_45.txt
├── tos_transcript_46.txt
├── tos_transcript_47.txt
├── tos_transcript_48.txt
├── tos_transcript_49.txt
├── tos_transcript_5.txt
├── tos_transcript_50.txt
├── tos_transcript_51.txt
├── tos_transcript_52.txt
├── tos_transcript_53.txt
├── tos_transcript_54.txt
├── tos_transcript_55.txt
├── tos_transcript_56.txt
├── tos_transcript_57.txt
├── tos_transcript_58.txt
├── tos_transcript_59.txt
├── tos_transcript_6.txt
├── tos_transcript_60.txt
├── tos_transcript_61.txt
├── tos_transcript_62.txt
├── tos_transcript_63.txt
├── tos_transcript_64.txt
├── tos_transcript_65.txt
├── tos_transcript_66.txt
├── tos_transcript_67.txt
├── tos_transcript_68.txt
├── tos_transcript_69.txt
├── tos_transcript_7.txt
├── tos_transcript_70.txt
├── tos_transcript_71.txt
├── tos_transcript_72.txt
├── tos_transcript_73.txt
├── tos_transcript_74.txt
├── tos_transcript_75.txt
├── tos_transcript_76.txt
├── tos_transcript_77.txt
├── tos_transcript_78.txt
├── tos_transcript_79.txt
├── tos_transcript_8.txt
└── tos_transcript_9.txt
├── top_10_python_idioms.ipynb
├── tree_convert_mega_to_gexf.ipynb
├── tree_convert_mega_to_json.ipynb
├── tree_convert_newick_to_json.py
└── weather_ML.ipynb
/.gitignore:
--------------------------------------------------------------------------------
1 | *checkpoint.ipynb
2 | *Copy0.ipynb
3 | *Copy1.ipynb
4 | *.xls*
5 | *.pickle
6 | *.rar
7 | *.csv
--------------------------------------------------------------------------------
/CCCma/README.md:
--------------------------------------------------------------------------------
1 | Scripts to make maps of Canadian Centre for Climate Modeling and Analysis climate models to the year 2100:
2 | [CCCma_Basemap.ipynb](http://nbviewer.ipython.org/github/Prooffreader/Misc_ipynb/blob/master/CCCma/CCCma_Basemap.ipynb) Script to visualize one such map
3 | [CCCma_SNC_to_2099.ipynb](http://nbviewer.ipython.org/github/Prooffreader/Misc_ipynb/blob/master/CCCma/CCCma_SNC_to_2099.ipynb) Script to extract a feature on the same day per year and make an animated GIF
--------------------------------------------------------------------------------
/Japan_Earthquakes/earthquakes-rest-api.py:
--------------------------------------------------------------------------------
1 | # A Python script to download and create a pandas dataframe out of IRIS earthquake data
2 |
3 | #VARIABLES
4 |
5 | start_time = '1980-01-01T00:00:00'
6 | end_time = '1989-12-31'
7 | min_latitude = '30'
8 | max_latitude = '40'
9 | min_longitude = '-100'
10 | max_longitude = '-90'
11 |
12 | import urllib2
13 | import xmltodict
14 | import pandas as pd
15 |
16 | url = 'http://service.iris.edu/fdsnws/event/1/query?starttime=' + start_time +'&endtime=' + end_time
17 | url += '&minlatitude='+min_latitude+'&maxlatitude='+max_latitude+'&minlongitude='+min_longitude+'&maxlongitude='+max_longitude
18 | xmlresponse = urllib2.urlopen(url).read()
19 | quakedict = xmltodict.parse(xmlresponse)
20 |
21 | quakes = pd.DataFrame()
22 | for event in quakedict['q:quakeml'][u'eventParameters']['event']:
23 | cdate = event['origin']['time']['value']
24 | cmonth = int(cdate[5:7])
25 | cyear = int(cdate[:4])
26 | clat = event['origin']['latitude']['value']
27 | clon = event['origin']['longitude']['value']
28 | try:
29 | cmagnitude = event['magnitude']['mag']['value']
30 | except:
31 | cmagnitude = 0
32 | try:
33 | cevent_type = event['type']
34 | except:
35 | cevent_type = ''
36 | try:
37 | cdesc = event['description']
38 | except:
39 | cdesc = ''
40 | try:
41 | cmagid = event['preferredMagnitudeID']
42 | except:
43 | cmagid = ''
44 | try:
45 | corid = event['preferredOriginID']
46 | except:
47 | corid = ''
48 | try:
49 | cmagtype = event['magnitude']['type']
50 | except:
51 | cmagtype = ''
52 | try:
53 | cdepth = event['origin']['depth']
54 | except:
55 | cdepth = ''
56 | try:
57 | ccreatinfo = event['origin']['creationInfo']
58 | except:
59 | ccreatinfo = ''
60 | try:
61 | ccontrib = event['origin']['@iris:contributor']
62 | except:
63 | ccontrib = ''
64 | try:
65 | ccat = event['origin']['@iris:catalog']
66 | except:
67 | ccat = ''
68 | try:
69 | cctoi = event['origin']['@iris:contributorOriginId']
70 | except:
71 | cctoi = ''
72 |
73 | tempdf = pd.DataFrame({'year':[cyear],
74 | 'month':[cmonth],
75 | 'date':[cdate],
76 | 'lat': [clat],
77 | 'lon': [clon],
78 | 'mag_type':[cmagtype],
79 | 'pref_mag_id':[cmagid],
80 | 'pref_orig_id':[corid],
81 | 'description':[cdesc],
82 | 'event_type':[cevent_type],
83 | 'depth':[cdepth],
84 | 'creation_info':[ccreatinfo],
85 | 'contributor':[ccontrib],
86 | 'catalog':[ccat],
87 | 'contributor_origin_id':[cctoi],
88 | 'magnitude': [cmagnitude] }, dtype=float)
89 | quakes = quakes.append(tempdf)
90 |
91 | quakes = quakes[quakes.magnitude != 0]
92 | quakes[['year', 'month']] = quakes[['year', 'month']].astype(int)
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2014 David Taylor
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | Misc_ipynb
2 | ==========
3 |
4 | A collection of ipython notebooks I've made for various projects, with nbviewer links:
5 |
6 | Scripts to make maps of Canadian Centre for Climate Modeling and Analysis climate models to the year 2100:
7 | [CCCma_Basemap.ipynb](http://nbviewer.ipython.org/github/Prooffreader/Misc_ipynb/blob/master/CCCma/CCCma_Basemap.ipynb) Script to visualize one such map
8 | [CCCma_SNC_to_2099.ipynb](http://nbviewer.ipython.org/github/Prooffreader/Misc_ipynb/blob/master/CCCma/CCCma_SNC_to_2099.ipynb) Script to extract a feature on the same day per year and make an animated GIF
9 |
10 | [earthquakes-jp.ipynb](http://nbviewer.ipython.org/github/Prooffreader/Misc_ipynb/blob/master/Japan_Earthquakes/earthquakes-jp.ipynb) and [earthquakes-rest-api.py](http://www.github.com/Prooffreader/Misc_ipynb/blob/master/earthquakes-rest-api.py): Scripts to build an animated GIF of earthquakes in China and Japan. See the final result at http://www.prooffreader.com/2014/06/Japan_Earthquakes/animated-map-of-earthquakes-near-china.html
11 |
12 | Scripts to analyze Billboard magazine pop charts data:
13 | [billboard_top_words.ipynb](http://nbviewer.ipython.org/github/Prooffreader/Misc_ipynb/blob/master/billboard_charts/billboard_top_words.ipynb) : script to find the most decade-specific words in song titles since 1890.
14 |
15 | Scripts to analyze word use in Star Trek: The Original series:
16 | [munge_tos_transcripts.ipynb](http://nbviewer.ipython.org/github/Prooffreader/Misc_ipynb/blob/master/star_trek_tos/munge_tos_transcripts.ipynb): script to download fan scripts, create a transcript database and a bokeh plot of dialogue per character
17 |
18 | Scripts to analyze CDC's mortality files:
19 | [unusual_mortality.ipynb](http://nbviewer.ipython.org/github/Prooffreader/Misc_ipynb/blob/master/mortality/unusual_mortality.ipynb) : script to show ten unusual causes of death in the CDC mortality database.
20 |
21 | [monty_monte.ipynb](http://nbviewer.ipython.org/github/Prooffreader/Misc_ipynb/blob/master/monty_monte.ipynb): A Monte Carlo simulator of the Monty Hall problem! You can choose the number of doors and of goats, and the number of iterations.
22 |
23 | [pocket_tumblr_reddit_api.ipynb](http://nbviewer.ipython.org/github/Prooffreader/Misc_ipynb/blob/master/pocket_tumblr_reddit_api.ipynb): A script to search the hard drive, Pocket or Tumblr for photos, then save them or upload them to Tumblr or Reddit. The Reddit posting writes to a json on an sftp server, where a cron job can run the Reddit/PRAW script once an hour.
24 |
25 | [top_10_python_idioms.ipynb](http://nbviewer.ipython.org/github/Prooffreader/Misc_ipynb/blob/master/top_10_python_idioms.ipynb): A notebook showing the top 10 idioms I wished I'd internalized earlier when I was first learning Python in 2012 coming from mostly Visual Basic (ugh, I know!).
26 |
27 | Scripts to convert tree/graph files between a few formats for use in MEGA or Gephi: (1) [tree_convert_mega_to_gexf.ipynb](http://nbviewer.ipython.org/github/Prooffreader/Misc_ipynb/blob/master/tree_convert_mega_to_gexf.ipynb); (2) [tree_convert_mega_to_json.ipynb](http://nbviewer.ipython.org/github/Prooffreader/Misc_ipynb/blob/master/tree_convert_mega_to_json.ipynb); (3) [tree_convert_newick_to_json.py](http://nbviewer.ipython.org/github/Prooffreader/Misc_ipynb/blob/master/tree_convert_newick_to_json.ipynb)
28 |
29 | [weather_ML.ipyn](http://nbviewer.ipython.org/github/Prooffreader/Misc_ipynb/blob/master/weather_MLp.ipynb)b: a script to analyze a huge (7,000,000-row) table of weather data that had lost its column identifiers and changed column order frequently. I used conservative criteria to assign unambiguous columns (e.g., only rainfall had numbers in the 0.00-0.10 range, snowfall was NULL during July), and then used machine learning (random forest classifier) to classify the rest based on a handful of metrics, like whether values were correlated with time of year or time of day, how many had a value of zero, whether they were integers or floats, their medians and standard deviations, etc. The source data is proprietary, so is not included here.
30 |
--------------------------------------------------------------------------------
/billboard_charts/README.md:
--------------------------------------------------------------------------------
1 | Scripts to analyze Billboard magazine pop charts data (link goes to IPython nbviewer):
2 | [billboard_top_words.ipynb](http://nbviewer.ipython.org/github/Prooffreader/Misc_ipynb/blob/master/billboard_charts/billboard_top_words.ipynb) : script to find the most decade-specific words in song titles since 1890.
3 |
--------------------------------------------------------------------------------
/colorbrewdict.py:
--------------------------------------------------------------------------------
1 | # This product includes color specifications and designs developed by Cynthia Brewer (http://colorbrewer.org/).
2 | # Example use:
3 | # print colorbrewdict['Set3'][3][2]
4 | colorbrewdict = {'YlGn': {
5 | 3: ["#f7fcb9","#addd8e","#31a354"],
6 | 4: ["#ffffcc","#c2e699","#78c679","#238443"],
7 | 5: ["#ffffcc","#c2e699","#78c679","#31a354","#006837"],
8 | 6: ["#ffffcc","#d9f0a3","#addd8e","#78c679","#31a354","#006837"],
9 | 7: ["#ffffcc","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#005a32"],
10 | 8: ["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#005a32"],
11 | 9: ["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"]
12 | },'YlGnBu': {
13 | 3: ["#edf8b1","#7fcdbb","#2c7fb8"],
14 | 4: ["#ffffcc","#a1dab4","#41b6c4","#225ea8"],
15 | 5: ["#ffffcc","#a1dab4","#41b6c4","#2c7fb8","#253494"],
16 | 6: ["#ffffcc","#c7e9b4","#7fcdbb","#41b6c4","#2c7fb8","#253494"],
17 | 7: ["#ffffcc","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#0c2c84"],
18 | 8: ["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#0c2c84"],
19 | 9: ["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"]
20 | },'GnBu': {
21 | 3: ["#e0f3db","#a8ddb5","#43a2ca"],
22 | 4: ["#f0f9e8","#bae4bc","#7bccc4","#2b8cbe"],
23 | 5: ["#f0f9e8","#bae4bc","#7bccc4","#43a2ca","#0868ac"],
24 | 6: ["#f0f9e8","#ccebc5","#a8ddb5","#7bccc4","#43a2ca","#0868ac"],
25 | 7: ["#f0f9e8","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#08589e"],
26 | 8: ["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#08589e"],
27 | 9: ["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"]
28 | },'BuGn': {
29 | 3: ["#e5f5f9","#99d8c9","#2ca25f"],
30 | 4: ["#edf8fb","#b2e2e2","#66c2a4","#238b45"],
31 | 5: ["#edf8fb","#b2e2e2","#66c2a4","#2ca25f","#006d2c"],
32 | 6: ["#edf8fb","#ccece6","#99d8c9","#66c2a4","#2ca25f","#006d2c"],
33 | 7: ["#edf8fb","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#005824"],
34 | 8: ["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#005824"],
35 | 9: ["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"]
36 | },'PuBuGn': {
37 | 3: ["#ece2f0","#a6bddb","#1c9099"],
38 | 4: ["#f6eff7","#bdc9e1","#67a9cf","#02818a"],
39 | 5: ["#f6eff7","#bdc9e1","#67a9cf","#1c9099","#016c59"],
40 | 6: ["#f6eff7","#d0d1e6","#a6bddb","#67a9cf","#1c9099","#016c59"],
41 | 7: ["#f6eff7","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016450"],
42 | 8: ["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016450"],
43 | 9: ["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"]
44 | },'PuBu': {
45 | 3: ["#ece7f2","#a6bddb","#2b8cbe"],
46 | 4: ["#f1eef6","#bdc9e1","#74a9cf","#0570b0"],
47 | 5: ["#f1eef6","#bdc9e1","#74a9cf","#2b8cbe","#045a8d"],
48 | 6: ["#f1eef6","#d0d1e6","#a6bddb","#74a9cf","#2b8cbe","#045a8d"],
49 | 7: ["#f1eef6","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#034e7b"],
50 | 8: ["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#034e7b"],
51 | 9: ["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"]
52 | },'BuPu': {
53 | 3: ["#e0ecf4","#9ebcda","#8856a7"],
54 | 4: ["#edf8fb","#b3cde3","#8c96c6","#88419d"],
55 | 5: ["#edf8fb","#b3cde3","#8c96c6","#8856a7","#810f7c"],
56 | 6: ["#edf8fb","#bfd3e6","#9ebcda","#8c96c6","#8856a7","#810f7c"],
57 | 7: ["#edf8fb","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#6e016b"],
58 | 8: ["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#6e016b"],
59 | 9: ["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"]
60 | },'RdPu': {
61 | 3: ["#fde0dd","#fa9fb5","#c51b8a"],
62 | 4: ["#feebe2","#fbb4b9","#f768a1","#ae017e"],
63 | 5: ["#feebe2","#fbb4b9","#f768a1","#c51b8a","#7a0177"],
64 | 6: ["#feebe2","#fcc5c0","#fa9fb5","#f768a1","#c51b8a","#7a0177"],
65 | 7: ["#feebe2","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177"],
66 | 8: ["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177"],
67 | 9: ["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"]
68 | },'PuRd': {
69 | 3: ["#e7e1ef","#c994c7","#dd1c77"],
70 | 4: ["#f1eef6","#d7b5d8","#df65b0","#ce1256"],
71 | 5: ["#f1eef6","#d7b5d8","#df65b0","#dd1c77","#980043"],
72 | 6: ["#f1eef6","#d4b9da","#c994c7","#df65b0","#dd1c77","#980043"],
73 | 7: ["#f1eef6","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#91003f"],
74 | 8: ["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#91003f"],
75 | 9: ["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"]
76 | },'OrRd': {
77 | 3: ["#fee8c8","#fdbb84","#e34a33"],
78 | 4: ["#fef0d9","#fdcc8a","#fc8d59","#d7301f"],
79 | 5: ["#fef0d9","#fdcc8a","#fc8d59","#e34a33","#b30000"],
80 | 6: ["#fef0d9","#fdd49e","#fdbb84","#fc8d59","#e34a33","#b30000"],
81 | 7: ["#fef0d9","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#990000"],
82 | 8: ["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#990000"],
83 | 9: ["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"]
84 | },'YlOrRd': {
85 | 3: ["#ffeda0","#feb24c","#f03b20"],
86 | 4: ["#ffffb2","#fecc5c","#fd8d3c","#e31a1c"],
87 | 5: ["#ffffb2","#fecc5c","#fd8d3c","#f03b20","#bd0026"],
88 | 6: ["#ffffb2","#fed976","#feb24c","#fd8d3c","#f03b20","#bd0026"],
89 | 7: ["#ffffb2","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#b10026"],
90 | 8: ["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#b10026"],
91 | 9: ["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"]
92 | },'YlOrBr': {
93 | 3: ["#fff7bc","#fec44f","#d95f0e"],
94 | 4: ["#ffffd4","#fed98e","#fe9929","#cc4c02"],
95 | 5: ["#ffffd4","#fed98e","#fe9929","#d95f0e","#993404"],
96 | 6: ["#ffffd4","#fee391","#fec44f","#fe9929","#d95f0e","#993404"],
97 | 7: ["#ffffd4","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#8c2d04"],
98 | 8: ["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#8c2d04"],
99 | 9: ["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"]
100 | },'Purples': {
101 | 3: ["#efedf5","#bcbddc","#756bb1"],
102 | 4: ["#f2f0f7","#cbc9e2","#9e9ac8","#6a51a3"],
103 | 5: ["#f2f0f7","#cbc9e2","#9e9ac8","#756bb1","#54278f"],
104 | 6: ["#f2f0f7","#dadaeb","#bcbddc","#9e9ac8","#756bb1","#54278f"],
105 | 7: ["#f2f0f7","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#4a1486"],
106 | 8: ["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#4a1486"],
107 | 9: ["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"]
108 | },'Blues': {
109 | 3: ["#deebf7","#9ecae1","#3182bd"],
110 | 4: ["#eff3ff","#bdd7e7","#6baed6","#2171b5"],
111 | 5: ["#eff3ff","#bdd7e7","#6baed6","#3182bd","#08519c"],
112 | 6: ["#eff3ff","#c6dbef","#9ecae1","#6baed6","#3182bd","#08519c"],
113 | 7: ["#eff3ff","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#084594"],
114 | 8: ["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#084594"],
115 | 9: ["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"]
116 | },'Greens': {
117 | 3: ["#e5f5e0","#a1d99b","#31a354"],
118 | 4: ["#edf8e9","#bae4b3","#74c476","#238b45"],
119 | 5: ["#edf8e9","#bae4b3","#74c476","#31a354","#006d2c"],
120 | 6: ["#edf8e9","#c7e9c0","#a1d99b","#74c476","#31a354","#006d2c"],
121 | 7: ["#edf8e9","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#005a32"],
122 | 8: ["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#005a32"],
123 | 9: ["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"]
124 | },'Oranges': {
125 | 3: ["#fee6ce","#fdae6b","#e6550d"],
126 | 4: ["#feedde","#fdbe85","#fd8d3c","#d94701"],
127 | 5: ["#feedde","#fdbe85","#fd8d3c","#e6550d","#a63603"],
128 | 6: ["#feedde","#fdd0a2","#fdae6b","#fd8d3c","#e6550d","#a63603"],
129 | 7: ["#feedde","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#8c2d04"],
130 | 8: ["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#8c2d04"],
131 | 9: ["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"]
132 | },'Reds': {
133 | 3: ["#fee0d2","#fc9272","#de2d26"],
134 | 4: ["#fee5d9","#fcae91","#fb6a4a","#cb181d"],
135 | 5: ["#fee5d9","#fcae91","#fb6a4a","#de2d26","#a50f15"],
136 | 6: ["#fee5d9","#fcbba1","#fc9272","#fb6a4a","#de2d26","#a50f15"],
137 | 7: ["#fee5d9","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#99000d"],
138 | 8: ["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#99000d"],
139 | 9: ["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"]
140 | },'Greys': {
141 | 3: ["#f0f0f0","#bdbdbd","#636363"],
142 | 4: ["#f7f7f7","#cccccc","#969696","#525252"],
143 | 5: ["#f7f7f7","#cccccc","#969696","#636363","#252525"],
144 | 6: ["#f7f7f7","#d9d9d9","#bdbdbd","#969696","#636363","#252525"],
145 | 7: ["#f7f7f7","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525"],
146 | 8: ["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525"],
147 | 9: ["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"]
148 | },'PuOr': {
149 | 3: ["#f1a340","#f7f7f7","#998ec3"],
150 | 4: ["#e66101","#fdb863","#b2abd2","#5e3c99"],
151 | 5: ["#e66101","#fdb863","#f7f7f7","#b2abd2","#5e3c99"],
152 | 6: ["#b35806","#f1a340","#fee0b6","#d8daeb","#998ec3","#542788"],
153 | 7: ["#b35806","#f1a340","#fee0b6","#f7f7f7","#d8daeb","#998ec3","#542788"],
154 | 8: ["#b35806","#e08214","#fdb863","#fee0b6","#d8daeb","#b2abd2","#8073ac","#542788"],
155 | 9: ["#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788"],
156 | 10: ["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],
157 | 11: ["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"]
158 | },'BrBG': {
159 | 3: ["#d8b365","#f5f5f5","#5ab4ac"],
160 | 4: ["#a6611a","#dfc27d","#80cdc1","#018571"],
161 | 5: ["#a6611a","#dfc27d","#f5f5f5","#80cdc1","#018571"],
162 | 6: ["#8c510a","#d8b365","#f6e8c3","#c7eae5","#5ab4ac","#01665e"],
163 | 7: ["#8c510a","#d8b365","#f6e8c3","#f5f5f5","#c7eae5","#5ab4ac","#01665e"],
164 | 8: ["#8c510a","#bf812d","#dfc27d","#f6e8c3","#c7eae5","#80cdc1","#35978f","#01665e"],
165 | 9: ["#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e"],
166 | 10: ["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],
167 | 11: ["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"]
168 | },'PRGn': {
169 | 3: ["#af8dc3","#f7f7f7","#7fbf7b"],
170 | 4: ["#7b3294","#c2a5cf","#a6dba0","#008837"],
171 | 5: ["#7b3294","#c2a5cf","#f7f7f7","#a6dba0","#008837"],
172 | 6: ["#762a83","#af8dc3","#e7d4e8","#d9f0d3","#7fbf7b","#1b7837"],
173 | 7: ["#762a83","#af8dc3","#e7d4e8","#f7f7f7","#d9f0d3","#7fbf7b","#1b7837"],
174 | 8: ["#762a83","#9970ab","#c2a5cf","#e7d4e8","#d9f0d3","#a6dba0","#5aae61","#1b7837"],
175 | 9: ["#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837"],
176 | 10: ["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],
177 | 11: ["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"]
178 | },'PiYG': {
179 | 3: ["#e9a3c9","#f7f7f7","#a1d76a"],
180 | 4: ["#d01c8b","#f1b6da","#b8e186","#4dac26"],
181 | 5: ["#d01c8b","#f1b6da","#f7f7f7","#b8e186","#4dac26"],
182 | 6: ["#c51b7d","#e9a3c9","#fde0ef","#e6f5d0","#a1d76a","#4d9221"],
183 | 7: ["#c51b7d","#e9a3c9","#fde0ef","#f7f7f7","#e6f5d0","#a1d76a","#4d9221"],
184 | 8: ["#c51b7d","#de77ae","#f1b6da","#fde0ef","#e6f5d0","#b8e186","#7fbc41","#4d9221"],
185 | 9: ["#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221"],
186 | 10: ["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],
187 | 11: ["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"]
188 | },'RdBu': {
189 | 3: ["#ef8a62","#f7f7f7","#67a9cf"],
190 | 4: ["#ca0020","#f4a582","#92c5de","#0571b0"],
191 | 5: ["#ca0020","#f4a582","#f7f7f7","#92c5de","#0571b0"],
192 | 6: ["#b2182b","#ef8a62","#fddbc7","#d1e5f0","#67a9cf","#2166ac"],
193 | 7: ["#b2182b","#ef8a62","#fddbc7","#f7f7f7","#d1e5f0","#67a9cf","#2166ac"],
194 | 8: ["#b2182b","#d6604d","#f4a582","#fddbc7","#d1e5f0","#92c5de","#4393c3","#2166ac"],
195 | 9: ["#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac"],
196 | 10: ["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],
197 | 11: ["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"]
198 | },'RdGy': {
199 | 3: ["#ef8a62","#ffffff","#999999"],
200 | 4: ["#ca0020","#f4a582","#bababa","#404040"],
201 | 5: ["#ca0020","#f4a582","#ffffff","#bababa","#404040"],
202 | 6: ["#b2182b","#ef8a62","#fddbc7","#e0e0e0","#999999","#4d4d4d"],
203 | 7: ["#b2182b","#ef8a62","#fddbc7","#ffffff","#e0e0e0","#999999","#4d4d4d"],
204 | 8: ["#b2182b","#d6604d","#f4a582","#fddbc7","#e0e0e0","#bababa","#878787","#4d4d4d"],
205 | 9: ["#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d"],
206 | 10: ["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],
207 | 11: ["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"]
208 | },'RdYlBu': {
209 | 3: ["#fc8d59","#ffffbf","#91bfdb"],
210 | 4: ["#d7191c","#fdae61","#abd9e9","#2c7bb6"],
211 | 5: ["#d7191c","#fdae61","#ffffbf","#abd9e9","#2c7bb6"],
212 | 6: ["#d73027","#fc8d59","#fee090","#e0f3f8","#91bfdb","#4575b4"],
213 | 7: ["#d73027","#fc8d59","#fee090","#ffffbf","#e0f3f8","#91bfdb","#4575b4"],
214 | 8: ["#d73027","#f46d43","#fdae61","#fee090","#e0f3f8","#abd9e9","#74add1","#4575b4"],
215 | 9: ["#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4"],
216 | 10: ["#a50026","#d73027","#f46d43","#fdae61","#fee090","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],
217 | 11: ["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"]
218 | },'Spectral': {
219 | 3: ["#fc8d59","#ffffbf","#99d594"],
220 | 4: ["#d7191c","#fdae61","#abdda4","#2b83ba"],
221 | 5: ["#d7191c","#fdae61","#ffffbf","#abdda4","#2b83ba"],
222 | 6: ["#d53e4f","#fc8d59","#fee08b","#e6f598","#99d594","#3288bd"],
223 | 7: ["#d53e4f","#fc8d59","#fee08b","#ffffbf","#e6f598","#99d594","#3288bd"],
224 | 8: ["#d53e4f","#f46d43","#fdae61","#fee08b","#e6f598","#abdda4","#66c2a5","#3288bd"],
225 | 9: ["#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd"],
226 | 10: ["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],
227 | 11: ["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"]
228 | },'RdYlGn': {
229 | 3: ["#fc8d59","#ffffbf","#91cf60"],
230 | 4: ["#d7191c","#fdae61","#a6d96a","#1a9641"],
231 | 5: ["#d7191c","#fdae61","#ffffbf","#a6d96a","#1a9641"],
232 | 6: ["#d73027","#fc8d59","#fee08b","#d9ef8b","#91cf60","#1a9850"],
233 | 7: ["#d73027","#fc8d59","#fee08b","#ffffbf","#d9ef8b","#91cf60","#1a9850"],
234 | 8: ["#d73027","#f46d43","#fdae61","#fee08b","#d9ef8b","#a6d96a","#66bd63","#1a9850"],
235 | 9: ["#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850"],
236 | 10: ["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],
237 | 11: ["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"]
238 | },'Accent': {
239 | 3: ["#7fc97f","#beaed4","#fdc086"],
240 | 4: ["#7fc97f","#beaed4","#fdc086","#ffff99"],
241 | 5: ["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0"],
242 | 6: ["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f"],
243 | 7: ["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17"],
244 | 8: ["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"]
245 | },'Dark2': {
246 | 3: ["#1b9e77","#d95f02","#7570b3"],
247 | 4: ["#1b9e77","#d95f02","#7570b3","#e7298a"],
248 | 5: ["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e"],
249 | 6: ["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02"],
250 | 7: ["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d"],
251 | 8: ["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"]
252 | },'Paired': {
253 | 3: ["#a6cee3","#1f78b4","#b2df8a"],
254 | 4: ["#a6cee3","#1f78b4","#b2df8a","#33a02c"],
255 | 5: ["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99"],
256 | 6: ["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c"],
257 | 7: ["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f"],
258 | 8: ["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00"],
259 | 9: ["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6"],
260 | 10: ["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a"],
261 | 11: ["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99"],
262 | 12: ["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"]
263 | },'Pastel1': {
264 | 3: ["#fbb4ae","#b3cde3","#ccebc5"],
265 | 4: ["#fbb4ae","#b3cde3","#ccebc5","#decbe4"],
266 | 5: ["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6"],
267 | 6: ["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc"],
268 | 7: ["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd"],
269 | 8: ["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec"],
270 | 9: ["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]
271 | },'Pastel2': {
272 | 3: ["#b3e2cd","#fdcdac","#cbd5e8"],
273 | 4: ["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4"],
274 | 5: ["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9"],
275 | 6: ["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae"],
276 | 7: ["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc"],
277 | 8: ["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"]
278 | },'Set1': {
279 | 3: ["#e41a1c","#377eb8","#4daf4a"],
280 | 4: ["#e41a1c","#377eb8","#4daf4a","#984ea3"],
281 | 5: ["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00"],
282 | 6: ["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33"],
283 | 7: ["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628"],
284 | 8: ["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf"],
285 | 9: ["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"]
286 | },'Set2': {
287 | 3: ["#66c2a5","#fc8d62","#8da0cb"],
288 | 4: ["#66c2a5","#fc8d62","#8da0cb","#e78ac3"],
289 | 5: ["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854"],
290 | 6: ["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f"],
291 | 7: ["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494"],
292 | 8: ["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"]
293 | },'Set3': {
294 | 3: ["#8dd3c7","#ffffb3","#bebada"],
295 | 4: ["#8dd3c7","#ffffb3","#bebada","#fb8072"],
296 | 5: ["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3"],
297 | 6: ["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462"],
298 | 7: ["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69"],
299 | 8: ["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5"],
300 | 9: ["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9"],
301 | 10: ["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd"],
302 | 11: ["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5"],
303 | 12: ["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"]
304 | }}
305 |
306 | print colorbrewdict['Set3'][3][2]
307 |
308 |
--------------------------------------------------------------------------------
/monty_monte.ipynb:
--------------------------------------------------------------------------------
1 | {
2 | "metadata": {
3 | "name": "",
4 | "signature": "sha256:efb45cd02e5242e5d9c956c43003ae0fde95653dffa4db5249cc6e7d5482505f"
5 | },
6 | "nbformat": 3,
7 | "nbformat_minor": 0,
8 | "worksheets": [
9 | {
10 | "cells": [
11 | {
12 | "cell_type": "markdown",
13 | "metadata": {},
14 | "source": [
15 | "### The Monty Hall Monte Carlo simulator, or as I like to call it, ###\n",
16 | "# 'monty_monte' #\n",
17 | "By David Taylor, a.k.a. Prooffreader\n",
18 | "\n",
19 | "See an article about the Monty Hall Problem with a nice animated gif at:\n",
20 | "\n"
21 | ]
22 | },
23 | {
24 | "cell_type": "code",
25 | "collapsed": false,
26 | "input": [
27 | "def monty_monte(doors, goats, reveals, trials):\n",
28 | " import random\n",
29 | " random.seed()\n",
30 | " assert goats > 1, \"There must be at least two goats\"\n",
31 | " assert doors > 2, \"There must be at least three doors\"\n",
32 | " assert doors - goats > 0, \"There must be at least one car\"\n",
33 | " assert goats - reveals > 0, \"There must be more goats than reveals\"\n",
34 | " won_if_stick, won_if_switch = 0, 0\n",
35 | " for trial in range(trials):\n",
36 | " prize_list = []\n",
37 | " for i in range(goats): prize_list.append('goat')\n",
38 | " for i in range(doors - goats): prize_list.append('car')\n",
39 | " # randomize list in place instead of picking members at random; it amounts to the \n",
40 | " # same thing, but the manipulations are easier\n",
41 | " random.shuffle(prize_list)\n",
42 | " # first you pick a random door (# 1, index 0, since the list order is now random)\n",
43 | " # if it's a car, count it as a win if you stick (don't change your selection)\n",
44 | " # either way, take it out of the list, it's no longer in play\n",
45 | " if prize_list[0] == 'car': won_if_stick += 1\n",
46 | " del prize_list[0]\n",
47 | " # now Monty must reveal one (or possibly more) goat(s). \n",
48 | " # we iterate through the list until we find one, then delete it.\n",
49 | " # we repeat this the number of times specified in the reveals variable\n",
50 | " for reveal in range(reveals):\n",
51 | " monty_choice = 0\n",
52 | " while prize_list[monty_choice] != 'goat':\n",
53 | " monty_choice += 1\n",
54 | " del prize_list[monty_choice]\n",
55 | " # now you switch your choice to the first item in the list.\n",
56 | " # Remember, we randomized the order earlier, so it's the same as choosing an item at random.\n",
57 | " if prize_list[0] == 'car': won_if_switch += 1\n",
58 | " print(\"Probability of winning if you stick: {0}\".format((won_if_stick*1.0/trials)))\n",
59 | " print(\"Probability of winning if you switch: {0}\".format(won_if_switch*1.0/trials))\n",
60 | " print(\"Fold improvement: {0}\".format(round(won_if_switch*1.0/won_if_stick,3)))\n",
61 | " \n",
62 | "monty_monte(3,2,1,1000)"
63 | ],
64 | "language": "python",
65 | "metadata": {},
66 | "outputs": [
67 | {
68 | "output_type": "stream",
69 | "stream": "stdout",
70 | "text": [
71 | "Probability of winning if you stick: 0.319\n",
72 | "Probability of winning if you switch: 0.681\n",
73 | "Fold improvement: 2.135\n"
74 | ]
75 | }
76 | ],
77 | "prompt_number": 1
78 | },
79 | {
80 | "cell_type": "code",
81 | "collapsed": false,
82 | "input": [
83 | "monty_monte(3,2,1,100000) # the classic variant"
84 | ],
85 | "language": "python",
86 | "metadata": {},
87 | "outputs": [
88 | {
89 | "output_type": "stream",
90 | "stream": "stdout",
91 | "text": [
92 | "Probability of winning if you stick: 0.33303\n",
93 | "Probability of winning if you switch: 0.66697\n",
94 | "Fold improvement: 2.003\n"
95 | ]
96 | }
97 | ],
98 | "prompt_number": 2
99 | },
100 | {
101 | "cell_type": "code",
102 | "collapsed": false,
103 | "input": [
104 | "monty_monte(100,99,1,10000) # often cited when trying to explain the Monty Hall problem"
105 | ],
106 | "language": "python",
107 | "metadata": {},
108 | "outputs": [
109 | {
110 | "output_type": "stream",
111 | "stream": "stdout",
112 | "text": [
113 | "Probability of winning if you stick: 0.0092\n",
114 | "Probability of winning if you switch: 0.0206\n",
115 | "Fold improvement: 2.239\n"
116 | ]
117 | }
118 | ],
119 | "prompt_number": 3
120 | },
121 | {
122 | "cell_type": "code",
123 | "collapsed": false,
124 | "input": [
125 | "monty_monte(6,4,2,10000) # six doors, four goats, two reveals, why not?"
126 | ],
127 | "language": "python",
128 | "metadata": {},
129 | "outputs": [
130 | {
131 | "output_type": "stream",
132 | "stream": "stdout",
133 | "text": [
134 | "Probability of winning if you stick: 0.3266\n",
135 | "Probability of winning if you switch: 0.8036\n",
136 | "Fold improvement: 2.461\n"
137 | ]
138 | }
139 | ],
140 | "prompt_number": 4
141 | },
142 | {
143 | "cell_type": "code",
144 | "collapsed": false,
145 | "input": [],
146 | "language": "python",
147 | "metadata": {},
148 | "outputs": []
149 | }
150 | ],
151 | "metadata": {}
152 | }
153 | ]
154 | }
155 |
--------------------------------------------------------------------------------
/mortality/Compressed Mortality, 1968-1978 per year.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Prooffreader/Misc_ipynb/5a27a605f312e254a445b1f509915e174b745b09/mortality/Compressed Mortality, 1968-1978 per year.txt
--------------------------------------------------------------------------------
/mortality/Compressed Mortality, 1968-1978 totals.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Prooffreader/Misc_ipynb/5a27a605f312e254a445b1f509915e174b745b09/mortality/Compressed Mortality, 1968-1978 totals.txt
--------------------------------------------------------------------------------
/mortality/Compressed Mortality, 1979-1998 per year.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Prooffreader/Misc_ipynb/5a27a605f312e254a445b1f509915e174b745b09/mortality/Compressed Mortality, 1979-1998 per year.txt
--------------------------------------------------------------------------------
/mortality/Compressed Mortality, 1979-1998 totals.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Prooffreader/Misc_ipynb/5a27a605f312e254a445b1f509915e174b745b09/mortality/Compressed Mortality, 1979-1998 totals.txt
--------------------------------------------------------------------------------
/mortality/README.md:
--------------------------------------------------------------------------------
1 | This folder contains data and analysis related to:
2 |
3 | * The CDC's Compressed Mortality Files were downloaded from http://wonder.cdc.gov/mortsql.html.
4 | * The ICD (International Classification of Diseases) from http://www.wolfbane.com/icd/
5 |
6 | Analyses:
7 |
8 | * unusual_mortality.ipynb, an ipython notebook visualizing unusual causes of death in the CDC database
--------------------------------------------------------------------------------
/mortality/icd-1.txt:
--------------------------------------------------------------------------------
1 | 1 Small-pox: Vaccinated
2 | 2 Small-pox: Not vaccinated
3 | 3 Small-pox: Doubtful
4 | 4 Cow-pox and other effects of vaccination
5 | 5 Chicken-pox
6 | 6 Measles (Morbilli)
7 | 7 German measles
8 | 8 Scarlet fever
9 | 9 Typhus
10 | 10 Plague
11 | 11 Relapsing fever
12 | 12 Influenza
13 | 13 Whooping cough
14 | 14 Mumps
15 | 15 Diphtheria
16 | 16 Cerebro-spinal fever
17 | 17 Pyrexia (origin uncertain)
18 | 18 Enteric fever
19 | 19 Asiatic cholera
20 | 20 Diarrhoea due to food
21 | 21 Infective enteritis, Epidemic diarrhoea
22 | 22 Diarrhoea (not otherwise defined)
23 | 23 Dysentery
24 | 24 Tetanus
25 | 25 Malaria
26 | 26 Rabies, Hydrophobia
27 | 27 Glanders
28 | 28 Anthrax (Splenic fever)
29 | 29 Syphilis
30 | 30 Gonorrhoea
31 | 31 Phlegmasia alba dolens
32 | 32 Puerperal septicaemia, Puerperal septic intoxication
33 | 33 Puerperal pyaemia
34 | 34 Puerperal fever (not otherwise defined)
35 | 35 Infective endocarditis
36 | 36 Pneumonia: Lobar
37 | 37 Pneumonia: Epidemic
38 | 38 Pneumonia: Broncho
39 | 39 Pneumonia: Not defined
40 | 40 Erysipelas
41 | 41 Septicaemia, Septic intoxication (not puerperal)
42 | 42 Pyaemia (not puerperal)
43 | 43 Phegmon, Carbuncle (not anthrax)
44 | 44 Phagedaena
45 | 45 Other infective processes
46 | 46 Pulmonary tuberculosis (tuberculous phthisis)
47 | 47 Phthisis (not otherwise defined)
48 | 48 Tuberculous meningitis
49 | 49 Tuberculous peritonitis
50 | 50 Tabes mesenterica
51 | 51 Lupus
52 | 52 Tubercle of other organs
53 | 53 General tuberculosis
54 | 54 Scrofula
55 | 55 Parasitic diseases
56 | 56 Starvation
57 | 57 Scurvy
58 | 58 Alcoholism, Delirium tremens
59 | 59 Opium, morphia habit
60 | 60 Industrial poisoning by lead
61 | 61 Industrial poisoning by phosphorus
62 | 62 Industrial poisoning by arsenic and other metals
63 | 63 Rheumatic fever, Acute rheumatism
64 | 64 Rheumatism of heart
65 | 65 Chronic rheumatism
66 | 66 Rheumatoid arthritis, Rheumatic gout
67 | 67 Gout
68 | 68 Carcinoma
69 | 69 Sarcoma
70 | 70 Cancer, Malignant disease (not otherwise defined)
71 | 71 Rickets
72 | 72 Purpura
73 | 73 Haemophilia, Haemorrhagic diathesis
74 | 74 Anaemia, Leucocythaemia
75 | 75 Diabetes mellitus
76 | 76 Premature birth
77 | 77 Congenital hydrocephalus
78 | 78 Other congenital defects
79 | 79 Injury at birth
80 | 80 Atelectasis
81 | 81 Want of breast milk
82 | 82 Teething
83 | 83 Meningitis, Inflammation of brain
84 | 84 Softening of brain
85 | 85 General paralysis of insane
86 | 86 Insanity (not puerperal)
87 | 87 Chorea
88 | 88 Epilepsy
89 | 89 Convulsions
90 | 90 Laryngismus stridulus
91 | 91 Locomotor ataxy
92 | 92 Paraplegia, Diseases of cord
93 | 93 Neuritis, peripheral, Polyneuritis
94 | 94 Brain tumour (not specific)
95 | 95 Other diseases of nervous system
96 | 96 Otitis, Mastoid disease
97 | 97 Epistaxis, Diseases of nose
98 | 98 Ophthalmia, Diseases of eye
99 | 99 Valvular disease, Endocarditis (not infective)
100 | 100 Pericarditis
101 | 101 Angina pectoris
102 | 102 Fatty degeneration of heart
103 | 103 Hypertrophy of heart
104 | 104 Dilatation of heart
105 | 105 Syncope, Heart disease (not specified)
106 | 106 Cerebral haemorrhage, Cerebral embolism
107 | 107 Apoplexy, Hemiplegia
108 | 108 Aneurysm
109 | 109 Senile gangrene
110 | 110 Embolism, Thrombosis (not cerebral)
111 | 111 Phlebitis
112 | 112 Varicose veins
113 | 113 Other diseases of blood vessels
114 | 114 Laryngitis
115 | 115 Membranous laryngitis (not diphtheritic)
116 | 116 Croup (not spasmodic nor membranous)
117 | 117 Other diseases of larynx and trachea
118 | 118 Bronchitis
119 | 119 Emphysema, Asthma
120 | 120 Pleurisy
121 | 121 Fibroid disease of lung
122 | 122 Other diseases of respiratory system
123 | 123 Tonsillitis, Quinsy
124 | 124 Diseases of mouth, pharynx, oesophagus (not specific)
125 | 125 Gastric ulcer
126 | 126 Gastritis, Gastric catarrh
127 | 127 Other diseases of stomach (not malignant)
128 | 128 Ulceration of intestines
129 | 129 Enteritis (not epidemic)
130 | 130 Gastro-enteritis
131 | 131 Appendicitis, Perityphlitis
132 | 132 Hernia
133 | 133 Intestinal obstruction
134 | 134 Other diseases of intestines
135 | 135 Peritonitis (not puerperal)
136 | 136 Cirrhosis of liver
137 | 137 Other diseases of liver and gall bladder
138 | 138 Other diseases of digestive system
139 | 139 Diseases of spleen
140 | 140 Other diseases of lymphatic system
141 | 141 Diseases of thyroid body
142 | 142 Diseases of supra renal capsules
143 | 143 Acute nephritis, Uraemia
144 | 144 Chronic Bright's disease, Albuminuria
145 | 145 Calculus (not biliary)
146 | 146 Diseases of bladder and of prostate
147 | 147 Other diseases of urinary system
148 | 148 Ovarian tumour (not malignant)
149 | 149 Other diseases of ovary
150 | 150 Uterine tumour (not malignant)
151 | 151 Other diseases of uterus and vagina
152 | 152 Disorders of menstruation
153 | 153 Other diseases of generative and mammary organs
154 | 154 Abortion, Miscarriage
155 | 155 Puerperal mania
156 | 156 Puerperal convulsions
157 | 157 Placenta praevia, Flooding
158 | 158 Other accidents of pregnancy and childbirth
159 | 159 Caries, Necrosis
160 | 160 Arthritis, Periostitis
161 | 161 Other diseases of locomotor system
162 | 162 Ulcer, Bed-sore
163 | 163 Eczema
164 | 164 Pemphigus
165 | 165 Other diseases of the skin
166 | 166 Atrophy, Debility
167 | 167 Old age
168 | 168 Dropsy, Ascites, Anasarca
169 | 169 Tumour
170 | 170 Abscess
171 | 171 Haemorrhage
172 | 172 Sudden death (cause unascertained)
173 | 173 Other ill-defined causes
174 | 174 Causes not specified
175 | 174.1 Other specified diseases
176 | 175 Violent deaths: In mines and quarries
177 | 176 Violent deaths: Vehicles and horses
178 | 177 Violent deaths: Ships, boats, and docks (not drowning)
179 | 178 Violent deaths: Building operations
180 | 179 Violent deaths: Machinery
181 | 180 Violent deaths: Weapons and instruments
182 | 181 Violent deaths: Burns and scalds
183 | 182 Violent deaths: Poisons, poisonous vapours
184 | 183 Violent deaths: Drowning
185 | 184 Violent deaths: Suffocation
186 | 185 Violent deaths: Falls
187 | 186 Violent deaths: Weather agencies
188 | 187 Violent deaths: Otherwise or not stated
189 | 188 Violent deaths: Battle
190 | 189 Violent deaths: Homicide
191 | 190 Violent deaths: Suicide
192 | 191 Violent deaths: Execution
--------------------------------------------------------------------------------
/mortality/icd-2.txt:
--------------------------------------------------------------------------------
1 | 1 Enteric fever
2 | 2 Typhus
3 | 3
4 | 3A Relapsing fever
5 | 3B Mediterranean fever
6 | 4 Malaria
7 | 5 Small-pox
8 | 6 Measles
9 | 7 Scarlet fever
10 | 8 Whooping cough
11 | 9
12 | 9A Diphtheria
13 | 9B Membranous laryngitis
14 | 9C Croup
15 | 10 Influenza
16 | 11 Miliary fever
17 | 12 Asiatic cholera
18 | 13 Cholera nostras
19 | 14 Dysentery
20 | 15 Plague
21 | 16 Yellow fever
22 | 17 Leprosy
23 | 18 Erysipelas
24 | 19
25 | 19A Mumps
26 | 19B German measles
27 | 19C Varicella
28 | 19D Other epidemic diseases
29 | 20
30 | 20A Pyaemia
31 | 20B Septicaemia
32 | 20C Vaceinia
33 | 21 Glanders
34 | 22 Anthrax (Splenic fever)
35 | 23 Rabies
36 | 24 Tetanus
37 | 25
38 | 25A Actinomycosis
39 | 25B Other mycoses
40 | 26 Pellagra
41 | 27 Beri-beri
42 | 28
43 | 28A Pulmonary tuberculosis
44 | 28B Phthisis (not defined as tuberculous)
45 | 29
46 | 29A Acute phthisis
47 | 29B Acute miliary tuberculosis
48 | 30 Tuberculous meningitis
49 | 31
50 | 31A Tabes mesenterica
51 | 31B Other peritoneal and intestinal tubercle
52 | 32 Tuberculosis of spinal column
53 | 33 Tuberculosis of joints
54 | 34
55 | 34A Lupus
56 | 34B Scrofula
57 | 34C Tuberculosis of other organs
58 | 35 Disseminated tuberculosis
59 | 36
60 | 36A Rickets
61 | 36B Other forms of bone softening
62 | 37 Syphilis
63 | 38
64 | 38A Soft chancre
65 | 38B Gonococcus infection
66 | 38C Purulent ophthalmia
67 | 39 Cancer of the buccal cavity
68 | 40 Cancer of the stomach, liver, etc.
69 | 41 Cancer of the peritoneum, intestines, and rectum
70 | 42 Cancer of the female genital organs
71 | 43 Cancer of the breast
72 | 44 Cancer of the skin
73 | 45 Cancer of the other or unspecified organs
74 | 46
75 | 46A Angioma
76 | 46B Adenoma
77 | 46C Other tumours (situation undefined)
78 | 47 Rheumatic fever
79 | 48
80 | 48A Chronic rheumatism
81 | 48B Osteo-arthritis
82 | 48C Gout
83 | 49 Scurvy
84 | 50 Diabetes
85 | 51 Exophthalmic goitre
86 | 52 Addison's disease
87 | 53
88 | 53A Leucocythaemia (Leuchaemia)
89 | 53B Lymphadenoma
90 | 54 Anaemia, Chlorosis
91 | 55
92 | 55A Diabetes insipidus
93 | 55B Purpura
94 | 55C Haemophilia
95 | 55D Other general diseases
96 | 56 Alcoholism (acute or chronic)
97 | 57
98 | 57A Occupational lead poisoning
99 | 57B Non-occupational lead poisoning
100 | 58 Other chronic occupational poisonings
101 | 59 Other chronic poisonings
102 | 60 Encephalitis
103 | 61
104 | 61A Cerebro-spinal fever
105 | 61B Posterior basal meningitis
106 | 61C Meningitis, other forms
107 | 62 Locomotor ataxy
108 | 63
109 | 63A Diseases of the spinal cord formerly classed to "Other nervous affections"
110 | 63B Poliomyelitis
111 | 63C Other diseases of the spinal cord
112 | 64
113 | 64A Apoplexy
114 | 64B Serous apoplexy and oedema of brain
115 | 64C Cerebral congestion
116 | 64D Cerebral atheroma
117 | 64E Cerebral haemorrhage
118 | 65 Softening of brain
119 | 66
120 | 66A Hemiplegia
121 | 66B Paraplegia
122 | 66C Other forms of paralysis
123 | 67 General paralysis of the insane
124 | 68 Other forms of mental alienation
125 | 69 Epilepsy
126 | 70
127 | 70A Epileptiform convulsions
128 | 70B Other convulsions (non-puerperal; 5 years and over)
129 | 71
130 | 71A Convulsions with teething
131 | 71B Other infantile convulsions (under 5 years)
132 | 72 Chorea
133 | 73
134 | 73A Hysteria, Neuralgia, Sciatica
135 | 73B Neuritis
136 | 74
137 | 74A Idiocy, Imbecility
138 | 74B Cretinism
139 | 74C Cerebral tumour
140 | 74D Other diseases of the nervous system
141 | 75 Diseases of the eyes and annexa
142 | 76
143 | 76A Mastoid disease
144 | 76B Other diseases of the ears
145 | 77 Pericarditis
146 | 78
147 | 78A Acute myocarditis
148 | 78B Infective endocarditis
149 | 78C Other acute endocarditis
150 | 79
151 | 79A Valvular disease
152 | 79B Fatty degeneration of the heart
153 | 79C Other organic disease of the heart
154 | 80 Angina pectoris
155 | 81
156 | 81A Aneurysm
157 | 81B Arterial sclerosis
158 | 81C Other diseases of arteries
159 | 82
160 | 82A Cerebral embolism and thrombosis
161 | 82B Other embolism and thrombosis
162 | 83
163 | 83A Phlebitis
164 | 83B Varix
165 | 83C Pylephlebitis
166 | 83D Varicocele
167 | 84
168 | 84A Status lymphaticus
169 | 84B Other diseases of the lymphatic system
170 | 85
171 | 85A Functional disease of the heart
172 | 85B Epistaxis
173 | 85C Other diseases of the circulatory system
174 | 86 Diseases of the nasal fossae
175 | 87
176 | 87(1) Laryngismus stridulus
177 | 87(2) Laryngitis
178 | 87(3) Other diseases of the larynx
179 | 88 Diseases of the thyroid body
180 | 89
181 | 89A Bronchiectasis, Bronchial catarrh, etc.
182 | 89B Other bronchitis
183 | 90
184 | 90A Bronchiectasis, Bronchial catarrh, etc.
185 | 90B Other bronchitis
186 | 91 Broncho-pneumonia
187 | 92
188 | 92A Lobar pneumonia
189 | 92B Pneumonia (type not stated)
190 | 93
191 | 93A Empyema
192 | 93B Other pleurisy
193 | 94
194 | 94A Pulmonary apoplexy and infarction
195 | 94B Pulmonary oedema and congestion
196 | 94C Hypostatic pneumonia
197 | 94D Collapse of lung (3 months and over)
198 | 95 Gangrene of the lung
199 | 96 Asthma
200 | 97 Pulmonary emphysema
201 | 98
202 | 98A Fibroid disease of lung
203 | 98B Other diseases of the respiratory system
204 | 99
205 | 99A Diseases of the teeth and gums
206 | 99B Thrush, Aphthous stomatitis
207 | 99C Parotitis
208 | 99D Other diseases of the mouth and annexa
209 | 100
210 | 100A Tonsillitis
211 | 100B Ludwig's angina
212 | 100C Other diseases of the pharynx
213 | 101 Diseases of oesophagus
214 | 102 Perforating ulcer of stomach
215 | 103
216 | 103A Inflammation of stomach
217 | 103B Other diseases of the stomach
218 | 104
219 | 104A Infective enteritis, age under 2 years
220 | 104B Diarrhoea - not returned as infective, age under 2 years
221 | 104C Enteritis - not returned as infective, age under 2 years
222 | 104D Gastro-enteritis - not returned as infective, age under 2 years
223 | 104E Dyspepsia, under 2 years
224 | 104F Colic, age under 2 years
225 | 104G Ulceration of intestines, age under 2 years
226 | 104H Duodenal ulcer, age under 2 years
227 | 105
228 | 105A Infective enteritis, age over 2 years
229 | 105B Diarrhoea - not returned as infective, age over 2 years
230 | 105C Enteritis - not returned as infective, age over 2 years
231 | 105D Gastro-enteritis - not returned as infective, age over 2 years
232 | 105E Dyspepsia, age over 2 years
233 | 105F Colic, age over 2 years
234 | 105G Ulceration of intestines, age over 2 years
235 | 105H Duodenal ulcer, age over 2 years
236 | 106 Ankylostomiasis
237 | 107 Other intestinal parasites
238 | 108 Appendicitis
239 | 109
240 | 109A Hernia
241 | 109B Intestinal obstruction
242 | 110 Other diseases of the intestines
243 | 111 Acute yellow atrophy of liver
244 | 112 Hydatid of liver
245 | 113
246 | 113A Cirrhosis of the liver (not returned as alcoholic)
247 | 113B Cirrhosis of the liver (returned as alcoholic)
248 | 113C Diseases formerly classed to "Other diseases of liver and gall bladder"
249 | 114 Biliary calculi
250 | 115 Other diseases of the liver
251 | 116
252 | 116A Infarction of spleen
253 | 116B Other diseases of the spleen
254 | 117 Peritonitis (cause unstated)
255 | 118
256 | 118A Abdominal abscess, Sub-phrenic abscess
257 | 118B Other diseases of the digestive system
258 | 119 Acute nephritis
259 | 120
260 | 120A Bright's disease as in 1901 list
261 | 120B Nephritis (unqualified), 10 years and over, and uraemia
262 | 121 Chyluria
263 | 122
264 | 122A Abscess of kidney
265 | 122B Cystic disease
266 | 122C Suppression of urine
267 | 122D Other diseases of the kidney and annexa
268 | 123 Calculi of the urinary passages
269 | 124 Diseases of the bladder
270 | 125
271 | 125A Perineal abscess
272 | 125B Other diseases of urethra, etc.
273 | 126 Diseases of the prostate
274 | 127 Non-venereal diseases of male genital organs
275 | 128
276 | 128A Menorrhagia
277 | 128B Other uterine haemorrhage
278 | 129 Uterine tumour (non-cancerous)
279 | 130
280 | 130A Disorders of menstruation (except menorrhagia)
281 | 130B Other diseases of the uterus
282 | 131 Ovarian cyst, tumour (non-cancerous)
283 | 132
284 | 132A Diseases of ovary (excluding ovarian tumour)
285 | 132B Other diseases of the female genital organs
286 | 133 Non-puerperal diseases of the breast (non-cancerous)
287 | 134
288 | 134A Abortion
289 | 134B Haemorrhage of pregnancy
290 | 134C Uncontrollable vomiting
291 | 134D Ectopic gestation
292 | 134E Other accidents of pregnancy
293 | 135 Puerperal haemorrhage
294 | 136 Other accidents of childbirth
295 | 137 Puerperal fever
296 | 138
297 | 138A Puerperal nephritis and uraemia
298 | 138B Puerperal albuminuria and Bright's disease
299 | 138C Puerperal convulsions
300 | 139
301 | 139A Puerperal phlegmasia alba dolens and phlebitis
302 | 139B Puerperal embolism and sudden death
303 | 140 Puerperal insanity
304 | 141 Puerperal diseases of the breast
305 | 142
306 | 142A Senile gangrene
307 | 142B Noma, Gangrene of mouth
308 | 142C Noma pudendi
309 | 142D Other gangrene
310 | 143 Carbuncle, Boil
311 | 144
312 | 144A Phlegmon
313 | 144B Acute abscess
314 | 145
315 | 145A Ulcer, Bedsore
316 | 145B Eczema
317 | 145C Pemphigus
318 | 145D Other diseases of integumentary system
319 | 146 Diseases of the bones
320 | 147 Diseases of the joints
321 | 148 Amputations
322 | 149 Other diseases of locomotor system
323 | 150
324 | 150A Congenital hydrocephalus
325 | 150B Phimosis
326 | 150C Congenital malformation of heart
327 | 150D Other congenital malformations
328 | 151
329 | 151A Premature birth
330 | 151B Infantile atrophy, debility, and marasmus
331 | 151C Icterus neonatorum
332 | 151D Sclerema and oedema neonatorum
333 | 151E Want of breast milk
334 | 152
335 | 152A Diseases of umbilicus, etc.
336 | 152B Atelectasis
337 | 152C Injuries at birth
338 | 152D Cyanosis neonatorum
339 | 153 Lack of care
340 | 154
341 | 154A Senile dementia
342 | 154B Senile decay
343 | 155 Suicide by poison
344 | 156 Suicide by asphyxia
345 | 157 Suicide by hanging or strangulation
346 | 158 Suicide by drowning
347 | 159 Suicide by firearms
348 | 160 Suicide by cutting or piercing instruments
349 | 161 Suicide by jumping from high place
350 | 162 Suicide by crushing
351 | 163 Other suicides
352 | 164 Poisoning by food
353 | 165 Other acute poisonings
354 | 166 Conflagration
355 | 167 Burns (conflagration excepted)
356 | 168 Absorption of deleterious gases (conflagration excepted)
357 | 169 Accidental drowning
358 | 170 Injury by firearms
359 | 171 Injury by cutting or piercing instruments
360 | 172 Injury by fall
361 | 173 Injury by in mines and quarries
362 | 174 Injury by machines
363 | 175 Injury by other crushing (vehicles, railways, landslides, etc.)
364 | 176 Injury by animals
365 | 177 Starvation
366 | 178 Excessive cold
367 | 179 Effects of heat
368 | 180 Lightning
369 | 181 Electricity (lightning excepted)
370 | 182 Homicide by firearms
371 | 183 Homicide by cutting or piercing instruments
372 | 184 Homicide by other means
373 | 185 Fractures (cause not specified)
374 | 186 Other violence
375 | 187 Dropsy
376 | 188
377 | 188A Syncope (aged over 1 year and under 70)
378 | 188B Sudden death (not otherwise defined)
379 | 189
380 | 189A Heart failure (aged over 1 year and under 70)
381 | 189B Atrophy, Debility, Marasmus (aged over 1 year and under 70)
382 | 189C Teething
383 | 189D Pyrexia
384 | 189E Other ill-defined deaths
385 | 189F Cause not specified
--------------------------------------------------------------------------------
/mortality/icd-3.txt:
--------------------------------------------------------------------------------
1 | la Typhoid fever
2 | 1b Paratyphoid fever
3 | 2 Typhus fever
4 | 3 Relapsing fever (Spirillum Obermeieri)
5 | 4 Mediterranean fever
6 | 5 Malaria
7 | 6 Small-pox
8 | 7 Measles
9 | 8 Scarlet fever
10 | 9 Whooping cough
11 | 10 Diphtheria
12 | 11
13 | 11a Influenza with pulmonary complications
14 | lla(1) With pneumonic complications
15 | lla(2) With other pulmonary complications
16 | 11b Influenza without pulmonary complications
17 | llb(1) With non-pulmonary complications
18 | llb(2) Without stated complications
19 | 12 Miliary fever
20 | 13 Mumps
21 | 14 Asiatic cholera
22 | 15 Cholera nostras
23 | 16
24 | 16a Amoebic dysentery
25 | 16b Bacillary dysentery
26 | 16c Other or unspecified dysentery
27 | 17
28 | 17a Bubonic plague
29 | 17b Pneumonic plague
30 | 17c Septicaemic plague
31 | 17d Plague not otherwise defined
32 | 18 Yellow fever
33 | 19 Spirochaetosis ictero-haemorrhagica
34 | 20 Leprosy
35 | 21 Erysipelas
36 | 22
37 | 22(1) Acute poliomyelitis
38 | 22(2) Acute polioencephalitis
39 | 23 Encephalitis lethargica
40 | 24 Meningococcal meningitis
41 | 25
42 | 25(1) German measles
43 | 25(2) Varicella
44 | 25(3) Other epidemic and endemic diseases
45 | 26 Glanders
46 | 27 Anthrax
47 | 28 Rabies
48 | 29 Tetanus
49 | 30
50 | 30(1) Actinomycosis
51 | 30(2) Other mycoses
52 | 31 Tuberculosis of the respiratory system
53 | 32 Tuberculosis of the central nervous system
54 | 33 Tuberculosis of the intestines and peritoneum
55 | 34 Tuberculosis of the vertebral column
56 | 35 Tuberculosis of the joints
57 | 36
58 | 36a Tuberculosis of the skin and subcutaneous tissue
59 | 36b Tuberculosis of the bones (vertebral column excepted)
60 | 36c Tuberculosis of the lymphatic system (abdominal glands excepted)
61 | 36d Tuberculosis of the genito-urinary system
62 | 36e Tuberculosis of other sites
63 | 37
64 | 37a Disseminated tuberculosis: acute
65 | 37b Disseminated tuberculosis: chronic or unstated
66 | 38 Syphilis
67 | 39 Soft chancre
68 | 40
69 | 40(1) Gonococcal infection (ophthalmia excepted)
70 | 40(2) Gonorrhoeal or purulent ophthalmia
71 | 41 Purulent infection, Septicaemia
72 | 41(1) For the years 1924-1930 only.
73 | 41(2) (Mention of Vaccinia) for the years 1921-1923 only.
74 | 41(3) (Other) for the years 1921-1923 only.
75 | 42
76 | 42(1) Vaccinia
77 | 42(2) Other infectious diseases
78 | 43 Cancer of the buccal cavity
79 | 44 Cancer of the pharynx, oesophagus, stomach, liver and annexa
80 | 45 Cancer of the peritoneum, intestines & rectum
81 | 46 Cancer of the female genital organs
82 | 47 Cancer of the breast
83 | 48 Cancer of the skin
84 | 49 Cancer of other or unspecified organs
85 | 50 Tumours not returned as malignant (brain and female genital organs excepted)
86 | 51 Rheumatic fever
87 | 52
88 | 52(1) Chronic rheumatism, Chronic arthritis
89 | 52(2) Rheumatoid arthritis, Osteo-arthritis
90 | 52(3) Gout
91 | 53 Scurvy
92 | 54 Pellagra
93 | 55 Beri-beri
94 | 56 Rickets
95 | 57 Diabetes
96 | 58
97 | 58a Pernicious anaemia
98 | 58b Other anaemias and chlorosis
99 | 59 Diseases of the pituitary gland
100 | 60
101 | 60a Exophthalmic goitre
102 | 60b
103 | 60b(1) Myxoedema
104 | 60b(2) Cretinism
105 | 60b(3) Other diseases of the thyroid gland
106 | 61
107 | 61(1) Tetany
108 | 61(2) Other diseases of the parathyroid gland
109 | 62 Diseases of the thymus
110 | 63 Diseases of the adrenals
111 | 64 Diseases of the spleen
112 | 65
113 | 65a Leukaemia
114 | 65b Lymphadenoma
115 | 66 Alcoholism (acute or chronic)
116 | 67
117 | 67(1) Occupational lead poisoning
118 | 67(2) Other chronic poisoning by mineral substances
119 | 68 Chronic poisoning by organic substances
120 | 69
121 | 69(1) Purpura
122 | 69(2) Haemophilia
123 | 69(3) Other general diseases
124 | 70
125 | 70(1) Cerebral abscess
126 | 70(2) Other encephalitis
127 | 71 Meningitis
128 | 72 Tabes dorsalis (locomotor ataxy)
129 | 73 Other diseases of the spinal cord
130 | 74
131 | 74a
132 | 74a(1) Cerebral haemorrhage so returned
133 | 74a(2) Apoplexy (lesion unstated)
134 | 74b
135 | 74b(1) Cerebral embolism
136 | 74b(2) Cerebral thrombosis
137 | 75
138 | 75a Hemiplegia
139 | 75b Other forms of paralysis
140 | 76 General paralysis of the insane
141 | 77 Other forms of insanity
142 | 78 Epilepsy
143 | 79 Convulsions (non-puerperal)
144 | 80 Convulsions (non-puerperal)
145 | 81 Chorea
146 | 82 Hysteria and neuritis
147 | 83 Cerebral softening
148 | 84
149 | 84(1) Idiocy, Imbecility
150 | 84(2) Cerebral tumour
151 | 84(3) Disseminated sclerosis
152 | 84(4) Paralysis agitans
153 | 84(5) Other diseases of the nervous system
154 | 85 Diseases of the eye and annexa
155 | 86
156 | 86(1) Diseases of the mastoid sinus
157 | 86(2) Diseases of the ear
158 | 87 Pericarditis
159 | 88
160 | 88(1) Malignant endocarditis
161 | 88(2) Other acute endocarditis
162 | 88(3) Acute myocarditis
163 | 89 Angina pectoris
164 | 90
165 | 90(1) Aortic valve disease
166 | 90(2) Mitral valve disease
167 | 90(3) Aortic and mitral valve disease
168 | 90(4) Other or unspecified valve disease
169 | 90(5) Fatty heart
170 | 90(6) Dilatation of heart (cause unspecified)
171 | 90(7) Other or unspecified myocardial disease
172 | 90(8) Disordered action of the heart
173 | 90(9) Heart disease (undefined)
174 | 91
175 | 91a Aneurysm
176 | 91b
177 | 91b(1) Arterio-sclerosis with cerebral vascular lesion
178 | 91b(2) Arterio-sclerosis without record of cerebral vascular lesion
179 | 91c Other diseases of the arteries
180 | 92 Embolism and thrombosis (not cerebral)
181 | 93 Diseases of the veins (varix, haemorrhoids, phlebitis, etc.)
182 | 94 Diseases of the lymphatic system (lymphangitis, etc.)
183 | 95 Haemorrhage without stated cause
184 | 96 Other diseases of the circulatory system
185 | 97
186 | 97(1) Diseases of the nose
187 | 97(2) Diseases of the accessory nasal sinuses
188 | 98
189 | 98(1) Laryngismus stridulus
190 | 98(2) Laryngitis
191 | 98(3) Other diseases of the larynx
192 | 99 Bronchitis
193 | 99a Acute bronchitis
194 | 99b Chronic bronchitis
195 | 99c Bronchitis not distinguished as acute or chronic
196 | 99d Bronchitis not distinguished as acute or chronic
197 | 100 Broncho-pneumonia
198 | 101
199 | 101a Lobar pneumonia
200 | 101b Pneumonia (not otherwise specified)
201 | 102
202 | 102(1) Empyema
203 | 102(2) Other pleurisy
204 | 103 Congestion and haemorrhagic infarct of lung
205 | 104 Gangrene of the lung
206 | 105 Asthma
207 | 106 Pulmonary emphysema
208 | 107
209 | 107a Chronic interstitial pneumonia, including occupational diseases of the lung
210 | 107b Diseases of the mediastinum
211 | 107c Other diseases of the respiratory system
212 | 108
213 | 108(1) Diseases of the teeth and gums
214 | 108(2) Ludwig's angina
215 | 108(3) Other diseases of the buccal cavity and annexa
216 | 109
217 | 109(1) Tonsillitis, Adenoid vegetations
218 | 109(2) Other diseases of the pharynx and tonsils
219 | 110 Diseases of the oesophagus
220 | 111
221 | 111a Ulcer of the stomach
222 | 111b Ulcer of the duodenum
223 | 112
224 | 112(1) Inflammation of the stomach
225 | 112(2) Other diseases of the stomach
226 | 113
227 | 113(1) Ulceration of the intestines
228 | 113(2) Colitis
229 | 113(3) Other diseases included under diarrhoea and enteritis
230 | 114
231 | 114(1) Ulceration of the intestines
232 | 114(2) Colitis
233 | 114(3) Other diseases included under diarrhoea and enteritis
234 | 115 Ankylostomiasis
235 | 116
236 | 116a Diseases due to cestodes (hydatids of the liver excepted)
237 | 116b Diseases due to trematodes
238 | 116c Diseases due to nematodes (other than ankylostoma)
239 | 116d Diseases due to coccidia
240 | 116e Diseases due to other specified intestinal parasites
241 | 116f Diseases due to undefined intestinal parasites
242 | 117 Appendicitis
243 | 118
244 | 118a Hernia
245 | 118b Intestinal obstruction
246 | 119
247 | 119(1) Intestinal stasis
248 | 119(2) Other diseases of the intestines
249 | 120 Acute yellow atrophy of the liver
250 | 121 Hydatid tumour of the liver
251 | 122 Cirrhosis of the liver
252 | 122a Returned as alcoholic
253 | 122b Not returned as alcoholic
254 | 123 Biliary calculi
255 | 124 Other diseases of the liver
256 | 125 Diseases of the pancreas
257 | 126 Peritonitis without stated cause
258 | 127 Other diseases of the digestive system
259 | 128 Acute nephritis (including unspecified under 10 years of age)
260 | 129 Chronic nephritis (including unspecified over 10 years of age)
261 | 130 Chyluria
262 | 131 Other diseases of the kidney and annexa
263 | 132 Calculi of the urinary passages
264 | 133 Diseases of the bladder
265 | 133(1) Cystitis
266 | 133(2) Other diseases of the bladder
267 | 134
268 | 134a Stricture of the urethra
269 | 134b Other diseases of the urethra, etc.
270 | 135 Diseases of the prostate
271 | 136 Non-venereal diseases of the male genital organs
272 | 137 Cysts, and other tumours of the ovary not returned as malignant
273 | 138
274 | 138(1) Salpingitis
275 | 138(2) Pelvic abscess in females
276 | 139 Tumours of the uterus not returned as malignant
277 | 140 Non-puerperal uterine haemorrhage
278 | 141
279 | 141(1) Other diseases of the uterus
280 | 141(2) Diseases of other female genital organs not included under other headings
281 | 142 Non-puerperal diseases of the breast
282 | 143
283 | 143a Abortion
284 | 143b Ectopic gestation
285 | 143c Other accidents of pregnancy
286 | 144 Puerperal haemorrhage
287 | 145 Other accidents of childbirth
288 | 146 Puerperal sepsis
289 | 147
290 | 147(1) Puerperal phlegmasia alba dolens not returned as septic
291 | 147(2) Puerperal embolism and sudden death
292 | 148 Puerperal albuminuria and convulsions
293 | 149 Childbirth not assignable to other headings (puerperal insanity)
294 | 150 Puerperal diseases of the breast
295 | 151
296 | 151(1) Senile gangrene
297 | 151(2) Other gangrene
298 | 152 Carbuncle, Boil
299 | 153
300 | 153(1) Cellulitis
301 | 153(2) Acute abscess
302 | 154
303 | 154(1) Ulcer, Bedsore
304 | 154(2) Eczema
305 | 154(3) Pemphigus
306 | 154(4) Other diseases of the skin and its annexa
307 | 155
308 | 155(1) Acute infective osteo-myelitis and periostitis
309 | 155(2) Other diseases of the bones
310 | 156 Diseases of the joints
311 | 157 Amputations
312 | 158 Other diseases of the organs of locomotion
313 | 159
314 | 159(1) Congenital hydrocephalus
315 | 159(2) Congenital malformation of heart
316 | 159(3) Other congenital malformations
317 | 160
318 | 160(1) Congenital debility and sclerema
319 | 160(2) Icterus neonatorum
320 | 161
321 | 161(1) Premature birth
322 | 161(2) Injury at birth
323 | 162
324 | 162(1) Diseases of the umbilicus
325 | 162(2) Atelectasis
326 | 162(3) Other diseases peculiar to early infancy
327 | 163 Lack of care
328 | 164
329 | 164(1) Senile dementia
330 | 164(2) Other forms of senile decay
331 | 165 Suicide by solid or liquid poisons & corrosive substances
332 | 166 Suicide by solid or liquid poisons & corrosive substances
333 | 167 Suicide by poisonous gas
334 | 168 Suicide by hanging or strangulation
335 | 169 Suicide by drowning
336 | 170 Suicide by firearms
337 | 171 Suicide by cutting or piercing instruments
338 | 172 Suicide by jumping from high place
339 | 173 Suicide by crushing
340 | 174 Suicide by other means
341 | 175 Food poisoning
342 | 176 Poisoning by venomous animals
343 | 177 Other acute accidental poisoning (not by gas)
344 | 178 Conflagration
345 | 179 Accidental burns (conflagration excepted)
346 | 180 Accidental mechanical suffocation
347 | 181 Accidental absorption of irrespirable or poisonous gas
348 | 182 Accidental drowning
349 | 183 Accidental injury by firearms
350 | 184 Accidental injury by cutting or piercing instruments
351 | 185 Accidental injury by fall
352 | 186 Accidental injury in mining and quarrying
353 | 187 Accidental injury by machinery
354 | 188 Accidental injury by other forms of crushing (road vehicles, on railways, etc.)
355 | 189 Injury by animals (poisoning by venomous animals excepted)
356 | 190 Wounds of war
357 | 191 Execution of civilians by belligerent armies
358 | 192 Hunger or thirst
359 | 193 Excessive cold
360 | 194 Excessive heat
361 | 195 Lightning
362 | 196 Electricity (lightning excepted)
363 | 197 Homicide by firearms
364 | 198 Homicide by cutting or piercing instruments
365 | 199 Homicide by other means
366 | 201 Fracture (cause not specified)
367 | 202 Other and unstated forms of accidental violence; Execution
368 | 203 Violent deaths of unstated nature (i.e. accidental, suicidal, etc.) and cause
369 | 204 Sudden death
370 | 205
371 | 205(1) Heart failure (age 1-70)
372 | 205(2) Other ill-defined causes
373 | 205(3) Cause not specified
--------------------------------------------------------------------------------
/mortality/icd-4.txt:
--------------------------------------------------------------------------------
1 | 1 Typhoid fever
2 | 2 Paratyphoid fevers
3 | 3 Typhus fever
4 | 4 Relapsing fever (Spirillum Obermeieri)
5 | 5 Undulant fever
6 | 6 Small-pox
7 | 7 Measles
8 | 8 Scarlet fever
9 | 9 Whooping cough
10 | 10 Diphtheria
11 | 11
12 | 11a
13 | lla(1) Influenza with respiratory complications, with pneumonic complications
14 | 11a(2) Influenza with respiratory complications, with other respiratory complications
15 | 11b
16 | llb(1) Influenza without respiratory complications, with non-respiratory complications
17 | 11b(2) Influenza without respiratory complications, without stated complications
18 | 12 Cholera
19 | 13
20 | 13a Amoebic dysentery
21 | 13b Bacillary dysentery
22 | 13c Other or unspecified dysentery
23 | 14 Plague
24 | 15 Erysipelas
25 | 16
26 | 16(1) Acute poliomyelitis
27 | 16(2) Acute polioencephalitis
28 | 17 Encephalitis lethargica
29 | 18 Cerebro-spinal fever
30 | 19 Glanders
31 | 20 Anthrax
32 | 21 Rabies
33 | 22 Tetanus
34 | 23 Tuberculosis of the respiratory system
35 | 24 Tuberculosis of the central nervous system
36 | 25 Tuberculosis of the intestines and peritoneum
37 | 26 Tuberculosis of the vertebral column
38 | 27 Tuberculosis of the other bones and joints
39 | 28 Tuberculosis of the skin and subcutaneous tissues
40 | 29 Tuberculosis of the lymphatic system (abdominal and bronchial glands excepted)
41 | 30 Tuberculosis of the genito-urinary system
42 | 31
43 | 31(1) Tuberculosis of the adrenals
44 | 31(2) Tuberculosis of the other sites
45 | 32
46 | 32a Acute disseminated tuberculosis
47 | 32b Chronic disseminated tuberculosis
48 | 32c Disseminated tuberculosis not distinguished as acute or chronic
49 | 33 Leprosy
50 | 34
51 | 34a Congenital syphilis
52 | 34b Acquired or unspecified syphilis
53 | 34c Acquired or unspecified syphilis
54 | 35
55 | 35(1) Gonorrhoeal or purulent ophthalmia
56 | 35(2) Other venereal diseases
57 | 36
58 | 36a Septicaemia
59 | 36b Pyaemia
60 | 36c Gas gangrene
61 | 37 Yellow fever
62 | 38 Malaria
63 | 39 Other diseases due to protozoa
64 | 40 Ankylostomiasis
65 | 41
66 | 41a Hydatid cysts of liver
67 | 41b Hydatid cysts of other organs
68 | 42 Other diseases due to helminths
69 | 43
70 | 43(1) Actinomycosis
71 | 43(2) Other mycoses
72 | 44
73 | 44(1) Vaccinia
74 | 44(2) Other sequelae of vaccination
75 | 44(3) German measles
76 | 44(4) Varicella
77 | 44(5) Mumps
78 | 44(6) Pink disease
79 | 44(7) Other infectious or parasitic diseases
80 | 45 Cancer of the buccal cavity and pharynx
81 | 46 Cancer of the digestive organs and peritoneum
82 | 47 Cancer of the respiratory organs
83 | 48 Cancer of the uterus
84 | 49 Cancer of the other female genital organs
85 | 50 Cancer of the breast
86 | 51 Cancer of the male genito-urinary organs
87 | 52 Cancer of the skin
88 | 53 Cancer of the other or unspecified organs
89 | 54
90 | 54a Non-malignant tumours of the female genital organs
91 | 54b Non-malignant tumours of the other sites
92 | 55
93 | 55a Tumours of undetermined nature of the female genital organs
94 | 55b Tumours of undetermined nature of the other sites
95 | 56 Rheumatic fever
96 | 57
97 | 57(1) Chronic rheumatism
98 | 57(2) Rheumatoid arthritis, Osteo-arthritis
99 | 58 Gout
100 | 59 Diabetes
101 | 60 Scurvy
102 | 61 Beri-beri
103 | 62 Pellagra
104 | 63
105 | 63(1) Rickets
106 | 63(2) Spinal curvatures of undetermined nature
107 | 64 Osteomalacia
108 | 65
109 | 65(1) Infantilism
110 | 65(2) Other diseases of the pituitary gland
111 | 66
112 | 66a Simple goitre
113 | 66b Exophthalmic goitre
114 | 66c Myxoedema, Cretinism
115 | 66d Tetany
116 | 66e Other diseases of the thyroid and parathyroid glands
117 | 67 Diseases of the thymus
118 | 68 Diseases of the adrenals
119 | 69
120 | 69(1) Amyloid disease of unstated origin
121 | 69(2) Other general diseases
122 | 70
123 | 70a Purpura
124 | 70b Haemophilia
125 | 71
126 | 71a Pernicious anaemia
127 | 71b
128 | 71b(1) Splenic anaemia
129 | 71b(2) Other anaemias and chlorosis
130 | 72
131 | 72a Leukaemia
132 | 72b
133 | 72b(1) Aleukaemia (Lymphadenoma)
134 | 72b(2) Aleukaemia (agranulocytosis)
135 | 73
136 | 73(1) Banti's disease
137 | 73(2) Other diseases of the spleen
138 | 74 Other diseases of the blood and blood-forming organs
139 | 75 Alcoholism (acute or chronic)
140 | 76 Chronic poisoning by other organic substances
141 | 77
142 | 77(1) Occupational lead poisoning
143 | 77(2) Other chronic poisoning by mineral substances
144 | 78
145 | 78a Cerebral abscess
146 | 78b Other encephalitis
147 | 79 Meningitis
148 | 80 Tabes dorsalis (locomotor ataxy)
149 | 81
150 | 81(1) Progressive muscular atrophy
151 | 81(2) Sub-acute combined sclerosis
152 | 81(3) Myelitis of unstated origin
153 | 81(4) Other diseases of the spinal cord
154 | 82
155 | 82a
156 | 82a(1) Cerebral haemorrhage so returned
157 | 82a(2) Apoplexy (lesion unstated)
158 | 82b
159 | 82b(1) Cerebral embolism
160 | 82b(2) Cerebral thrombosis
161 | 82b(3) Cerebral softening
162 | 82c
163 | 82c(1) Hemiplegia
164 | 82c(2) Other paralyses of unstated origin
165 | 83 General paralysis of the insane
166 | 84
167 | 84a Dementia praecox
168 | 84b Other forms of insanity
169 | 85 Epilepsy
170 | 86 Infantile convulsions (age under 5 years)
171 | 87
172 | 87a Chorea
173 | 87b Neuritis, Neuralgia
174 | 87c Paralysis agitans
175 | 87d Disseminated sclerosis
176 | 87e Other diseases of the nervous system
177 | 88 Diseases of the eye and annexa
178 | 89
179 | 89a Otitis, and other diseases of the ear
180 | 89b Diseases of the mastoid sinus
181 | 90 Pericarditis
182 | 91
183 | 91(1) Malignant endocarditis
184 | 91(2) Other acute endocarditis
185 | 92
186 | 92(1) Aortic valve disease
187 | 92(2) Mitral valve disease
188 | 92(3) Aortic and mitral valve disease
189 | 92(4) Endocarditis, not returned as acute or chronic
190 | 92(5) Other or unspecified valve disease
191 | 93
192 | 93a Acute myocarditis
193 | 93b
194 | 93b(1) Fatty heart
195 | 93b(2) Cardio-vascular degeneration
196 | 93b(3) Other myocardial degeneration
197 | 93c Myocarditis, not returned as acute or chronic
198 | 94 Diseases of the coronary arteries, Angina pectoris
199 | 95
200 | 95a Disordered action of heart
201 | 95b(1) Dilatation of heart (cause unspecified)
202 | 95b(2) Heart disease (undefined)
203 | 96 Aneurysm
204 | 97
205 | 97(1) Arterio-sclerosis, with cerebral haemorrhage
206 | 97(2) Arterio-sclerosis, with record of other cerebral vascular lesion
207 | 97(3) Arterio-sclerosis, without record of cerebral vascular lesion
208 | 98
209 | 98a Senile gangrene
210 | 98b Other gangrene
211 | 99 Other diseases of the arteries
212 | 100
213 | 100(1) Varix
214 | 100(2) Other diseases of the veins
215 | 101 Diseases of the lymphatic system (lymphangitis, etc.)
216 | 102 Abnormalities of blood-pressure
217 | 103 Other diseases of the circulatory system
218 | 104
219 | 104(1) Diseases of the nose
220 | 1O4(2) Diseases of the accessory nasal sinuses
221 | 105
222 | 105(1) Laryngismus stridulus
223 | 105(2) Laryngitis
224 | 105(3) Other diseases of the larynx
225 | 106
226 | 106a Acute bronchitis
227 | 106b Chronic bronchitis
228 | 106c Bronchitis, not distinguished as acute or chronic
229 | 107 Broncho-pneumonia
230 | 108 Lobar pneumonia
231 | 109 Pneumonia (not otherwise defined)
232 | 110
233 | 110(1) Empyema
234 | 110(2) Other pleurisy
235 | 111
236 | 111(1) Hypostatic congestion of lungs
237 | 111(2) Other congestion and haemorrhagic infarct of lung, etc.
238 | 112 Asthma
239 | 113 Pulmonary emphysema
240 | 114
241 | 114a Chronic interstitial pneumonia, including occupational diseases of the lung
242 | 114b
243 | 114b(1) Gangrene of the lung
244 | 114b(2) Other diseases of the respiratory system
245 | 115
246 | 115(1) Diseases of the teeth and gums
247 | 115(2) Ludwig's angina
248 | 115(3) Diseases of the tonsils
249 | 115(4) Other diseases of the buccal cavity, pharynx, etc.
250 | 116 Diseases of the oesophagus
251 | 117
252 | 117a Ulcer of the stomach
253 | 117b Ulcer of the duodenum
254 | 118
255 | 118(1) Inflammation of the stomach
256 | 118(2) Other diseases of the stomach
257 | 119
258 | 119a Colitis (age under two)
259 | 119b Other diarrhoea and enteritis (age under two)
260 | 119c Ulceration of intestines (age under two)
261 | 120
262 | 120a
263 | 120a(1) Colitis
264 | 120a(2) Other diarrhoea and enteritis
265 | 120b Ulceration of intestines
266 | 121 Appendicitis
267 | 122
268 | 122a
269 | 122a(1) Strangulated hernia
270 | 122a(2) Hernia not returned as strangulated
271 | 122b Intestinal obstruction
272 | 123
273 | 123(1) Constipation, Intestinal stasis
274 | 123(2) Diverticulitis
275 | 123(3) Other diseases of the intestines
276 | 124
277 | 124a Cirrhosis of the liver returned as alcoholic
278 | 124b Cirrhosis of the liver not returned as alcoholic
279 | 125
280 | 125(1) Acute yellow atrophy
281 | 125(2) Other diseases of the liver
282 | 126
283 | 126(1) Biliary calculi with cholecystitis
284 | 126(2) Biliary calculi without mention of cholecystitis
285 | 127
286 | 127(1) Cholecystitis, without record of biliary calculi
287 | 127(2) Other diseases of the gall bladder and ducts
288 | 128 Diseases of the pancreas
289 | 129 Peritonitis, without stated cause
290 | 130 Acute nephritis
291 | 131 Chronic nephritis
292 | 132 Nephritis, not stated to be acute or chronic
293 | 133
294 | 133a Pyelitis
295 | 133b Other diseases of the kidney and annexa
296 | 134
297 | 134a Calculi of kidney and ureter
298 | 134b Calculi of the bladder
299 | 134c Calculi of unstated site
300 | 135
301 | 135a Cystitis
302 | 135b Other diseases of the bladder
303 | 136
304 | 136a Stricture of the urethra
305 | 136b Other diseases of the urethra, etc.
306 | 137 Diseases of the prostate
307 | 138 Diseases of the male genital organs
308 | 139
309 | 139a
310 | 139a(1) Diseases of the ovary
311 | 139a(2) Diseases of the Fallopian tube
312 | 139a(3) Diseases of the parametrium
313 | 139b Diseases of the uterus
314 | 139c Diseases of the breast
315 | 139d Other diseases of the female genital organs
316 | 140 Post-abortive sepsis
317 | 141
318 | 141(1) Haemorrhage following abortion
319 | 141(2) Abortion without record of haemorrhage
320 | 142 Ectopic gestation
321 | 143 Other accidents of pregnancy
322 | 144
323 | 144a Placenta praevia
324 | 144b Other puerperal haemorrhage
325 | 145
326 | 145a Puerperal septicaemia and pyaemia not returned as post-abortion
327 | 145b Puerperal tetanus not returned as post-abortion
328 | 146 Puerperal albuminuria and convulsions
329 | 147 Other toxaemias of pregnancy
330 | 148
331 | 148a Puerperal phlegmasia alba dolens not returned as septic
332 | 148b Puerperal embolism and sudden death
333 | 149 Other accidents of childbirth
334 | 150
335 | 150(1) Puerperal insanity
336 | 150(2) Puerperal diseases of the breast
337 | 150(3) Childbirth (unqualified)
338 | 151 Carbuncle, Boil
339 | 152
340 | 152(1) Cellulitis
341 | 152(2) Acute abscess
342 | 153 Other diseases of the skin and its annexa
343 | 154 Acute infective osteomyelitis and periostitis
344 | 155 Other diseases of the bones
345 | 156
346 | 156a Diseases of the joints
347 | 156b Diseases of other organs of locomotion
348 | 157
349 | 157a Congenital hydrocephalus
350 | 157b Spina bifida and meningocele
351 | 157c Congenital malformation of heart
352 | 157d Monstrosities
353 | 157e
354 | 157e(1) Congenital pyloric stenosis
355 | 157e(2) Cleft palate, Harelip
356 | 157e(3) Imperforate anus
357 | 157e(4) Other stated congenital malformations
358 | 157e(5) Congenital malformation, unspecified
359 | 158 Congenital debility
360 | 159 Premature birth
361 | 160
362 | 160a Injury at birth with mention of Caesarean section
363 | 160b Injury at birth without mention of Caesarean section
364 | 161
365 | 161a Atelectasis
366 | 161b Icterus neonatorum
367 | 161(1) Diseases of the umbilicus
368 | 161(2) Pemphigus neonatorum
369 | 161(3) Other diseases peculiar to early infancy
370 | 162
371 | 162a Senile dementia
372 | 162b Other forms of senile decay
373 | 163 Suicide by solid or liquid poisons and corrosive substances
374 | 164 Suicide by poisonous gas
375 | 165 Suicide by hanging or strangulation
376 | 166 Suicide by drowning
377 | 167 Suicide by firearms
378 | 168 Suicide by cutting or piercing instruments
379 | 169 Suicide by jumping from high places
380 | 170 Suicide by crushing
381 | 171 Suicide by other means
382 | 172 Infanticide (under one year)
383 | 173 Homicide by firearms
384 | 174 Homicide by cutting or piercing instruments
385 | 175 Homicide by other means
386 | 176 Attack by venomous animals
387 | 177 Food poisoning
388 | 178 Accidental absorption of irrespirable or poisonous gas
389 | 179 Other acute accidental poisoning (not by gas)
390 | 180 Conflagration
391 | 181 Accidental burns (conflagration excepted)
392 | 182 Accidental mechanical suffocation
393 | 183 Accidental drowning
394 | 184 Accidental injury by firearms
395 | 185 Accidental injury by cutting or piercing instruments
396 | 186 Accidental injury by fall, crushing, etc.
397 | 187 Cataclysm
398 | 188 Injury by animals (poisoning by venomous animals excepted)
399 | 189 Hunger or thirst
400 | 190 Excessive cold
401 | 191 Excessive heat
402 | 192 Lightning
403 | 193 Electricity (lightning excepted)
404 | 194
405 | 194(1) Inattention at birth
406 | 194(2) Other and unstated forms of accidental violence
407 | 195 Violent deaths of unstated nature (i.e. accidental, suicidal, etc.)
408 | 196 Wounds of war
409 | 197 Execution of civilians by belligerent armies
410 | 198 Execution
411 | 199 Sudden death
412 | 200
413 | 200(1) Heart failure
414 | 200(2) Other ill-defined causes
415 | 200(3) Cause not specified
416 |
--------------------------------------------------------------------------------
/star_trek_tos/star_trek_tos_char_dialogue.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Star Trek TOS Character Dialogue
6 |
7 |
8 |
9 |
12 |
13 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/star_trek_tos/tos_episode_numbers.tsv:
--------------------------------------------------------------------------------
1 | number title
2 | 2 Where No Man Has Gone Before
3 | 3 The Corbomite Maneuver
4 | 4 Mudd's Women
5 | 5 The Enemy Within
6 | 6 The Man Trap
7 | 7 The Naked Time
8 | 8 Charlie X
9 | 9 Balance of Terror
10 | 10 What Are Little Girls Made Of?
11 | 11 Dagger Of The Mind
12 | 12 Miri
13 | 13 The Conscience of the King
14 | 14 The Galileo Seven
15 | 15 Court Martial
16 | 16 The Menagerie
17 | 17 Shore Leave
18 | 18 The Squire of Gothos
19 | 19 Arena
20 | 20 The Alternative Factor
21 | 21 Tomorrow is Yesterday
22 | 22 The Return of The Archons
23 | 23 A Taste of Armageddon
24 | 24 Space Seed
25 | 25 This Side of Paradise
26 | 26 The Devil In The Dark
27 | 27 Errand of Mercy
28 | 28 The City on the Edge of Forever
29 | 29 Operation: Annihilate!
30 | 30 Catspaw
31 | 31 Metamorphosis
32 | 32 Friday's Child
33 | 33 Who Mourns For Adonais?
34 | 34 Amok Time
35 | 35 The Doomsday Machine
36 | 36 Wolf In The Fold
37 | 37 The Changeling
38 | 38 The Apple
39 | 39 Mirror, Mirror
40 | 40 The Deadly Years
41 | 41 I, Mudd
42 | 42 The Trouble With Tribbles
43 | 43 Bread And Circuses
44 | 44 Journey to Babel
45 | 45 A Private Little War
46 | 46 The Gamesters Of Triskelion
47 | 47 Obsession
48 | 48 The Immunity Syndrome
49 | 49 A Piece Of The Action
50 | 50 By Any Other Name
51 | 51 Return To Tomorrow
52 | 52 Patterns Of Force
53 | 53 The Ultimate Computer
54 | 54 The Omega Glory
55 | 55 Assignment: Earth
56 | 56 Spectre Of The Gun
57 | 57 Elaan of Troyius
58 | 58 The Paradise Syndrome
59 | 59 The Enterprise Incident
60 | 60 And The Children Shall Lead
61 | 61 Spock's Brain
62 | 62 Is There In Truth No Beauty?
63 | 63 The Empath
64 | 64 The Tholian Web
65 | 65 For The World Is Hollow And I Have Touched The Sky
66 | 66 The Day Of The Dove
67 | 67 Plato's Stepchildren
68 | 68 Wink Of An Eye
69 | 69 That Which Survives
70 | 70 Let That Be Your Last Battlefield
71 | 71 Whom Gods Destroy
72 | 72 The Mark Of Gideon
73 | 73 The Lights Of Zetar
74 | 74 The Cloud Minders
75 | 75 The Way To Eden
76 | 76 Requiem For Methuselah
77 | 77 The Savage Curtain
78 | 78 All Our Yesterdays
79 | 79 Turnabout Intruder
80 | 16b The Menagerie, Part 2
81 |
--------------------------------------------------------------------------------
/star_trek_tos/tos_transcript_1.txt:
--------------------------------------------------------------------------------
1 | character line
2 |
--------------------------------------------------------------------------------
/star_trek_tos/tos_transcript_10.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Prooffreader/Misc_ipynb/5a27a605f312e254a445b1f509915e174b745b09/star_trek_tos/tos_transcript_10.txt
--------------------------------------------------------------------------------
/star_trek_tos/tos_transcript_32.txt:
--------------------------------------------------------------------------------
1 | character line
2 | MCCOY They're quite large. Seven feet tall is not unusual. They're extremely fast and strong. Lieutenant? Make no mistake. They can be highly dangerous. The Capellans' basic weapon, the kligat. At any distance up to a hundred yards, they can make it almost as effective against a man as a phaser.
3 | MCCOY In addition, an assortment of swords and knives.
4 | UHURA Call from the bridge, Captain.
5 | SULU Bridge, Helm, sir.
6 | KIRK Yes, Mister Sulu. Report.
7 | SULU Now in standard orbit, sir. I've pinpointed their encampment below.
8 | KIRK Very good. Have the transporter room stand by.
9 | SULU Aye, sir.
10 | SCOTT How long were you stationed on the planet, Doctor?
11 | MCCOY Only a few months. We found them totally uninterested in medical aid or hospitals. They believe only the strong should survive.
12 | KIRK Analysis, gentlemen.
13 | SPOCK Ordinarily, under these circumstances, I would recommend a large, well-armed landing party.
14 | KIRK Yes, but in this case, with the more people we take down, the greater chance we have of violating one of their taboos.
15 | MCCOY Agreed. Once they've got it into their heads we're showing force, you can forget them signing any mining treaty.
16 | KIRK Very well. Scotty, you're in command. Bear in mind that the Klingons have been sighted in this sector. While we're negotiating down there, we don't want the Enterprise to become an incident up here.
17 | SCOTT Aye, sir. We'll keep on our toes.
18 | MAAB Halt! You are of the Earth vessel?
19 | KIRK I'm Captain Kirk.
20 | MCCOY We come with open hearts and hands.
21 | GRANT A Klingon!
22 | KIRK Grant, no!
23 | MCCOY Don't move a muscle.
24 | KIRK Captain's log, stardate 3497.2. Planet Capella Four. The rare mineral topaline, vital to the life-support systems of planetoid colonies, has been discovered in abundance here. Our mission, obtain a mining agreement. But we've discovered a Klingon agent has preceded us to the planet. A discovery which has cost the life of one of my crewmen.
25 | KRAS I am unaware of any state of war between our peoples, Captain.
26 | MCCOY Jim!
27 | KRAS Or is it your policy to kill Klingons on sight?
28 | KIRK He was young, and inexperienced.
29 | MCCOY Does Maab know that the Klingons are our sworn enemies by their own words?
30 | MAAB We understand only that he also offers things of value for our rocks, and he has freely handed us his weapons and other devices. Will you do the same?
31 | KIRK Let me call my ship and inform them
32 | KRAS To bring down an attack upon their village? It is as I told you, Maab. Earthmen fear to bargain honestly.
33 | MAAB Will you hand us your weapons?
34 | KIRK So they keep their word scrupulously. They're unusually honest. Is that what I heard you say, Doctor?
35 | MCCOY Yes, I mentioned that.
36 | SPOCK He also mentioned that they can be highly dangerous.
37 | KIRK Dangerous if lied to, if their customs are violated. We lied to no one, Doctor. We violated no customs. Perhaps you'll explain to me why one of my men is dead.
38 | MCCOY Because he was drawing a weapon on another of their guests.
39 | KIRK Grant looked up, saw a Klingon, made a purely instinctive defensive move. What's a Klingon doing down here among your scrupulously honest friends anyway?
40 | MCCOY Look, Jim. I know what it means to you to lose a crewman.
41 | KIRK That's only one down, Doctor. There's over four hundred more up there in orbit. And if there's a Klingon down here, there might be a Klingon ship up there somewhere.
42 | CHEKOV Mister Scott. I'm picking up something on the sensors, sir. Seems to be another ship.
43 | SCOTT Well, let's put it on the screen.
44 | CHEKOV It's just at the edge of our sensor range, sir. Hard to get an exact reading.
45 | SULU You think it's a Klingon ship?
46 | SCOTT Who else would be playing cat and mouse with a starship? Well, they can't hurt us much out there, bobbing about like that. No need to call the captain yet.
47 | KIRK Bones.
48 | MCCOY Yes, Captain?
49 | KIRK I shouldn't have chewed you out. I'm sorry.
50 | MCCOY I understand.
51 | SPOCK Inefficient, however. Emotion, Captain.
52 | KIRK Yes, you're quite right, Mister Spock. Inefficient and illogical.
53 | MCCOY You've shown friendship by handing over our weapons. She's making a gesture in return.
54 | MCCOY Jim! You touch it, her nearest male relative will have to try to kill you. They're offering you a chance for combat. They consider it more pleasurable than love.
55 | MAN Chur-ah.
56 | SPOCK It would appear, Captain, that he finds you a disappointment.
57 | AKAAR I am the teer Akaar. I lead the Ten Tribes of Capella.
58 | AKAAR And this is Eleen, a young wife to give an old man a son to rule these tribes.
59 | KIRK I'm Captain Kirk. First of all, I must protest the killing of my crewman.
60 | AKAAR If it was your man, wasn't it his privilege to die for you? I do not understand.
61 | MAAB Their customs are different, Teer.
62 | KRAS And different from those of my people, too, Teer. The sight of death frightens them.
63 | MCCOY Let me take this, Jim. What Maab has said is true. Our customs are different. What the Klingon has said is unimportant, and we do not hear his words. I just called the Klingon a liar.
64 | MAAB Laughter, Teer? Is not the Klingon an honoured guest also?
65 | AKAAR It was the Earth people who first bargained for our rocks.
66 | MAAB Is it not best to have two who bargain for the same goods?
67 | AKAAR It is I who speak for the tribe, Maab.
68 | MAAB I speak for many, Teer. Hear the words of the Klingon.
69 | KRAS What do Earth men offer you? What have you obtained from them in the past? Powders and liquids for the sick? We Klingons believe as you do. The sick should die. Only the strong should live. Earthmen have promised to teach the youth of your tribes many things. What? What things? Cleverness against enemies? The use of weapons?
70 | ELEEN The Klingon speaks the truth, Akaar.
71 | KIRK The Earth Federation offers one other thing, Akaar. Our laws. And the highest of all our laws states that your world is yours and will always remain yours. This differs us from the Klingons. Their empire is made up of conquered worlds. They take what they want by arms and force.
72 | MAAB Good, good. Let the Klingons and the Earthmen offer us amusement. Capellans welcome this.
73 | AKAAR The Earth men have different customs, but never have they lied to our people.
74 | MAAB There are those of us who won't bargain with Earthmen, Akaar.
75 | AKAAR Do you say you will fight me, Maab?
76 | MAAB Let that be your choice, Teer.
77 | KIRK We need our communicators, those devices on our belts. If there's a Klingon ship somewhere
78 | AKAAR The sky does not interest me. I must consider the words I have heard.
79 | ELEEN Leave him.
80 | CHEKOV The ship's disappeared, sir. Gone out of range.
81 | UHURA Mister Scott, I'm getting a call from a vessel. It's so faint I can't make it out.
82 | SCOTT Put a booster on it, Lieutenant. Try to pull it in.
83 | UHURA I've lost it. It sounded like a distress signal from an Earth vessel.
84 | KIRK Klingon! Communicators, weapons.
85 | KRAS I have no quarrel with you, Captain. I wish merely to return to my vessel.
86 | KIRK Type of vessel. Location.
87 | KRAS A small scout ship, Captain. We need the mineral, too. I was sent to negotiate.
88 | MAAB Release him. Akaar is dead. I am the teer.
89 | KRAS Kill them now.
90 | KIRK Wait. If you lead these people now, be certain you make the right decisions.
91 | KRAS Is the new leader of the Ten Tribes afraid? Let me kill him for you.
92 | KIRK Or let the Klingon and me fight. It might amuse you.
93 | MAAB Perhaps to be a teer is to see in new ways. I begin to like you, Earthman, and I saw fear in the Klingon's eye.
94 | KRAS We had an agreement.
95 | MAAB That too may change, Klingon.
96 | UHURA I have the signal clear now, Mister Scott. It is a distress call. It's from the SS Dierdre.
97 | SCOTT Dierdre? That's a freighter.
98 | UHURA Reporting they're under attack. They're running, trying to manoeuvre. It's a Klingon vessel attacking.
99 | SCOTT Helm?
100 | SULU Picking it up, sir. Taking a fix.
101 | SCOTT Try the captain.
102 | UHURA Enterprise to Captain Kirk. Come in, Captain. Enterprise to Captain Kirk. Come in, Captain.
103 | MCCOY Captain, careful.
104 | MAAB You carry a child who would be teer.
105 | ELEEN I must die.
106 | KIRK No!
107 | MAAB No man may touch the wife of a teer.
108 | KRAS She was prepared to die, Earthman.
109 | ELEEN I was proud to obey the laws. Kill him first. He laid hands upon me. It is my right to see him die.
110 | UHURA Enterprise to Mister Spock. Doctor McCoy, come in please.
111 | CHEKOV I have it on the sensors, sir. Tie into my channel, Lieutenant.
112 | VOICE Commanding. We are under heavy attack by Klingon vessels. Two convoy ships are already damaged. We must have help. Enterprise, acknowledge. Please acknowledge. Repeat
113 | SULU Interception course computed and laid in, sir.
114 | SCOTT Prepare to take us out of orbit, Mister Sulu.
115 | SULU Aye, sir.
116 | UHURA Scotty, the captain.
117 | SCOTT We have a distress call from a Federation ship under attack. That's where our duty lies. Take us out of orbit, Mister Sulu. Ahead warp five.
118 | SPOCK Captain's log, stardate 3498.9. Lieutenant Commander Scott in temporary command.
119 | SCOTT We were forced to leave Capella to aid a Federation vessel under attack by a Klingon vessel. We were unable to contact our landing party before we were forced to answer the distress signal. Our inability to reach the landing party is strange and I am concerned.
120 | SPOCK Our check-in signal is one hour, twelve minutes overdue. Since no reconnaissance party has appeared, and since Mister Scott is notably efficient in such matters
121 | KIRK I must assume that something's keeping them busy up there. The Klingon ship.
122 | SPOCK That would seem a logical conclusion.
123 | MCCOY Captain, I'm going to fix that woman's arm. They can only kill me once for touching her.
124 | KIRK That's a very good idea, Bones.
125 | SPOCK Yes, Captain, an excellent idea.
126 | MCCOY Let me see that arm.
127 | ELEEN You will not touch me.
128 | KIRK You said you're prepared to die. Does that mean you'd prefer to die? I think we can get you safely to the ship. Your choice. Bones.
129 | ELEEN To live is always desirable.
130 | KIRK All right. Let's go.
131 | MAAB Klingon. There's nothing to concern you there.
132 | KRAS We made an agreement, Maab. I have a right to my weapons.
133 | MAAB We have them well cared for, Klingon. Your weapon will be returned when our business is completed. That was our agreement.
134 | SULU Approaching the freighter's last reported position, sir.
135 | SCOTT Sensor report, Mister Chekov.
136 | CHEKOV Negative, sir. No debris, no residual particles, no traces.
137 | SCOTT Mister Sulu, begin a standard search pattern. All scanners full intensity, Mister Chekov. No signal at all?
138 | UHURA Negative, sir.
139 | CHEKOV It should be on our screens by now.
140 | SULU At best, a freighter might travel warp two.
141 | SCOTT I'm well aware of a freighter's maximum speed, Mister Sulu.
142 | KIRK Captain's log, stardate 3499.1. Before leaving the Capellan encampment, we managed to retrieve our communicators. Our phasers were not to be found. We've fled into the hills, yet we know the Capellans will eventually find us by scent alone, if necessary. And we've learned one thing more. The girl, Eleen, hates the unborn child she is carrying.
143 | KIRK Stay with her, Bones. Nice place to get trapped in.
144 | SPOCK But a defensible entrance, Captain.
145 | KIRK Yes, I see. Scout up the trail that way. See what we have in the way of an exit. I'll take a look around.
146 | MCCOY Now listen, you may be a Capellan woman and the widow of a high teer, but I'm a doctor, and it's my tradition to care for the sick and injured. Now, let me see that arm.
147 | ELEEN You will not touch me in that manner.
148 | MCCOY You listen to me, young woman. I'll touch you in any way or manner that my professional judgment indicates.
149 | MCCOY Just as I thought. It can come anytime now.
150 | ELEEN How do you know?
151 | MCCOY Because I'm a doctor, that's how I know.
152 | ELEEN Even the women of our village cannot tell so much with a touch. Strange hand. Very soft.
153 | SPOCK The walls get higher and narrower, but there is a way out.
154 | KIRK Good. If we could block off that entrance, hold them off, it'd give us more time. They'd have to go around these hills.
155 | SPOCK There is enough loose rock and shale.
156 | KIRK Do you think we could create a sonic disruption with two of our communicators?
157 | SPOCK Only a very slight chance it would work.
158 | KIRK Well, if you don't think we can, maybe we shouldn't try.
159 | SPOCK Captain, I didn't say that exactly.
160 | SPOCK The sound beams should produce a sympathetic vibration on the weak area of that slide.
161 | KIRK Worried about the delivery?
162 | MCCOY Capellans aren't human, Jim. They're humanoid. There's certain internal differences. I don't have equipment to handle an emergency.
163 | KIRK Well, if you don't think you can handle it
164 | MCCOY Forget it. I can do it. The last thing I want around is a ham-handed ship's captain.
165 | ELEEN No! Only McCoy.
166 | KIRK There's a cave in there. Probably the only shelter around here.
167 | MCCOY I'll need help getting her in there.
168 | ELEEN No!
169 | MCCOY Look, I'm a doctor, not an escalator! Spock, give me a hand!
170 | ELEEN No! I will allow only your touch.
171 | SCOTT A vessel doesn't just disappear.
172 | UHURA There's nothing, Mister Scott. All channels and frequencies are clear.
173 | SCOTT Mister Chekov?
174 | CHEKOV Nothing, sir. If it were destroyed, I'd pick up debris readings of some sort.
175 | SULU It couldn't have run away from us, sir. Not a freighter.
176 | SCOTT Mister Chekov, pull the microtape on that distress call. I want it replayed.
177 | VOICE Commanding. We are under heavy attack by Klingon vessels. Two convoy ships are already damaged. We must have help. Enterprise, acknowledge. Please acknowledge.
178 | SCOTT Did you hear it? They called us by name. Not a general distress signal, but one aimed right at us.
179 | SULU Wouldn't they normally call for the nearest starship?
180 | SCOTT How would a freighter know we were ordered into this sector?
181 | SULU A trap. We were diverted from the planet.
182 | UHURA Or it could be an authentic distress call.
183 | SCOTT We'll stay long enough to make certain. Continue search pattern.
184 | SULU Yes, sir. Continuing.
185 | KIRK Bones, you've got one of those magnesite-nitron tablets in your kit. Give me one.
186 | MCCOY Just a minute. Let me get her on the rock. There you go.
187 | ELEEN No, no. Pain is here.
188 | KIRK How did you arrange to touch her, Bones, give her a happy pill?
189 | MCCOY No a right cross.
190 | KIRK Never seen that in a medical book.
191 | MCCOY It's in mine from now on.
192 | ELEEN No, no. It's there. The The pain is there.
193 | KIRK Vegetation, Captain. Evidently there's water nearby.
194 | KIRK Good, but we need weapons just as much as we need water, Spock.
195 | SPOCK There would seem to be little weapon potential at hand.
196 | KIRK Follow me.
197 | ELEEN No! McCoy!
198 | MCCOY Easy, easy. I'm here. Now you must want the child!
199 | ELEEN No. Here, child belongs to husband.
200 | MCCOY So they take all the credit here. Poppycock! Answer me. Do you want my help? Answer me. Do you want my help? All right. Say to yourself, The child is mine. The child is mine. It is mine!
201 | ELEEN Yes, it's yours.
202 | MCCOY No, no. You've got it all wrong.
203 | ELEEN Yes, McCoy. It's yours.
204 | MCCOY No. Say to yourself, The child is mine. It is mine. It is
205 | KIRK Kirk to Enterprise. Come in. Kirk to Enterprise. Come in.
206 | SPOCK Fortunately, this bark has suitable tensile cohesion.
207 | KIRK You mean it makes a good bowstring.
208 | SPOCK I believe I said that.
209 | KIRK That's more like it. Since the Capellans never developed the bow, this may come as big a surprise as gunpowder was on Earth.
210 | MCCOY No, no, Mister Spock. You place this arm under here to support its back, and this hand here to support its head.
211 | SPOCK I would rather, I would rather not. Thank you.
212 | ELEEN McCoy. Bring our child.
213 | KIRK Our child?
214 | MCCOY I'll explain later.
215 | SPOCK That should prove very interesting.
216 | SULU Still negative, Mister Scott. All sweeps.
217 | SCOTT Mister Chekov?
218 | CHEKOV Nothing.
219 | SCOTT We're turning back. Warp five, Helm.
220 | SULU Warp five, sir. On course for Capella Four.
221 | SCOTT Warp 6 as soon as she'll take it, Mister Sulu. The captain could be in trouble back there.
222 | UHURA Mister Scott, another distress call from the USS Carolina.
223 | SCOTT Ignore it.
224 | UHURA The Carolina is registered in this sector.
225 | SCOTT Ignore it, Lieutenant. Log it as my order, my responsibility.
226 | UHURA Aye, aye, sir.
227 | SULU Scotty, if it should turn out to be real
228 | SCOTT There's an old, old saying on Earth, Mister Sulu. Fool me once, shame on you. Fool me twice, shame on me.
229 | CHEKOV I know this saying. It was invented in Russia.
230 | MCCOY Jim! Spock! Jim! Spock!
231 | KIRK What happened, Bones?
232 | MCCOY My patient spattered me with a rock. She's gone.
233 | SPOCK The child?
234 | MCCOY It's all right. It's in there. I guess I'll forget psychiatry, stick with surgery. I really thought she'd learned to want it.
235 | SPOCK Virtue is a relative term, Doctor. She'll head straight to the warriors.
236 | MCCOY I'll go with you.
237 | KIRK Bones, you took a medical oath long before you signed aboard my ship. That small patient in there needs you.
238 | SCOTT Estimating to planet?
239 | SULU Thirty one minutes, sir.
240 | CHEKOV Mister Scott? Sensors picking up a vessel ahead, cutting across our path.
241 | SCOTT Sub-light one half.
242 | SULU Reversing to sub-light, one half.
243 | CHEKOV It's an alien, sir. By configuration a Klingon warship. Taking position directly in our path.
244 | SCOTT Mister Sulu, sound battle stations.
245 | SULU Aye, aye, sir.
246 | UHURA This is the USS Enterprise calling unidentified Klingon vessel. Come in. USS Enterprise calling Klingon vessel. Acknowledge, please.
247 | SULU I have it on the viewscreen now, sir. Still distant. Holding a position dead ahead, sir.
248 | SCOTT Drawing a line, daring us to step over it.
249 | SULU Still closing. The alien's directly in our line of flight.
250 | SCOTT This is the commander of the USS Enterprise. Identify yourself and your intention. Acknowledge. Close out the frequency, Lieutenant.
251 | SULU Phaser banks are ready, sir.
252 | SCOTT And we'll go right down their throat, if necessary. Let's see if they have the belly for it.
253 | KEEL Behind the rocks up there.
254 | MAAB The Earthmen make excellent game. Their cleverness has surprised me.
255 | KRAS They must die. That is your law.
256 | MAAB We will honour our law, and our word to you, Klingon.
257 | KEEL Maab.
258 | ELEEN The child is dead, Maab. Do as you will with me.
259 | KEEL The Earthmen?
260 | ELEEN Dead. I killed them as they slept.
261 | KRAS If true, take us to them.
262 | ELEEN Do you doubt my word, Klingon? I'm the wife of a teer. I will die in my own tent.
263 | MAAB It is in order. She is the wife of a teer. No!
264 | KRAS First, we'll verify her story.
265 | MAAB Is this what your sworn word means, Klingon?
266 | KIRK Spock. Spock!
267 | SPOCK Here, Captain. Over here, Captain. Spock to Enterprise.
268 | KIRK The cavalry doesn't come over the hill in the nick of time anymore.
269 | SPOCK If by that you mean we can't expect help from the Enterprise, I must agree.
270 | MAAB Naam.
271 | KIRK There's just one thing I want.
272 | SPOCK The Klingon?
273 | KIRK One of us must get him.
274 | SPOCK Revenge, Captain?
275 | KIRK Why not?
276 | KRAS The next man who raises a weapon destroys all of you. You and your primitive knives and your weapons, I'll teach you what killing really means.
277 | KIRK Klingon!
278 | ELEEN Fight! Are you warriors or children? Maab, I will flee. When the Klingon turns to fire, I'll
279 | MAAB As teer of the Ten Tribes, I give you back your life. Mine is now forfeit. Keel, stand ready.
280 | MAAB Klingon!
281 | SCOTT Hold it there. Drop your weapons.
282 | KIRK We missed you, Mister Scott.
283 | SCOTT Well sir, we had a wee bit of a run-in with a Klingon vessel, but he had no stomach for fighting. We checked the encampment, found out you were here, and had no trouble at all in tracking you down. I could
284 | MCCOY No, that's not the way to handle it. Here, like this. Here, take his little head like that. There, arm in a. That's it. See how easy? Oochy-woochy coochy-coo. Oochy-woochy coochy-coo.
285 | SPOCK Oochy-woochy coochy-coo, Captain?
286 | KIRK An obscure Earth dialect, Mister Spock. Oochy-woochy coochy-coo. If you're curious, consult linguistics.
287 | SPOCK Well, at any rate, this should prove interesting.
288 | KIRK Interesting?
289 | SPOCK When the woman starts explaining how the new high teer is actually Doctor McCoy's child.
290 | SCOTT What's that again, Mister Spock?
291 | KIRK We don't actually understand it ourselves, Mister Scott.
292 | SPOCK Nor does Doctor McCoy. Oochy-woochy coochy-coo. Oochy-woochy coochy-coo.
293 | KIRK Contact Starfleet. Inform them the Federation mining rights on Capella have been secured by treaty, documents signed by the young high chief's regent. Report follows.
294 | UHURA Aye, aye, sir.
295 | SPOCK The child's regent?
296 | KIRK Yes, Eleen. Remarkable young lady.
297 | MCCOY Representing the high teer, Leonard James Akaar.
298 | SPOCK The child was named Leonard James Akaar?
299 | MCCOY Has a kind of a ring to it, don't you think, James?
300 | KIRK Yes. I think it's a name destined to go down in galactic history, Leonard. What do you think, Spock?
301 | SPOCK I think you're both going to be insufferably pleased with yourselves for at least a month, sir.
302 | KIRK Take us out of orbit, Mister Sulu. Ahead warp factor one.
303 |
--------------------------------------------------------------------------------
/star_trek_tos/tos_transcript_34.txt:
--------------------------------------------------------------------------------
1 | character line
2 | MCCOY Oh, Captain. Got a minute?
3 | KIRK A minute.
4 | MCCOY It's Spock. Have you noticed anything strange about him?
5 | KIRK No, nothing in particular. Why ?
6 | MCCOY Well, it's nothing I can pinpoint without an examination, but he's become increasingly restive. If he were not a Vulcan, I'd almost say nervous. And for another thing, he's avoiding food. I checked and he hasn't eaten at all in three days.
7 | KIRK That just sounds like Mister Spock in one of his contemplative phases.
8 | MCCOY Miss Chapel.
9 | CHAPEL Doctor McCoy.
10 | MCCOY Captain.
11 | CHAPEL Captain.
12 | MCCOY What's this?
13 | CHAPEL Oh.
14 | MCCOY Oh! Vulcan plomeek soup, and I'll bet you made it too. You never give up hoping, do you?
15 | CHAPEL Well, Mister Spock hasn't been eating, Doctor, and I, I just happened to notice.
16 | MCCOY It's all right. Carry on, Miss Chapel.
17 | KIRK Bones, I'm a busy man.
18 | MCCOY Jim, when I suggested to Spock that it was time for his routine check-up, your logical, unemotional first officer turned to me and said, you will cease to pry into my personal matters, Doctor, or I shall certainly break your neck.
19 | KIRK Spock said that?
20 | SPOCK What is this?
21 | SPOCK Poking and prying! If I want anything from you, I'll ask for it!
22 | SPOCK Captain, I should like to request a leave of absence on my home planet. On our present course you can divert to Vulcan with a loss of but two point eight light days.
23 | KIRK Spock, what the devil is this all about?
24 | SPOCK I have made my request, Captain. All I require from you is that you answer it. Yes or no.
25 | KIRK All right, Spock, let's have it.
26 | SPOCK It is undignified for a woman to play servant to a man who is not hers.
27 | KIRK I'm more interested in your request for shore leave. In all the years
28 | SPOCK You have my request, Captain. Will you grant it or not?
29 | KIRK In all the years that I've known you, you've never asked for a leave of any sort. In fact, you've refused them. Why now?
30 | SPOCK Captain, surely I have enough leave time accumulated.
31 | KIRK Agreed, but that isn't the question, is it? If there's a problem of some sort, illness in the family
32 | SPOCK No. Nothing of that nature, Captain.
33 | KIRK Then since we're headed for Altair Six, and since the shore facilities there are excellent
34 | SPOCK No! I must. I wish to take my leave on Vulcan.
35 | KIRK Spock, I'm asking you. What's wrong?
36 | SPOCK I need rest. I'm asking you to accept that answer.
37 | KIRK Bridge. Helm.
38 | SULU Yes, Captain?
39 | KIRK Alter course to Vulcan. Increase speed to warp four.
40 | SULU Aye, sir.
41 | SPOCK Thank you, Captain.
42 | KIRK I suppose most of us overlook the fact that even Vulcans aren't indestructible.
43 | SPOCK No. We're not.
44 | KIRK Captain's log, stardate 3372.7. On course, on schedule, bound for Altair Six via Vulcan. First Officer Spock seems to be under stress. He has requested and been granted shore leave. Ship surgeon McCoy has him under medical surveillance.
45 | UHURA Captain, something's coming in on the Starfleet channel. Priority and urgent, sir.
46 | KIRK Put it on audio over here, Lieutenant.
47 | UHURA Message complete, sir. Switching over.
48 | STARFLEET To Captain, USS Enterprise from Starfleet Sector Nine. Inauguration ceremonies, Altair Six, have been advanced seven solar days. You are ordered to alter your flight plan to accommodate, by order of Komack, Admiral, Starfleet Command. Acknowledge.
49 | KIRK Lieutenant Uhura, acknowledge that message.
50 | UHURA Aye, aye, sir.
51 | KIRK Mister Chekov, compute course and speed necessary for compliance.
52 | CHEKOV We'll have to head directly there at warp six, sir. Insufficient time to stop off at Vulcan.
53 | KIRK Head directly for Altair Six. Sailor's luck, Mister Spock. Or, as one of Finagle's Laws puts it, 'Any home port the ship makes ill be somebody else's, not mine'. The new president of Altair Six wants to get himself launched a week early, so we have to be there a week early. Don't worry. I'll see that you get your leave as soon as we're finished.
54 | SPOCK I quite understand, Captain.
55 | KIRK Bridge. Navigation.
56 | CHEKOV Navigation. Chekov here.
57 | KIRK Mister Chekov, how late will we arrive for the ceremonies if we increase speed to maximum and divert to Vulcan just long enough to drop off Mister Spock?
58 | CHEKOV I don't understand, Captain.
59 | KIRK How far behind schedule will diverting to Vulcan put us?
60 | CHEKOV We're on course for Vulcan, Captain, as Mister Spock ordered.
61 | KIRK Thank you, Mister Chekov. Kirk, out.
62 | KIRK Mister Spock. Come with me, please.
63 | KIRK Deck five. You've changed course for Vulcan, Mister Spock. Why?
64 | SPOCK Changed the course?
65 | KIRK Do you deny it?
66 | SPOCK No. No, by no means, Captain. It is quite possible.
67 | KIRK Then why'd you do it?
68 | SPOCK Captain, I accept on your word that I did it, but I do not know why, nor do I remember doing it. Captain, lock me away. I do not wish to be seen. I cannot. No Vulcan could explain further.
69 | KIRK I'm trying to help you, Spock.
70 | SPOCK Ask me no further questions. I will not answer.
71 | KIRK I order you to report to the Sickbay.
72 | SPOCK Sickbay?
73 | KIRK Complete examination. McCoy's waiting.
74 | MCCOY Come in, Spock. I'm all ready for you.
75 | SPOCK My orders were to report to Sickbay, Doctor. I have done so. And now I'll go to my quarters.
76 | MCCOY My orders were to give you a thorough physical. In case you hadn't noticed, I have to answer to the same commanding officer that you do. Come on, Spock. Yield to the logic of the situation.
77 | SPOCK Examine me, for all the good it'll do either of us.
78 | SULU How do you figure it, Chekov? First we're going to Vulcan, then we're going to Altair, then we're headed to Vulcan again, and now we're headed back to Altair.
79 | CHEKOV I think I'm going to get space sick.
80 | MCCOY Jim, you've got to get Spock to Vulcan.
81 | KIRK Bones, I will, I will. As soon as this mission is
82 | MCCOY No! Now. Right away. If you don't get him to Vulcan within a week eight days at the outside, he'll die. He'll die, Jim.
83 | KIRK Why must he die? Why within eight days? Explain.
84 | MCCOY I don't know.
85 | KIRK You keep saying that. Are you a doctor, or aren't you?
86 | MCCOY There's a growing imbalance of body functions, as if in our bodies huge amounts of adrenalin were constantly being pumped into our bloodstreams. Now, I can't trace it down in my biocomps. Spock won't tell me what it is. But if it isn't stopped somehow, the physical and emotional pressures will simply kill him.
87 | KIRK You say you're convinced he knows what it is?
88 | MCCOY He does, and he's as tightlipped about it as an Aldebaran Shellmouth. No use to ask him, Jim. He won't talk.
89 | SPOCK Come.
90 | KIRK Stay. McCoy has given me his medical evaluation of your condition. He says you're going to die unless something is done. What? Is it something only your planet can do for you? Spock! You've been called the best first officer in the fleet. That's an enormous asset to me. If I have to lose that first officer, I want to know why.
91 | SPOCK It is a thing no out-worlder may know except those very few who have been involved. A Vulcan understands, but even we do not speak of it among ourselves. It is a deeply personal thing. Can you see that, Captain, and understand?
92 | KIRK No, I do not understand. Explain. Consider that an order.
93 | SPOCK Captain, there are some things which transcend even the discipline of the service.
94 | KIRK Would it help if I told you that I'll treat this as totally confidential?
95 | SPOCK It has to do with biology.
96 | KIRK What?
97 | SPOCK Biology.
98 | KIRK What kind of biology?
99 | SPOCK Vulcan biology.
100 | KIRK You mean the biology of Vulcans? Biology as in reproduction? Well, there's no need to be embarrassed about it, Mister Spock. It happens to the birds and the bees.
101 | SPOCK The birds and the bees are not Vulcans, Captain. If they were, if any creature as proudly logical as us were to have their logic ripped from them as this time does to us. How do Vulcans choose their mates? Haven't you wondered?
102 | KIRK I guess the rest of us assume that it's done quite logically.
103 | SPOCK No. No. It is not. We shield it with ritual and customs shrouded in antiquity. You humans have no conception. It strips our minds from us. It brings a madness which rips away our veneer of civilisation. It is the pon farr. The time of mating. There are precedents in nature, Captain. The giant eelbirds of Regulus Five, once each eleven years they must return to the caverns where they hatched. On your Earth, the salmon. They must return to that one stream where they were born, to spawn or die in trying.
104 | KIRK But you're not a fish, Mister Spock. You're
105 | SPOCK No. Nor am I a man. I'm a Vulcan. I'd hoped I would be spared this, but the ancient drives are too strong. Eventually, they catch up with us, and we are driven by forces we cannot control to return home and take a wife. Or die.
106 | KIRK I haven't heard a word you've said, and I'll get you to Vulcan somehow.
107 | KIRK Lieutenant, get me Admiral Komack at Starfleet Command, Sector Nine. Pipe it down to McCoy's office.
108 | UHURA Starfleet Command. Yes, sir.
109 | CHEKOV Mister Sulu, you don't think
110 | SULU Maybe you ought to plot a course back for Vulcan, just in case.
111 | UHURA Communication to Mister Spock. Lieutenant Uhura here. The captain asked me to
112 | SPOCK Let me alone. Let me alone!
113 | KOMACK Captain, you're making a most unusual request.
114 | KIRK I'm aware of that, sir, but it's of the utmost importance. You must give me permission to divert to Vulcan.
115 | KOMACK But you refuse to explain why it is so important.
116 | KIRK I can't, sir, but believe me, I wouldn't make such a request
117 | KOMACK Altair Six is no ordinary matter. That area is just putting itself together after a long interplanetary conflict. This inauguration will stabilise the entire Altair system. Our appearance there is a demonstration of friendship and strength which will cause ripples clear to the Klingon Empire.
118 | KIRK Sir, the delay would be, at most, a day. I can hardly believe that
119 | KOMACK You will proceed to Altair Six as ordered. You have your orders. Starfleet out.
120 | MCCOY Well, that's that.
121 | KIRK No, it's not. I know the Altair situation. We would be one of three starships. Very impressive, very diplomatic, but it's simply not that vital.
122 | MCCOY You can't go off to Vulcan against Starfleet orders. You'll be busted
123 | KIRK I can't let Spock die, can I, Bones? And he will if we go to Altair. I owe him my life a dozen times over. Isn't that worth a career? He's my friend. Bridge. Navigation.
124 | CHEKOV Bridge. Navigation.
125 | KIRK Mister Chekov, lay in a course for Vulcan. Tell Engineering I want warp eight or better. Push her for all she'll take.
126 | CHEKOV Course already plotted. Laying it in, sir.
127 | KIRK I see. Very well. Carry on, Mister Chekov. Kirk, out.
128 | SPOCK Miss Chapel.
129 | CHAPEL Yes, Mister Spock?
130 | SPOCK I had a most startling dream. You were trying to tell me something, but I couldn't hear you. It would be illogical for us to protest against our natures. Don't you think?
131 | CHAPEL I don't understand.
132 | SPOCK Your face is wet.
133 | CHAPEL I came to tell you that we are bound for Vulcan. We'll be there in just a few days.
134 | SPOCK Vulcan. Miss Chapel.
135 | CHAPEL My name is Christine.
136 | SPOCK Yes, I know, Christine. Would you make me some of that plomeek soup?
137 | CHAPEL Oh, I'd be very glad to do that, Mister Spock.
138 | KIRK Bridge.
139 | SPOCK It is obvious that you have surmised my problem, Doctor. My compliments on your insight. Captain, there is a thing that happens to Vulcans at this time. Almost an insanity, which you would no doubt find distasteful.
140 | KIRK Will I? You've been most patient with my kinds of madness.
141 | SPOCK Then would you beam down to the planet's surface and stand with me? There is a brief ceremony.
142 | KIRK Is it permitted?
143 | SPOCK It is my right. By tradition, the male is accompanied by his closest friends.
144 | KIRK Thank you, Mister Spock.
145 | SPOCK I also request McCoy accompany me.
146 | MCCOY I shall be honoured, sir.
147 | UHURA Captain. We're standing by on Vulcan hailing frequencies, sir.
148 | KIRK Open the channel, Lieutenant. Vulcan Space Central, this is the USS Enterprise requesting permission to assume standard orbit.
149 | VULCAN USS Enterprise from Vulcan Space Central. Permission granted. And from all of Vulcan, welcome. Is Commander Spock with you?
150 | SPOCK This is Spock.
151 | VULCAN Standby to activate your central viewer, please.
152 | CHAPEL Doctor, what's going on?
153 | T'PRING Spock, it is I.
154 | SPOCK T'Pring, parted from me and never parted, never and always touching and touched. We meet at the appointed place.
155 | T'PRING Spock, parted from me and never parted, never and always touching and touched. I await you.
156 | UHURA She's lovely, Mister Spock. Who is she?
157 | SPOCK She is T'Pring. My wife.
158 | SPOCK This is the land of my family. It has been held by us for more than two thousand Earth years. This is our place of Koon-ut-kal-if-fee,
159 | MCCOY He called it Koon-ut what?
160 | KIRK He described it to me as meaning marriage or challenge. In the distant past, Vulcans killed to win their mates.
161 | MCCOY They still go mad at this time. Perhaps it's the price they pay for having no emotions the rest of the time.
162 | KIRK It's lovely. I wish the breeze were cooler.
163 | MCCOY Yeah. Hot as Vulcan. Now I understand what that phrase means.
164 | KIRK The atmosphere is thinner than Earth.
165 | MCCOY I wonder when his T'Pring arrives.
166 | SPOCK The marriage party approaches. I hear them.
167 | KIRK Marriage party? You said T'Pring was your wife.
168 | SPOCK By our parents' arrangement. A ceremony while we were but seven years of age. Less than a marriage but more than a betrothal. One touches the other in order to feel each other's thoughts. In this way our minds were locked together, so that at the proper time, we would both be drawn to Koon-ut-kal-if-fee.
169 | KIRK Bones, you know who that is? T'Pau. The only person to ever turn down a seat on the Federation Council.
170 | MCCOY T'Pau. Officiating at Spock's wedding?
171 | KIRK He never mentioned that his family was this important.
172 | T'PAU Spock, are our ceremonies for outworlders?
173 | SPOCK They are not outworlders. They are my friends. I am permitted this.
174 | SPOCK This is Kirk.
175 | KIRK Ma'am.
176 | T'PAU And thee are called?
177 | MCCOY Leonard McCoy, ma'am.
178 | T'PAU Thee names these out worlders friends. How does thee pledge their behaviour?
179 | SPOCK With my life, T'Pau.
180 | T'PAU What they are about to see comes down from the time of the beginning, without change. This is the Vulcan heart. This is the Vulcan soul. This is our way. Kah-if-farr.
181 | T'PRING Kal-if-fee!
182 | KIRK What is it? What happened?
183 | T'PAU She chooses the challenge.
184 | MCCOY With him?
185 | T'PAU He acts only if cowardice is seen. She will choose her champion.
186 | KIRK Spock?
187 | T'PAU Do not attempt to speak with him, Kirk. He is deep in the plak-tow, the blood fever. He will not speak with thee again until he has passed through what is to come. If thee wishes to depart, thee may leave now.
188 | KIRK We'll stay.
189 | T'PAU Spock chose his friends well.
190 | MCCOY Ma'am, I don't understand. Are you trying to say that she rejected him? That she doesn't want him?
191 | T'PAU He will have to fight for her. It is her right. T'Pring, thee has chosen the kal-if-fee, the challenge. Thee are prepared to become the property of the victor?
192 | T'PRING I am prepared.
193 | T'PAU Spock, does thee accept the challenge according to our laws and customs?
194 | KIRK Think Spock can take him?
195 | MCCOY I doubt it. Not in his present condition.
196 | T'PAU T'Pring, thee will choose thy champion.
197 | T'PRING As it was in the dawn of our days, as it is today, as it will be for all tomorrows, I make my choice. This one.
198 | STONN No! I am to be the one. It was agreed.
199 | T'PAU Be silent.
200 | STONN Hear me. I have made the ancient claim. I claim the right. The woman is
201 | T'PAU Kroykah!
202 | STONN I ask forgiveness.
203 | T'PAU Kirk? T'Pring is within her rights, but our laws and customs are not binding on thee. Thee are free to decline with no harm on thyself.
204 | SPOCK T'Pau.
205 | T'PAU Thee speaks?
206 | SPOCK My friend does not understand.
207 | T'PAU The choice has been made, Spock. It is up to him now.
208 | SPOCK He does not know. I will do what I must, T'Pau, but not with him! His blood does not burn. He is my friend!
209 | T'PAU It is said thy Vulcan blood is thin. Are thee Vulcan or are thee human?
210 | SPOCK I burn, T'Pau. My eyes are flame. My heart is flame. Thee has the power, T'Pau. In the name of my fathers, forbid. Forbid! T'Pau. I plead with thee! I beg!
211 | T'PAU Thee has prided thyself on thy Vulcan heritage. It is decided.
212 | KIRK What happens to Spock if I decline?
213 | T'PAU Another champion will be selected. Do not interfere, Kirk. Keep thy place.
214 | MCCOY You can't do it, Jim.
215 | KIRK I can't?
216 | MCCOY No. She said their laws and customs were not binding on you.
217 | KIRK And you said Spock might not be able to handle him. If I can knock Spock out without really hurting him
218 | MCCOY In this climate? If the heat doesn't get you, the thin air will. You can't do it!
219 | KIRK If I get into any trouble, I'll quit. And Spock wins, and honour is satisfied.
220 | MCCOY Jim, listen, if you
221 | KIRK Bones. He's my first officer and my friend. I disregarded Starfleet orders to bring him here. Another thing, that's T'Pau of Vulcan. All of Vulcan in one package. How can I back out in front of her?
222 | T'PAU It is done. Kirk, decide.
223 | KIRK I accept the challenge.
224 | T'PAU Here begins the act of combat for possession of the woman, T'Pring. As it was at the time of the beginning, so it is now. Bring forth the lirpa.
225 | T'PAU If both survive the lirpa, combat will continue with the ahn woon.
226 | KIRK What do you mean, if both survive?
227 | T'PAU This combat is to the death.
228 | KIRK Now wait a minute, ma'am. Who said anything about a fight to the death?
229 | MCCOY These men are friends. To force them to fight until one of them is killed
230 | T'PAU I can forgive such a display only once. Challenge was given and lawfully accepted. It has begun. Let no one interfere.
231 | MCCOY Spock! No!
232 | T'PAU Kroykah!
233 | MCCOY Is this Vulcan chivalry? The air's too hot and thin for Kirk. He's not used to it.
234 | T'PAU The air is the air. What can be done?
235 | MCCOY I can compensate for the atmosphere and the temperature with this. At least it'll give Kirk a fighting chance.
236 | T'PAU Thee may proceed.
237 | MCCOY You're going to have to kill him, Jim.
238 | KIRK Kill Spock? That's not what I came to Vulcan for, is it? What's that?
239 | MCCOY It's a tri-ox compound. It'll help you breathe. Now be careful!
240 | KIRK Sound medical advice.
241 | T'PAU The ahn woon.
242 | T'PAU Kroykah!
243 | MCCOY Get your hands off of him, Spock! He's finished. He's dead.
244 | T'PAU I grieve with thee.
245 | MCCOY McCoy to Enterprise.
246 | UHURA Enterprise. Lieutenant Uhura here.
247 | MCCOY Have the transporter room stand by to beam up the landing party. As strange as it may seem, Mister Spock, you're in command now. Any orders?
248 | SPOCK Yes. I'll follow you up in a few minutes. You will instruct Mister Chekov to plot a course for the nearest Starbase where I must surrender myself to the authorities. T'Pring. Explain.
249 | T'PRING Specify.
250 | SPOCK Why the challenge, and why you chose my captain as your champion.
251 | T'PRING Stonn wanted me, I wanted him.
252 | SPOCK I see no logic in preferring Stonn over me.
253 | T'PRING You have become much known among our people, Spock. Almost a legend. And as the years went by, I came to know that I did not want to be the consort of a legend. But by the laws of our people, I could only divorce you by the kal-if-fee. There was also Stonn, who wanted very much to be my consort, and I wanted him. If your Captain were victor, he would not want me, and so I would have Stonn. If you were victor you would free me because I had dared to challenge, and again I would have Stonn. But if you did not free me, it would be the same. For you would be gone, and I would have your name and your property, and Stonn would still be there.
254 | SPOCK Logical. Flawlessly logical.
255 | T'PRING I am honoured.
256 | SPOCK Stonn. She is yours. After a time, you may find that having is not so pleasing a thing after all as wanting. It is not logical, but it is often true. Spock here. Stand by to beam up. Live long, T'Pau, and prosper.
257 | T'PAU Live long and prosper, Spock.
258 | SPOCK I shall do neither. I have killed my captain and my friend. Energize.
259 | SPOCK Doctor, I shall be resigning my commission immediately, of course.
260 | MCCOY Spock, I
261 | SPOCK So I would appreciate your making the final arrangements.
262 | MCCOY Spock, I
263 | SPOCK Doctor, please, let me finish. There can be no excuse for the crime of which I'm guilty. I intend to offer no defence. Furthermore, I shall order Mister Scott to take immediate command of this vessel.
264 | KIRK Don't you think you better check with me first?
265 | SPOCK Captain! Jim!
266 | SPOCK I'm pleased to see you, Captain. You seem uninjured. I am at something of a loss to understand it, however.
267 | KIRK Blame McCoy. That was no tri-ox compound he shot me with. He slipped in a neural paralyser. Knocked me out, simulated death.
268 | SPOCK Indeed.
269 | MCCOY Nurse, would you mind, please?
270 | MCCOY Spock, what happened down there? The girl? The wedding?
271 | SPOCK Ah, yes, the girl. Most interesting. It must have been the combat. When I thought I had killed the captain, I found I had lost all interest in T'Pring. The madness was gone.
272 | KIRK Kirk here.
273 | UHURA Captain Kirk. Message from Starfleet Command, top priority.
274 | KIRK Relay it, Lieutenant.
275 | UHURA Response to T'Pau's request for diversion of Enterprise to planet Vulcan
276 | UHURA Hereby approved. Any reasonable delay granted. Komack, Admiral, Starfleet Command.
277 | KIRK Well, a little late, but I'm glad they're seeing it our way. How about that T'Pau? They couldn't turn her down. Mister Chekov, lay in a course for Altair Six. Leave orbit when ready. Kirk out.
278 | MCCOY There's just one thing, Mister Spock. You can't tell me that when you first saw Jim alive that you weren't on the verge of giving us an emotional scene that would have brought the house down. .
279 | SPOCK Merely my quite logical relief that Starfleet had not lost a highly proficient captain.
280 | KIRK Yes, Mister Spock. I understand.
281 | SPOCK Thank you, Captain.
282 | MCCOY Of course, Mister Spock, your reaction was quite logical.
283 | SPOCK Thank you, Doctor.
284 | MCCOY In a pig's eye!
285 | KIRK Come on, Spock. Let's go mind the store.
286 |
--------------------------------------------------------------------------------
/star_trek_tos/tos_transcript_41.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Prooffreader/Misc_ipynb/5a27a605f312e254a445b1f509915e174b745b09/star_trek_tos/tos_transcript_41.txt
--------------------------------------------------------------------------------
/star_trek_tos/tos_transcript_45.txt:
--------------------------------------------------------------------------------
1 | character line
2 | MCCOY Yes, Jim.
3 | KIRK How much longer, McCoy?
4 | MCCOY Oh, about another thirty minutes. I've come across some most interesting organic compounds. Hey, Starfleet was right.
5 | MCCOY These roots and soil cultures can be a medical treasure house. Any problems there?
6 | KIRK No sign of the inhabitants so far. Kirk out.
7 | SPOCK Large prints. The ape-like carnivore in the reports?
8 | KIRK Yes, the mugato. No problem, though. Those prints are several days old. They seldom stay in one place.
9 | SPOCK Aside from that, you say it's a Garden of Eden?
10 | KIRK Or so it seemed to the brash young Lieutenant Kirk on his first planet survey.
11 | SPOCK Class M in all respects. Quite Earth-like.
12 | KIRK Except these people stayed in their Garden of Eden. Bows and arrows for hunting, but absolutely no fighting among themselves. Remarkably peaceful and tranquil.
13 | VOICE Ho! Take cover here!
14 | SPOCK Bows and arrows, Captain?
15 | KIRK Villagers with flintlocks? That's impossible. They hadn't progressed nearly that far.
16 | SPOCK Captain, look.
17 | KIRK One of those men walking into ambush is Tyree. The friend I lived with here.
18 | SPOCK Captain, use of our phasers is expressly forbidden.
19 | TYREE Villagers!
20 | MCCOY Enterprise, alert! Stand by to beam up landing party.
21 | KIRK Spock? Your phaser.
22 | SPOCK No, Captain. I can travel.
23 | KIRK Beam us up, quickly.
24 | MCCOY Now, Scotty. Have medics stand by.
25 | SCOTT What happened, Captain?
26 | KIRK Lead projectile. Primitive firearm.
27 | M'BENGA Vitalizer B.
28 | MCCOY Pressure packet. Lucky his heart's where his liver should be, or he'd be dead now.
29 | M'BENGA Not good, sir.
30 | MCCOY Coranalin.
31 | KIRK Bones, can you save him?
32 | UHURA All decks, Red Alert! Battle stations, battle stations! Go to Red Alert!
33 | KIRK Kirk here.
34 | UHURA Uhura, sir. We have a Klingon vessel on our screen.
35 | KIRK On my way. Scotty. Bones?
36 | MCCOY I don't know yet, Jim.
37 | CHEKOV Captain, we're holding the planet between us and the Klingons. I don't think they've spotted us.
38 | UHURA Make that definite, sir. They're sending a routine message to their home base with no mention of us.
39 | KIRK Good. Go to Yellow Alert.
40 | UHURA Yellow Alert. All stations go to Yellow Alert.
41 | KIRK Do you think you can keep us out of their sight, Chekov?
42 | CHEKOV I can try, Captain.
43 | UHURA Message to Starbase, sir?
44 | KIRK No point in giving ourselves away, Lieutenant. Not until we find out what's going on.
45 | SCOTT We can hide for a while, sir, but we may have to go out of orbit to keep it up for long.
46 | KIRK Kirk to Sickbay.
47 | MCCOY McCoy here. I'll call you soon as I know anything. Sickbay out.
48 | KIRK So, they've broken the treaty.
49 | SCOTT Not necessarily, Captain. They have as much right to scientific missions here as we have.
50 | KIRK Research is not the Klingon way.
51 | SCOTT True, but since this is a hands-off planet, how are you going to prove they're doing otherwise?
52 | KIRK When I left there thirteen years ago, those villagers had barely learned to forge iron. Spock was shot with a flintlock. How many centuries between those two developments?
53 | UHURA On Earth, about twelve, sir.
54 | SCOTT On the other hand, a flintlock would be the first firearm the inhabitants would normally develop.
55 | KIRK Yes, I'm aware of that, Mister Scott.
56 | CHEKOV And, sir, the fact Earth took twelve centuries doesn't mean they had to.
57 | UHURA We've seen different development at rates on different planets.
58 | SCOTT And were the Klingons behind it, why didn't they give them breechloaders?
59 | CHEKOV Or machine guns?
60 | UHURA Or old-style hand lasers?
61 | KIRK I did not invite a debate. I'm sorry. I'm worried about Spock and concerned about what's happened to something I once knew down there. You have the conn, Scotty. I'll be in Sickbay.
62 | M'BENGA We've no replacements for the damaged organs, sir. If he's going to live, his Vulcan physiology will have to do it for him.
63 | MCCOY Agreed. Sterilite off.
64 | CHAPEL Yes, sir.
65 | MCCOY He'll live or die now, Jim. I don't know which. Doctor M'Benga interned on a Vulcan ward. He couldn't be in better hands.
66 | KIRK Then you and I are transporting down.
67 | MCCOY I can't leave Spock at this time.
68 | KIRK You just indicated you could. There are Klingons here. If their mission is a legitimate research interest in the planet's organic potential, then you're the one man who can tell me.
69 | MCCOY And if that's not it?
70 | KIRK Then I need help. Advice I can trust as much as Spock's.
71 | MCCOY I appreciate the compliment, Jim, but
72 | KIRK Bones, I'm as worried about Spock as you are, but if the Klingons are breaking the treaty it could be interstellar war. Kirk to Bridge.
73 | SCOTT Bridge, Scott here.
74 | KIRK McCoy and I are transporting back down. Inform ship's stores that we'll need native costumes.
75 | SCOTT Captain, we may have to break out of orbit any minute to keep out of their sight. We'd be out of communicator range with you.
76 | KIRK I understand. We'll arrange a rendezvous schedule. Kirk out.
77 | KIRK Captain's log, stardate 4211.4. Keeping our presence here secret is an enormous tactical advantage, therefore I cannot risk contact with Starfleet Command. I must take action on my own judgment. I've elected to violate orders and make contact with planet inhabitants.
78 | KIRK Perfect. Tyree's camp's a quarter of a mile away.
79 | MCCOY Want to think about it again, Jim? Starfleet's orders about this planet state no interference with
80 | KIRK No interference with normal social development. I'm not only aware of it, it was my survey thirteen years ago that recommended it.
81 | MCCOY I read it. Inhabitants superior in many ways to humans. Left alone, they undoubtedly someday will develop a remarkably advanced and peaceful culture.
82 | KIRK Indeed. And I intend to see that they have that chance. You coming with me?
83 | MCCOY Do I have a choice?
84 | KIRK Contact ship. Took full poison. Fangs.
85 | MCCOY Enterprise, McCoy. Emergency. Come in. Enterprise, come in. McCoy! Emergency!
86 | KIRK They left. Out of orbit.
87 | MCCOY Jim, there is no antitoxin for this poison. I can only keep you alive a few hours with this.
88 | KIRK Tyree. Some of his men. Cure.
89 | MCCOY Are you hill people? Do you know a hunter named Tyree? A mugato attacked him. He's James Kirk. He's a friend of Tyree's. Blast it! Do something! He's dying!
90 | YUTAN Take him to the cave. I bring Tyree.
91 | MCCOY Medical log, stardate 4211.8. Kirk is right about the people here. Despite their fear and our strangeness, they're compassionate and gentle. I've learned the hunter Tyree is now their leader. He is expected to return shortly with his wife, who they say knows how to cure this poison. My problem. The captain is in deep shock. I must keep him warm and alive until then.
92 | MCCOY You and your Garden of Eden.
93 | NONA We must obtain the same firesticks, husband. You could be killing them instead. We could take their houses, their goods.
94 | TYREE Nona, enough. In time the villagers will return to their ways of friendship.
95 | NONA In time? They kill your people! I am a Kahn-ut-tu woman. In all this land, how many are there? Men seek us because through us they become great leaders.
96 | TYREE I took you because you cast a spell upon me.
97 | NONA And I have spells that help me keep you. Remember this leaf? The night we camped by the water?
98 | TYREE The night of madness.
99 | NONA Oh, Tyree, did you really hate that madness?
100 | TYREE No, Nona. No! It brought up evil beasts from my soul.
101 | NONA Only one lovely beast, Tyree, my huge, angry man.
102 | YUTAN Forgive me.
103 | NONA What is it?
104 | YUTAN There are strangers in our camp. One has taken the mugato bite. He dies.
105 | NONA Strangers?
106 | YUTAN It is said the dying one is a friend of Tyree, from long ago.
107 | NONA That one. Bring him when his head clears.
108 | NONA The stranger, where is he?
109 | TYREE Nona, where's Kirk? The cave?
110 | NONA Tyree, you wish me to save him?
111 | TYREE You must. He is the one I told you of. The friend of my younger days.
112 | NONA My remedies require I know what kind of man he is. All that is known of him.
113 | TYREE I gave him my promise of silence. He was made my brother.
114 | NONA And I am your wife, his sister. I promise silence also.
115 | TYREE Nona
116 | NONA Quickly! Or he dies.
117 | M'BENGA Don't let these low panel readings bother you. I've seen this before in Vulcans. It's their way of concentrating all their strength, blood, and antibodies onto the injured organs. A form of self-induced hypnosis.
118 | CHAPEL You mean he's conscious?
119 | M'BENGA Well, in a sense. He knows we're here and what we're saying, but he can't afford to take his mind from the tissue he's fighting to heal. I suppose he even knows you were holding his hand.
120 | CHAPEL A good nurse always treats her patients that way. It proves she's interested.
121 | TYREE I am Tyree.
122 | NONA And I'm Tyree's woman.
123 | TYREE It is Kirk. She will cure him.
124 | MCCOY What's that?
125 | NONA A mahko root.
126 | MCCOY A plant? It moves.
127 | NONA For those who know where to find it, how to use it, how to pick it.
128 | NONA Take this of my soul. This of my soul. Thine own. Into thine. Deeply. Together. Your pain is mine. All mine. Your soul and mine, together! Return. It is past. Return. Return!
129 | KIRK Bones. I had the strangest dream.
130 | MCCOY How do you feel, Jim?
131 | KIRK Tired. Very tired. You did a fine job, Bones. I think I'll sleep.
132 | MCCOY I want to thank you for saving his life. I would like to learn more about this.
133 | NONA Our blood has passed through the mahko root together. Our souls have been together. He is mine now.
134 | TYREE She must sleep also.
135 | MCCOY He is hers?
136 | TYREE When a man and woman are joined in this manner, he can refuse her no wish. But it is only legend.
137 | MCCOY Jim.
138 | KIRK Bones. What are you doing here? Tyree. My old friend.
139 | TYREE Yes, James! James, it's good to see you.
140 | KIRK What am I doing here? A mugato bite! I remember. I told him to take me to Tyree's camp. I knew you'd find a kahn-ut-tu to cure me. The kahn-ut-tu is the local witch people here. They've studied They've studied the roots and the herbs.
141 | NONA I am a kahn-ut-tu, Captain. I cured you.
142 | TYREE My wife, Nona.
143 | KIRK Yes, of course. I should've guessed. Congratulations. Tyree, we must talk now. The villagers, their new weapons. I want to hear all about that. We must make plans.
144 | NONA Good. It is past time to plan.
145 | TYREE Much has happened since you left, James. Come, we'll speak of it.
146 | NONA And of things to be done.
147 | TYREE Come. We will speak of it.
148 | CHAPEL The readings are beginning to fluctuate.
149 | M'BENGA Just as they should. This is Doctor M'Benga. There will be someone with you constantly now. When the time comes, I'll be called. As soon as he shows any signs of consciousness, call me immediately.
150 | CHAPEL Yes, Doctor.
151 | M'BENGA After you've called me, if he speaks, do whatever he says.
152 | CHAPEL Do whatever he says?
153 | M'BENGA Yes. That's clear enough, isn't it?
154 | TYREE The firesticks first appeared nearly a year ago. Since that time, many of my people have died.
155 | KIRK You say they make the firesticks themselves? How can you be sure?
156 | TYREE I've looked into their village. I have seen it being done.
157 | MCCOY Have you seen any strangers among the villagers?
158 | TYREE Strangers? No.
159 | KIRK Can you take us to their village while it's still dark?
160 | TYREE Yes, but the mugatos travel at night also. You killed one. Its mate will not be far.
161 | KIRK You've seen how these work.
162 | NONA I've seen them also, and I know you have many ways to make your friend Tyree a man of great importance.
163 | MCCOY Many ways? What else does she know about us?
164 | NONA Tyree has told me much of you. Do not blame him. It was the price for saving your life.
165 | KIRK We're simply strangers from
166 | NONA From one of the lights in the sky, and you have ways as far above firesticks as the sky above our world.
167 | TYREE You will not speak of this to others.
168 | NONA I will not if I am made to understand. Teach me. There's an old custom among my people. When a woman saves a man's life, he is grateful.
169 | KIRK I am grateful.
170 | MCCOY A splendid custom if not carried to extremes.
171 | KIRK We once were as you are, Spears, arrows. There came a time when our weapons grew faster than our wisdom, and we almost destroyed ourselves. We learned from this to make a rule during all our travels, Never to cause the same to happen to other worlds. Just as a man must grow in his own way and in his own time.
172 | NONA Some men never grow.
173 | KIRK Perhaps not as fast or in the way another thinks he should. But we're wise enough to know that we are wise enough not to interfere with the way of a man or another world.
174 | NONA You must let the villagers destroy us? You will not help your friend and brother kill them instead?
175 | TYREE No! I said I will not kill!
176 | NONA We must fight or die! Is dying better? You would let him die when you have weapons to make him powerful and safe? Then he has the wrong friends. And I have the wrong husband.
177 | TYREE You will help in ways she does not understand. I have faith in our friendship, James. Come, before we lose the darkness.
178 | MCCOY What's bothering you, Jim? If we find the Klingons have helped the villagers, there's certainly something we can do.
179 | KIRK That's what's bothering me. The something we may have to do.
180 | TYREE The guard. We must wait.
181 | KIRK Tyree, supposing you had to fight? What then?
182 | MCCOY Jim, this man believes in the same thing we believe in. That killing is stupid and useless.
183 | KIRK Tyree?
184 | TYREE Now. Come.
185 | KIRK The gun. Ammunition. Doctor.
186 | KRELL You are late, my friend Apella.
187 | APELLA A quarrel by my people. A division of some skins and a hill woman taken this morning. It's hard to divide one woman.
188 | KRELL Give her to the man who killed the most of her people. The others will see the profit in bravery. I'll make a Klingon of you yet. Your next improvement. Notice what we've done to the striker. See how it holds the priming powder more securely? Fewer misfires. When I return, we will give you other improvements. A rifled barrel.
189 | APELLA What?
190 | KRELL A way to shoot further and straighter.
191 | MCCOY Jim. Coal for forge, sulphur for gun powder.
192 | KIRK Let's take a look inside.
193 | KIRK Well, here's your forge. People's exhibit number one. A chrome steel drill point.
194 | MCCOY This pig iron is almost carbon-free. That village furnace certainly didn't produce it. People's exhibit number two. Cold-rolled gun barrel rod fashioned to look homemade. You were right about the Klingons, Jim. KIRK: Make recorder and scanner tapes of everything.
195 | MCCOY Right. It's a pity we can't include a live Klingon. That'd just about wrap it
196 | APELLA Is it difficult to cut grooves into the barrels?
197 | KRELL It's quite simple. I'll show you.
198 | APELLA I thought my people would grow tired of killing. But you were right. They see that it is easier than trading and it has pleasures. I feel it myself. Like the hunt, but with richer rewards.
199 | KRELL You will be rich one day, Apella, beyond your dreams. The leader of a whole world. A governor in the Klingon Empire.
200 | KIRK Bones!
201 | KRELL Guards! Intruders!
202 | KIRK Move! Fast!
203 | SPOCK Nurse.
204 | CHAPEL Yes?
205 | SPOCK Hit me. The pain will help me to consciousness. Hit me.
206 | CHAPEL Hit you? No! I can't
207 | SPOCK Blast you, strike me! If I don't regain consciousness soon, it may be too late. Hit me. Harder!
208 | SPOCK Again. Continue. The pain will help me to consciousness.
209 | SCOTT What are you doing, woman?
210 | CHAPEL Leave me alone!
211 | SCOTT Have you gone daft?
212 | CHAPEL Mister Spock needs me! Let go!
213 | SPOCK That will be quite enough. Thank you, doctor.
214 | M'BENGA Please, release her.
215 | SCOTT What's this all about?
216 | SPOCK She was doing as I requested, Mister Scott. A Vulcan form of self-healing.
217 | M'BENGA As you saw, they must wait until the last possible moment then fight their way back to consciousness.
218 | CHAPEL Here, let me help you, Mister Spock.
219 | SPOCK Thank you, nurse. I'm quite fully recovered.
220 | CHAPEL Yes, I see you are.
221 | KIRK Men, this is the pan. This is the hammer. The hammer striking the pan causes a spark, ignites the powder, and fires the flintlock. Now aim it as I showed you. Hold your breath and squeeze the trigger gently. Well done. Very, very, very good.
222 | MCCOY Jim, I want to talk to you.
223 | KIRK Not here, Bones. In the cave. Yutan, your turn.
224 | MCCOY Do I have to say it? It's not bad enough there's one serpent in Eden teaching one side about gun powder. You want to make sure they all know about it!
225 | KIRK Exactly. Each side receives the same knowledge and the same type of firearm.
226 | MCCOY Have you gone out of your mind? Yes, maybe you have. Tyree's wife, she said there was something in that root. She said now you can refuse her nothing.
227 | KIRK Superstition.
228 | MCCOY Is it a coincidence this is exactly what she wants?
229 | KIRK Is it? She wants superior weapons. That's the one thing neither side can have. Bones. Bones, the normal development of this planet was the status quo between the hill people and the villagers. The Klingons changed that with the flintlocks. If this planet is to develop the way it should, we must equalize both sides again.
230 | MCCOY Jim, that means you're condemning this whole planet to a war that may never end. It could go on for year after year, massacre after massacre.
231 | KIRK All right, Doctor! All right. Say I'm wrong. Say I'm drugged. Say the woman drugged me. What is your sober, sensible solution to all this?
232 | MCCOY I don't have a solution. But furnishing them firearms is certainly not the answer.
233 | KIRK Bones, do you remember the twentieth century brush wars on the Asian continent? Two giant powers involved, much like the Klingons and ourselves. Neither side felt could pull out.
234 | MCCOY Yes, I remember. It went on bloody year after bloody year.
235 | KIRK What would you have suggested, that one side arm its friends with an overpowering weapon? Mankind would never have lived to travel space if they had. No. The only solution is what happened back then. Balance of power.
236 | MCCOY And if the Klingons give their side even more?
237 | KIRK Then we arm our side with exactly that much more. A balance of power. The trickiest, most difficult, dirtiest game of them all, but the only one that preserves both sides.
238 | MCCOY And what about your friend Tyree? Will he understand this balance of power?
239 | KIRK No. Probably not. But I'm going to have to try and make him understand. I never had a more difficult task.
240 | MCCOY Well, Jim, here's another morsel of agony for you. Since Tyree won't fight, he will be one of the first to die.
241 | KIRK Well, war isn't a good life, but it's life. His wife is the only way to reach him. If I tell her we're going to supply guns, maybe she'll convince him.
242 | SPOCK Position, Mister Scott?
243 | SCOTT Entering distant orbit, sir. Approaching rendezvous time.
244 | SPOCK The Klingons?
245 | CHEKOV They haven't spotted us yet, sir. Looks like they're beaming someone aboard.
246 | SPOCK Stand by to signal the captain.
247 | UHURA Aye, sir.
248 | KIRK Nona. Pardon me.
249 | NONA You are here because I wished you here.
250 | KIRK Oh? I thought it was my idea.
251 | NONA Yes. They always believe they come of free will. Tyree thought the same when I cast my first spell on him.
252 | KIRK Nona
253 | NONA Can you smell this fragrance? Some find it pleasing.
254 | KIRK I'd like to talk to you.
255 | NONA Again. Some find it soothing. Yes.
256 | KIRK I would like
257 | NONA Happy. Yes. You feel good.
258 | KIRK I feel dizzy. Yes, you are lovely. You're beautiful.
259 | NONA Kiss me.
260 | MCCOY Where's Captain Kirk? Tyree, the firestick. Where is it?
261 | TYREE There! I left it there.
262 | MCCOY That's a fine thing to leave lying around. Show us where it is.
263 | TYREE I do not want it.
264 | MCCOY Jim? Jim. Who hit you?
265 | KIRK Nona.
266 | NONA I bring you victory for Apella!
267 | MAN 1 Tyree's woman.
268 | MAN She's a Kahn-ut-tu.
269 | MAN We won't trust this division to Apella.
270 | NONA Take me to him. He will have the strength to use this new weapon.
271 | NONA Touch me again, and this small box will kill you.
272 | KIRK No, no. I'm all right. My phaser. She took it.
273 | NONA This weapon I bring you is far greater than your firesticks.
274 | TYREE Nona!
275 | MAN Hill people!
276 | MAN It's a trap. The woman's tricked us.
277 | MCCOY She's dead.
278 | TYREE I want more of these, Kirk. Many more! Yutan, two of those who killed my wife have escaped. Track them down. I will kill them.
279 | MCCOY Here.
280 | KIRK Tomorrow in the palm of her hands.
281 | MCCOY Well, you got what you wanted.
282 | KIRK Not what I wanted, Bones. What had to be. Kirk here.
283 | SPOCK Spock, Captain. I trust all has gone well.
284 | MCCOY Spock, are you alive?
285 | SPOCK An illogical question, Doctor, since obviously you are hearing my voice.
286 | MCCOY Well, I don't know why I was worried. You can't kill a computer.
287 | KIRK Spock, ask Scotty how long it would take him to reproduce a hundred flintlocks.
288 | SCOTT I didn't get that exactly, Captain. A hundred what?
289 | KIRK A hundred serpents. Serpents for the Garden of Eden. We're very tired, Mister Spock. Beam us up home.
290 |
--------------------------------------------------------------------------------
/star_trek_tos/tos_transcript_5.txt:
--------------------------------------------------------------------------------
1 | character line
2 | KIRK That should make a good specimen.
3 | SULU Temperature's starting to drop.
4 | KIRK Yeah. At night it gets down to a hundred and twenty degrees below zero.
5 | SULU That's nippy.
6 | FISHER Hey!
7 | KIRK What happened?
8 | FISHER I fell off that bank, sir. Cut my hand.
9 | KIRK Let's see it. Get back to the ship. Report to the Sickbay.
10 | FISHER Yes, sir. Geological Technician Fisher. Ready to beam up.
11 | SCOTT Right. Locked onto you. Energise. Coadjutor engagement.
12 | WILSON What happened?
13 | FISHER I took a flop.
14 | WILSON Onto what?
15 | FISHER I don't know. Some kind of yellow ore.
16 | SCOTT Magnetic. Decontaminate that uniform.
17 | FISHER Yes, sir.
18 | SCOTT That acted like a burnout.
19 | KIRK Captain Kirk ready to beam up.
20 | SCOTT Just one moment, Captain. It checks out okay now. You better go get a synchronic meter so we can double-check.
21 | WILSON Yes sir.
22 | SCOTT All right, Captain. Locked onto you. Are you all right, Captain?
23 | KIRK Yes, I'm all right. Just a little dizzy.
24 | SCOTT Let me give you a hand.
25 | KIRK I can't get through there. Nothing serious. Don't leave the transporter room unattended.
26 | SCOTT Wilson will be right back, sir.
27 | KIRK Captain's Log, stardate 1672.1. Specimen-gathering mission on planet Alpha 177. Unknown to any of us during this time, a duplicate of me, some strange alter ego, had been created by the transporter malfunction.
28 | WILSON Captain? Are you all right, sir? Can I give you a hand, sir? Captain?
29 | UHURA Bridge to all decks. Section duty officers, check communication lines.
30 | KIRK Thank you.
31 | SCOTT It might profit you to let Doctor McCoy give you the once-over.
32 | KIRK All right, Engineer, I'll have my engines looked to.
33 | RAND Ship's manifests, sir. I think they're in order now.
34 | KIRK Thank you, Yeoman.
35 | RAND I've checked
36 | KIRK That's all.
37 | RAND Yes, sir.
38 | MCCOY You picked a good day, Fisher. Business has been lousy. What'd you do, take a fall on purpose so you could get a little vacation?
39 | KIRK Saurian brandy. Back to duty status, Fisher. I have no sympathy for clumsiness.
40 | FISHER No, sir. The hand's much better, sir.
41 | MCCOY What can I do for you, Jim?
42 | KIRK I said, give me the brandy!
43 | KIRK Yeah.
44 | SPOCK Mister Spock.
45 | KIRK Come in. Yes, Mister Spock, what is it?
46 | SPOCK Is there something I can do for you, Captain?
47 | KIRK Like what?
48 | SPOCK Well, Doctor McCoy seemed to think I should check on you.
49 | KIRK That's nice. Come on, Spock, I know that look. What is it?
50 | SPOCK Well, our good doctor said that you were acting like a wild man, demanded brandy.
51 | KIRK Our good doctor's been putting you on again.
52 | SPOCK Hmm. Well, in that case, if you'll excuse the intrusion Captain, I'll get back to my work.
53 | KIRK I'll tell him you were properly annoyed.
54 | SPOCK Captain.
55 | KIRK What is it, Scotty?
56 | SCOTT Transporter breakdown. Continue circuit testing. We beamed up this animal and, well, look for yourself. It's in this specimen case.
57 | KIRK Yes?
58 | SCOTT A few seconds after they sent this one up through the transporter, that duplicate appeared. Except it's not a duplicate, it's an opposite. Two of the same animal, but different. One gentle, this. One mean and fierce, that. Some kind of savage, ferocious opposite. Captain, we don't dare send Mister Sulu and the landing party up. If this should happen to a man.
59 | KIRK Oh, my.
60 | RAND Oh! Captain, you startled me. Is there something that you? Can I help you, Captain?
61 | KIRK Jim will do here, Janice.
62 | RAND Oh.
63 | KIRK You're too beautiful to ignore. Too much woman. We've both been pretending too long. Stop pretending. Let's stop pretending. Come here, Janice. Don't fight me. Don't fight me, Janice.
64 | RAND Captain!
65 | KIRK Just a minute, Janice. Just a minute!
66 | RAND Call Mister Spock! Call Mister Spock!
67 | FISHER Geological Technician Fisher. Deck twelve, section
68 | KIRK Me? My yeoman said that? I've been resting here since you left me. Alone, Mister Spock.
69 | SPOCK Doctor McCoy reports that you demanded this brandy in Sickbay and left with it. I found this bottle in Yeoman Rand's quarters.
70 | KIRK Not true. I haven't been to the Sickbay. Let's find out what's going on.
71 | KIRK Sickbay.
72 | RAND Then he kissed me and he said that we, that he was the Captain and he could order me. I didn't know what to do. When you mentioned the feelings we'd been hiding, and you started talking about us.
73 | KIRK Us?
74 | RAND Well, he is the captain. I couldn't just. You started hurting me. I had to fight you, and scratch your face.
75 | KIRK Yeoman, look at me. Look at me, look at my face. Are there any scratches?
76 | RAND I was sure I scratched you. I was frightened. Maybe
77 | KIRK Yeoman. I was in my room. It wasn't me.
78 | RAND Sir, Fisher saw you, too.
79 | KIRK Fisher saw?
80 | RAND If it hadn't been. I can understand. I don't want to get you into trouble. I wouldn't have even mentioned it!
81 | KIRK It wasn't me!
82 | FISHER It was you, sir.
83 | KIRK Do you know what you're saying?
84 | FISHER Yes, I know what I'm saying.
85 | MCCOY Back to that bed, bucko. Come on, let's go.
86 | SPOCK You can go now, Yeoman. There's only one logical answer. We have an impostor aboard.
87 | KIRK Captain's Log, stardate 1672.9. On the planet's surface, temperatures are beginning to drop, our landing party there in growing jeopardy. Due to the malfunction of the ship's transporter, an unexplained duplicate of myself definitely exists.
88 | KIRK How did all this happen?
89 | SCOTT I don't know sir, but when Fisher came up, his suit was covered with a soft yellow ore that had highly unusual properties. It may have caused an overload. Can't tell, not yet.
90 | KIRK Does the transporter work at all?
91 | SCOTT Yes sir, but we don't dare bring up the landing party. It might be duplicated like this animal.
92 | KIRK How long will it take you to find the trouble?
93 | SCOTT Can't say, sir.
94 | KIRK We just can't leave those four men down there. It's getting dark. They'll die. The surface temperature of that planet goes down to a hundred and twenty degrees below zero at night.
95 | SCOTT We're doing everything we can, sir.
96 | KIRK Yes, I know, Scotty.
97 | SPOCK About your double, Captain.
98 | KIRK Yes, er, yes, we'll have to find him. Search parties, Mister Spock. Organise search parties.
99 | SPOCK We can't take a chance on killing it. We have no previous experience, no way of knowing what would happen to you.
100 | KIRK Yes, that's right. We don't know, but the men have to be armed. The men are to be armed, with their phasers locked, I repeat, locked, on setting number one. There can't be any chance of him being killed. He's to be taken without. If the men are forced to fire, he can't be killed.
101 | SPOCK How shall we explain it to them, Captain? The search parties are to capture you?
102 | KIRK Tell them.
103 | SPOCK The search parties, Captain.
104 | KIRK Yes, I'll make an announcement to the entire crew, tell them what happened. It's a good crew. They deserve to know.
105 | SPOCK Captain, no disrespect intended, but you must surely realise you can't announce the full truth to the crew. You're the Captain of this ship. You haven't the right to be vulnerable in the eyes of the crew. You can't afford the luxury of being anything less than perfect. If you do, they lose faith, and you lose command.
106 | KIRK Yes, I do know that, Mister Spock. What I don't know is why I forgot that just now. Mister Spock, if you see me slipping again, your orders, your orders are to tell me.
107 | SPOCK Understood, Captain.
108 | KIRK Captain's Log, stardate 1673.1. Something has happened to me. Somehow, in being duplicated, I have lost my strength of will. Decisions are becoming more and more difficult.
109 | KIRK This is the Captain speaking. There's an impostor aboard the ship, a man who looks exactly like me and is pretending to be me. This man is dangerous. Utmost caution is to be observed. All crew members are to arm themselves. The impostor may be identified by scratches on his face. Repeat, the impostor may be identified by scratches on his face.
110 | KIRK Section chiefs, assign personnel to the search. All search parties
111 | KIRK report to Mister Spock for assignment.
112 | KIRK Something?
113 | SPOCK About the phaser weapons to be set for stunning force and locked.
114 | KIRK Oh, yes, yes. All hand phasers must be set on base cycle, stunning force.
115 | KIRK The impostor is not to be injured. Use minimum force. Repeat, the imposter
116 | KIRK I'm Captain Kirk!
117 | KIRK Is not to be injured.
118 | KIRK I'm Captain Kirk. I'm Captain Kirk! I'm Captain Kirk! I'm Captain Kirk! Wilson!
119 | WILSON Sir?
120 | KIRK Wilson, give me your phaser.
121 | WILSON Yes, sir.
122 | KIRK How have you been?
123 | WILSON Fine, sir.
124 | KIRK How's it going down there, Mister Sulu?
125 | SULU It's already twenty degrees below zero. Can't exactly
126 | SULU call it balmy.
127 | KIRK Isn't there any way we can help them?
128 | SPOCK Thermal heaters were transported down. They duplicated. They won't operate.
129 | KIRK Then we've got to get those men up.
130 | CREWMAN Mister Spock?
131 | SPOCK Spock here.
132 | CREWMAN Transporter Technician Wilson found injured near the Captain's cabin. He says the impostor attacked him, called him by name, took his hand phaser.
133 | SPOCK Acknowledged. Continue the search.
134 | KIRK We've got to find him before he, but how?
135 | SPOCK Apparently, this double, however different in temperament, has your knowledge of the ship, its crew, its devices. This being the case, perhaps we can outguess him by determining his next move. Knowing how the ship is laid out, where would you go to elude a mass search?
136 | KIRK The lower levels. The Engineering deck.
137 | SPOCK Set and locked on base cycle to stun, not to kill. What about your phaser, Captain? Don't you think we ought to get some help, Captain?
138 | KIRK No. I don't want anyone else to see the
139 | SPOCK Captain, you ordered me to tell you.
140 | KIRK Mister Spock, if I'm to be the Captain, I've got to act like one.
141 | KIRK You can't hurt me. You can't kill me. You can't. Don't you understand? I'm part of you. You need me. I need you.
142 | OTHER KIRK I don't need you.
143 | MCCOY He'll be regaining consciousness soon, and not knowing what his physical state is, I don't think I dare give him a tranquilizer of any kind. I think we'd better bind him.
144 | KIRK Yes. yes, all right. What's the matter with me?
145 | SPOCK Judging from my observations, Captain, you're rapidly losing the power of decision.
146 | MCCOY You have a point, Spock?
147 | SPOCK Yes, always, Doctor. We have here an unusual opportunity to appraise the human mind, or to examine, in Earth terms, the roles of good and evil in a man. His negative side, which you call hostility, lust, violence, and his positive side, which Earth people express as compassion, love, tenderness.
148 | MCCOY It's the Captain's guts you're analysing. Are you of that, Spock?
149 | SPOCK Yes, and what is it that makes one man an exceptional leader? We see indications that it's his negative side which makes him strong, that his evil side, if you will, properly controlled and disciplined, is vital to his strength. Your negative side removed from you, the power of command begins to elude you.
150 | KIRK What is your point, Mister Spock?
151 | SPOCK If your power of command continues to weaken, you'll soon be unable to function as Captain. You must be prepared for that.
152 | MCCOY You have your intellect, Jim. You can fight with that!
153 | KIRK For how long?
154 | SPOCK If I seem insensitive to what you're going through, Captain, understand it's the way I am.
155 | SCOTT Captain Kirk.
156 | KIRK Kirk here.
157 | SCOTT Mister Scott, sir, on the lower level of the Engineering deck.
158 | SCOTT I've found a new trouble with the transporter. The casing has a wide gap ripped in it. The main circuits
159 | SCOTT have been burned through. The abort control circuit is gone altogether.
160 | SULU Can you give us a status report, Captain? Temperature's still dropping. Now forty one degrees below zero.
161 | KIRK We've located the trouble. It shouldn't be much longer.
162 | SULU Do you think you might be able to find a long rope somewhere and lower us down a pot of hot coffee?
163 | KIRK I'll see what we can do.
164 | SULU Rice wine will do, if you're short on coffee.
165 | KIRK Engineering deck, Kirk here.
166 | SCOTT Scott here, Captain.
167 | KIRK That unit, Scotty, status report.
168 | SCOTT The transporter unit ioniser. Nothing much left of it, sir.
169 | KIRK How bad is it?
170 | SCOTT We can't repair it in less than a week.
171 | KIRK Captain's Log, stardate 1673.5. Transporter still inoperable. My negative self is under restraint in Sickbay. My own indecisiveness growing. My force of will steadily weakening. On the planet, condition critical. Surface temperature is seventy five degrees below zero, still dropping.
172 | SULU I think we ought to give room service another call. That coffee's taking too long. Enterprise, this is Sulu.
173 | KIRK Kirk here, Mister Sulu.
174 | SULU Hot line direct to the Captain. Are we that far gone?
175 | KIRK I gave everybody the afternoon off. I'm watching the store.
176 | KIRK How is it down there?
177 | SULU Oh, lovely, except that the frost is building up. We're using hand phasers to heat the rocks. One phaser quit on us, three still operating. Any possibility of getting us back aboard before the skiing season opens down here?
178 | SPOCK This is Spock, Mister Sulu. You'll have to hold on a little longer. There's no other way. Survival procedures, Mister Sulu.
179 | SULU Per your training programme, Mister Spock.
180 | KIRK What happened?
181 | MCCOY Apparently the body functioning weakened during the duplication process. A fact I failed to consider.
182 | KIRK He's not dying?
183 | KIRK Yes, he is.
184 | OTHER KIRK Help me.
185 | KIRK How can he die? Can I survive without him?
186 | MCCOY I don't know, Jim.
187 | KIRK Don't be afraid. Here's my hand. Hold on. You don't have to be afraid. I won't let go. Hold on. You won't be afraid if you use your mind and think! Think! You can do it. That's it!
188 | MCCOY Jim, he is back! Jim, you can use that brandy now. In fact, I'll join you.
189 | KIRK I have to take him back inside myself. I can't survive without him. I don't want him back. He's like an animal, a thoughtless, brutal animal, and yet it's me. Me.
190 | MCCOY Jim, you're no different than anyone else. We all have our darker side. We need it! It's half of what we are. It's not really ugly, it's human.
191 | KIRK Human.
192 | MCCOY Yes, human. A lot of what he is makes you the man you are. God forbid I should have to agree with Spock, but he was right. Without the negative side, you wouldn't be the Captain. You couldn't be, and you know it. Your strength of command lies mostly in him.
193 | KIRK What do I have?
194 | MCCOY You have the goodness.
195 | KIRK Not enough. I have a ship to command.
196 | MCCOY The intelligence, the logic. It appears your half has most of that, and perhaps that's where man's essential courage comes from. For you see, he was afraid and you weren't.
197 | SPOCK Captain Kirk.
198 | KIRK Kirk here.
199 | SPOCK Spock here. Would you come to the transporter room. We think we may have found an answer.
200 | KIRK Coming.
201 | KIRK What is it?
202 | SCOTT We've found a way to get the transporter working, sir.
203 | SPOCK We've attached some bypass and leader circuits to compensate for the difference. Tied directly into the impulse engines, there shouldn't be more than a five point variation in the velocity balance. I suggest we send the animal through. Captain.
204 | KIRK Yes, yes. Go ahead.
205 | SCOTT I'll grab him by the scruff of the neck and hold him as long as I can.
206 | KIRK Don't hurt him.
207 | SPOCK It's painless and quick. The animal will be unconscious for only a few minutes.
208 | SCOTT If this doesn't work, I don't know what will.
209 | SPOCK Energise. Reverse.
210 | SPOCK The shock of putting him back together seems to have been too much for him.
211 | MCCOY He's dead, Jim.
212 | SPOCK Captain's Log, stardate 1673.1. Entry made by Second Officer Spock. Captain Kirk retains command of this vessel, but his force of will rapidly fading. Condition of landing party critical. Transporter unit still under repair.
213 | MCCOY Autopsy in-depth. Hurry. I don't know. Animal could have died of some kind of shock.
214 | SPOCK For once, I agree with you.
215 | MCCOY I said could have, Mister Spock. We won't know until we get a full post-mortem.
216 | SPOCK No autopsy is necessary to know that the animal was terrified, confused. It was split into two halves and suddenly thrust back together again. Thus shock induced by blind terror.
217 | KIRK Yes, yes, that sounds likely.
218 | SPOCK It couldn't understand. You can. You have your intelligence controlling your fear.
219 | KIRK Get the transporter room ready.
220 | MCCOY Could be, if, maybe. All guesswork so far. Just theory. Jim, why don't you give me a chance to do an autopsy and let Spock check the transporter circuits again.
221 | KIRK That sounds, sounds reasonable. We should double-check everything.
222 | SPOCK Aren't you forgetting something, Captain?
223 | KIRK No, I don't think I've for
224 | SPOCK Your men on the planet surface. How much time do they have left?
225 | KIRK Yes, that's right. The men. We have to take the chance, Bones. Their lives
226 | MCCOY Suppose it wasn't shock, Jim. Suppose death was caused by transporter malfunction. Then you'd die. They'd die, anyway. Jim, you can't risk your life on a theory!
227 | SPOCK Being split in two halves is no theory with me, Doctor. I have a human half, you see, as well as an alien half, submerged, constantly at war with each other. Personal experience, Doctor. I survive it because my intelligence wins over both, makes them live together. Your intelligence would enable you to survive as well.
228 | KIRK Help me. Somebody make the decision.
229 | SPOCK Are you relinquishing your command, Captain?
230 | KIRK No. No, I'm not.
231 | MCCOY Well then, we can't help you, Jim. The decision is yours.
232 | KIRK Mister Spock, ready the transporter room. Bones, continue the autopsy.
233 | UHURA Captain Kirk, I have a tie-in with Sulu now.
234 | KIRK Kirk here.
235 | SULU Captain K-Kirk, Sulu here. One hundred seventeen below. Can't last much longer.
236 | SULU Can't see clearly, Doctor, to read top indicator. Think the cold penetrating communicator. Two men unconscious. No time. No. Can't wait. No time.
237 | KIRK Mister Sulu. Mister Sulu. Can't wait. Can't let them die.
238 | OTHER KIRK What are you going to do?
239 | KIRK Go through the transporter, both of us.
240 | OTHER KIRK There's nothing I can do to stop you.
241 | KIRK It's what I have to do. It's what I have to do. What we have to do.
242 | OTHER KIRK I won't fight you anymore. Oh, I feel so weak. I'll be glad when this is over.
243 | KIRK Janice, hello.
244 | RAND Captain, I
245 | KIRK Yeoman, I owe you an explanation.
246 | RAND No.
247 | KIRK Yes, I do. The transporter malfunctioned, divided me, created a duplicate. The animal part of me came to your cabin. He even scratched me to make us look more alike. I'd like the chance to explain it to you. You don't mind if I come to your cabin later?
248 | RAND No, sir.
249 | KIRK Bridge.
250 | FARRELL No word from Mister Sulu, sir.
251 | OTHER KIRK Prepare to leave orbit, Mister Farrell. Well?
252 | FARRELL Captain!
253 | OTHER KIRK I gave you an order, Mister Farrell.
254 | FARRELL But what about
255 | OTHER KIRK They can't be saved. Prepare to leave orbit.
256 | FARRELL Yes, sir.
257 | SPOCK Captain, I thought the plan
258 | OTHER KIRK I've changed my mind. Man your station, Mister Spock. Grab him. He's the impostor.
259 | MCCOY No!
260 | OTHER KIRK McCoy, he's fooled you.
261 | MCCOY He attacked him.
262 | OTHER KIRK Mister Spock, you know who I am. You know what that is.
263 | FARRELL Mister Spock, which one? What do we do?
264 | SPOCK We'll let the captain handle this.
265 | OTHER KIRK I'm the captain. Isn't that obvious? Look at his face. Remember the scratches? Look how he's tried to hide them. He wants you to think that he's Captain Kirk. You know who I am.
266 | KIRK Yes, I know.
267 | OTHER KIRK You want to kill me, don't you? Farrell, James, grab him. He'll destroy the ship! I'm the Captain. Don't you understand? I'm captain of the ship! I'm the captain! This is my ship! My ship! It's mine! I'll kill you.
268 | KIRK Can half a man live?
269 | OTHER KIRK Take another step, you'll die.
270 | KIRK Then we'll both die.
271 | OTHER KIRK Please, I don't want to. Don't make me. Don't make me. I don't want to go back. Please! I want to live!
272 | KIRK You will. Both of us.
273 | OTHER KIRK I want to live!
274 | SPOCK You'll have to hold on to him, Captain.
275 | KIRK Mister Spock.
276 | SPOCK Captain?
277 | KIRK If this doesn't work.
278 | SPOCK Understood, Captain.
279 | KIRK Mister Spock.
280 | SPOCK Ready.
281 | MCCOY Well, Mister Spock? Jim?
282 | KIRK Get those men aboard fast.
283 | SPOCK Right away, Captain.
284 | MCCOY Severe exposure and frostbite, but I think they'll make it. How do you feel, Jim?
285 | KIRK How? I've seen a part of myself no man should ever see.
286 | FARRELL Status report, green.
287 | SPOCK All sections report ready, sir.
288 | KIRK Good. Thank you, Mister Spock, from both of us.
289 | SPOCK Shall I pass that on to the crew, sir?
290 | KIRK The impostor's back where he belongs. Let's forget him.
291 | RAND Captain? The impostor told me what happened, who he really was, and I'd just like to say that. Well, sir, what I'd like is
292 | KIRK Thank you, Yeoman.
293 | SPOCK The, er, impostor had some interesting qualities, wouldn't you say, Yeoman?
294 | KIRK This is the Captain speaking. Navigator, set in course correction. Helmsman, steady as she goes.
295 |
--------------------------------------------------------------------------------
/star_trek_tos/tos_transcript_54.txt:
--------------------------------------------------------------------------------
1 | character line
2 | SULU Approaching planet Omega Four, sir. Object ahead. Another vessel in planet orbit, Captain.
3 | KIRK Lieutenant, sound alert.
4 | UHURA Aye, sir. All decks report ready, sir.
5 | KIRK Long range sensor scan, Mister Sulu.
6 | SULU It's the USS Exeter, sir.
7 | KIRK Try to contact her, Lieutenant.
8 | UHURA Aye, sir.
9 | KIRK The Exeter. she was patrolling in this area six months ago. I hadn't heard of any trouble.
10 | UHURA Receiving no response to our signal, sir.
11 | SULU The sensors indicate no damage to the vessel, Captain.
12 | KIRK I see. Magnification factor three, Mister Sulu.
13 | KIRK Hold our position out here, Mister Sulu. Lieutenant, have Mister Spock, Doctor McCoy, and Lieutenant Galloway report to the transporter room. We'll board and investigate.
14 | SPOCK We're locked onto the Exeter's engineering section, Captain.
15 | KIRK Phasers on heavy stun. Energise.
16 | SPOCK Captain.
17 | KIRK Just their uniforms left.
18 | SPOCK As if they were in them when
19 | KIRK Exactly. When what?
20 | KIRK This is Captain Kirk of the USS Enterprise. Is anyone on board? If there is, and you can hear me, please respond by intercom to the engineering section. Is there anyone on board?
21 | SPOCK Spock here, Captain.
22 | SPOCK Lieutenant Galloway and I are checking out the lower levels. There seems to be no one aboard. Only uniforms.
23 | KIRK What about the shuttlecraft?
24 | GALLOWAY Galloway on the hangar deck, sir. All four of the craft are still here. If they left, they didn't leave that way.
25 | KIRK Doctor McCoy and I are going to the Bridge. Meet us there.
26 | KIRK Captain's log. Aboard the USS Exeter commanded by Ron Tracey, one of the most experienced captains in the Starfleet. What could have happened to him and the over four hundred men and women who were on this ship?
27 | GALLOWAY The helm was left on automatic, sir.
28 | SPOCK Fascinating.
29 | KIRK Spock, play the last log tape. Maybe they had time to record what happened to them.
30 | SPOCK Aye, sir.
31 | MCCOY Jim, the analysis of this so far is potassium thirty five percent, carbon eighteen percent, phosphorous one point zero, calcium one point five. Jim, the crew didn't leave. They're still here.
32 | KIRK What do you mean?
33 | MCCOY These white crystals. That's what's left of the human body when you take the water away, which makes up ninety six percent of our bodies. Without water, we're all just three or four pounds of chemicals. Something crystallised them down to this.
34 | SPOCK I have their surgeon's log, Captain. Their last log entry, Captain, on screen.
35 | DOCTOR If you've come aboard this ship, you're dead men. Don't go back to your own ship. You have one chance. Get down there. Get down there fast. Captain Tracey is
36 | KIRK Prepare to beam down to the planet surface fast.
37 | VOICE Oi! O1!
38 | TRACEY Put the axe away, Liyang.
39 | KIRK That's Ron Tracey. Ron.
40 | TRACEY I knew someone would come looking for us. I'm just sorry it had to be you, Jim. I'm glad your arrival stopped this. No more of this, Wu. Lock up the savages.
41 | WU They carry fire boxes.
42 | TRACEY I said lock up the savages. The prisoners are called Yangs. Impossible even to communicate with. Hordes of them out there. They'll attack anything that moves.
43 | SPOCK Interesting that the villagers know about phasers.
44 | KIRK You were left alone down here, Ron. What happened?
45 | TRACEY Our medi-scanners revealed this planet as perfectly harmless. The villagers, the Kohms here, were friendly enough once they got over the shock of my white skin. As you've seen, we resemble the Yangs, the savages. My landing party transported back to the ship. I stayed down here to arrange for the planet survey with the village elders. The next thing I knew, the ship was calling me. The landing party had taken an unknown disease back. My crew, Jim. My entire crew. Gone.
46 | KIRK Yes, I know. We saw it.
47 | TRACEY And I'm just as infected as they were. As you are. But I stayed alive because I stayed down here. There's some natural immunisation that protects everyone on the planet surface. I don't know what it is.
48 | MCCOY Lucky we found that log. If we'd gone back to the Enterprise.
49 | TRACEY You'd be dying by now, along with the rest of the Enterprise crew. You'll stay alive only as long as you stay here. None of us will ever leave this planet.
50 | KIRK Captain's log, supplemental. The Enterprise has left the Exeter and moved into close planet orbit. Although it appears the infection may strand us here the rest of our lives, I face an even more difficult problem. A growing belief that Captain Tracey has been interfering with the evolution of life on this planet. It seems impossible. A star captain's most solemn oath is that he will give his life, even his entire crew, rather than violate the Prime Directive.
51 | MCCOY Tell the lab the final reading on our tissue is Y three X point zero zero four. And I could use a second blood analyser unit.
52 | UHURA We'll beam it down shortly, Doctor.
53 | UHURA Enterprise out.
54 | MCCOY Our tissues definitely show a massive infection, Jim, but something is immunising us down here, thank heavens, or we'd have been dead hours ago.
55 | KIRK I don't think we're going to have time to isolate it, Bones.
56 | MCCOY The problem is, it could be anything Some spores or pollen in the air, some chemical. Just finding it could take months, maybe even years. And I've only got one lead. The infection resembles one developed by Earth during their bacteriological warfare experiments in the 1990s. Hard to believe we were once foolish enough to play around with that.
57 | SPOCK A Yang lance, Doctor.
58 | KIRK Are you all right?
59 | SPOCK Bruised only. We were approximately one hundred metres from the village when five of the savages ambushed us. We managed to escape without firing.
60 | KIRK Spock, do you see any hope that these Yangs can be reasoned with? A truce, a parley, a
61 | GALLOWAY No, Captain. They're too wild. They act almost insane.
62 | SPOCK Captain Tracey is being quite factual in several statements. One, the Yangs are totally contemptuous of death. They seem incredibly vicious. Two, he is also being factual in that the Yangs are massing for an attack. There are signs of thousands of them in the foothills beyond. However, he was less than truthful in one very important matter.
63 | KIRK Phaser power packs.
64 | SPOCK Captain Tracey's reserve belt packs. Empty. Found among the remains of several hundred Yang bodies.
65 | KIRK The fool.
66 | SPOCK A smaller attack on this village a week ago, driven off by Captain Tracey with his phaser. I have found villagers who will corroborate it.
67 | MCCOY Now wait a minute. He lost his ship and his crew, and he found himself the only thing standing between an entire village of peaceful people.
68 | SPOCK Regulations are quite harsh, but they're also quite clear, Captain. If you do not act, you will be considered equally guilty.
69 | MCCOY Without a serum, we're trapped here with the villagers. Now why destroy what's left of the man by arresting him?
70 | SPOCK I agree that formal charges have little meaning now. However, you must at least confiscate his phaser.
71 | KIRK The fool. Starfleet should be made aware.
72 | TRACEY I'll be sending the next message, Jim.
73 | TRACEY Enterprise, come in.
74 | UHURA Enterprise bridge. Lieutenant Uhura.
75 | TRACEY Captain Tracey of the Exeter.
76 | UHURA Yes, sir. Captain Kirk informed us earlier you had survived.
77 | TRACEY I'm afraid I have some bad news. Your captain and landing party must have beamed down too late for full immunisation.
78 | TRACEY They've been found unconscious, but I'm doing everything I can for them now.
79 | SULU Sir, this is Lieutenant Sulu in temporary command of the Enterprise.
80 | SULU Our whole medical staff will volunteer to beam down
81 | TRACEY There's no point in risking more lives, Lieutenant. Since I've acquired some immunity perhaps the others
82 | KIRK Sulu!
83 | TRACEY At their next word, kill him.
84 | SULU Repeat your message. Come in, landing party. Repeat your message.
85 | TRACEY I'm sorry, Lieutenant. Your captain's feverish, quite delirious.
86 | SULU I understand, sir. When he regains consciousness, assure him that we have no problems here.
87 | TRACEY I'll contact you later, let you know of any future needs. Landing party out.
88 | TRACEY That's enough of that, Captain. Leave us.
89 | KIRK Captain Ronald Tracey, as per Starfleet Command, regulation seven, paragraph four
90 | TRACEY I must now consider myself under arrest, unless in the presence of the most senior fellow officers presently available, I give satisfactory answer to those charges which you now bring. Et cetera, et cetera. Those were the first words duty required you to say to me, and you said them. You're covered. Now, suppose we go on to the next subject.
91 | KIRK Which is, why?
92 | TRACEY Good. Direct, succinct. Answer. No native to this planet has ever had any trace of any kind of disease. How long would a man live if all disease were erased, Jim? Wu. Tell Captain Kirk your age.
93 | WU Age? I have seen forty two years of the red bird. My eldest brother
94 | TRACEY Their year of the red bird comes once every eleven years, which he's seen forty two times. Multiply it. Wu is four hundred and sixty two years old. His father is well over a thousand. Interested, Jim?
95 | KIRK McCoy could verify all that.
96 | TRACEY He will if you order it. We must have a doctor researching this. Are you grasping all it means? This immunising agent here, once we've found it, is a fountain of youth. Virtual immortality, or as much as any man will ever want.
97 | KIRK For sale by
98 | TRACEY Out. By those who own the serum. McCoy will eventually isolate it. Meanwhile, you inform your ship your situation's impossible. Order them away. When we're ready, we'll bargain for a whole fleet of ships to pick us up. And they'll do it.
99 | KIRK Yes, I suppose they would.
100 | TRACEY We've got to stay alive. Let the Yangs kill us and destroy what we have to offer and we'll have committed a crime against all humanity. I'd say that's slightly more important than the Prime Directive, wouldn't you, Jim?
101 | KIRK It's a very interesting proposition. Let me think it over.
102 | TRACEY Guards.
103 | TRACEY Take the doctor back to his workplace. The pointed-eared one stays. And Wu, tell your men we'll be leaving soon. We'll be in ambush for the Yangs. With many fire boxes this time. What do you think of that, Jim?
104 | TRACEY Animals who happen to look like us. You still think the Prime Directive's for this planet?
105 | KIRK I don't think we have the right or the wisdom to interfere, however a planet is evolving.
106 | TRACEY Well, if logic won't work, perhaps this will. Put him in there.
107 | KIRK Don't they ever rest?
108 | SPOCK Not that I have observed, Captain. Of course, should they wish to do so, one could always rest while the other keeps you occupied.
109 | KIRK Thank you, Spock. At least tell me why you want to kill me.
110 | SPOCK Good, Captain. Try to reason with them. Keep trying, Captain. Their behaviour is highly illogical.
111 | KIRK No point in repeating that it's illogical, Spock. I'm quite aware of it.
112 | KIRK Pity you can't teach me that.
113 | SPOCK I have tried, Captain.
114 | MCCOY Oh, thank you. Thank you very much.
115 | SPOCK Captain, I have managed to loosen this grill somewhat. If the mortar on yours is as old.
116 | KIRK I can't even get at it. He'd be on me in a moment. Keep talking, Spock. Don't let me doze off.
117 | SPOCK Captain Tracey mentioned there was once a considerable civilisation here. The only reasonable explanation would be a war. Nuclear devastation or a bacteriological holocaust.
118 | KIRK That's a very interesting theory. The yellow civilisation is almost destroyed, the white civilisation is destroyed. Keep working on the window if we're ever going to regain our freedom.
119 | CLOUD Freedom? Freedom?
120 | KIRK Spock.
121 | SPOCK Yes, I heard, Captain.
122 | CLOUD That is a worship word. Yang worship. You will not speak it.
123 | KIRK Well, well, well. It is our worship word, too.
124 | CLOUD You live with the Kohms.
125 | KIRK Am I not now a prisoner of the Kohms as you are?
126 | KIRK Why did you not speak until now?
127 | CLOUD You spoke to Kohms. They are only for killing.
128 | KIRK Spock, we'll have you out in a minute.
129 | SPOCK Captain? Captain? Captain, are you able to respond?
130 | KIRK Spock. How long?
131 | SPOCK Seven hours and eight minutes, Captain.
132 | KIRK Seven hours and eight. Spock. Keys. I'll have you out in a minute.
133 | MCCOY Good morning, Jim.
134 | KIRK Good morning.
135 | SPOCK We can contact the ship in a few moments, Captain, if I can cross-circuit this unit.
136 | KIRK Good. Did you find out anything?
137 | MCCOY Yes. I'm convinced that once there was a frightening biological war that existed here. The virus still exists. Then over the years, nature built up these natural immunising agents in the food, the water, and the soil.
138 | SPOCK War created an imbalance and nature counterbalanced it.
139 | KIRK There is a disease here, something that affected the Exeter landing party and us.
140 | MCCOY That's right. These immunising agents take time, and that's the real tragedy. Had the Exeter landing party stayed here just a few hours longer, they never would have died.
141 | KIRK Then we can leave any time we want to. Tracey is of the opinion these immunising agents can become a fountain of youth. There are people here over a thousand years old, Bones.
142 | MCCOY Survival of the fittest, because their ancestors who survived had to have a superior resistance. Then they built up these powerful protective antibodies in the blood during the wars. Now, if you want to destroy a civilisation or a whole world, your descendants might develop a longer life, but I hardly think it's worth it.
143 | KIRK Then anything you develop here as a result of all this is useless.
144 | MCCOY Who knows? It might eventually cure the common cold, but lengthen lives? Poppycock. I can do more for you if you just eat right and exercise regularly.
145 | SPOCK Ready, Captain. Quite crude. Voice communication will not be possible, but we can signal the ship.
146 | KIRK All that bloodshed for nothing. That'll be sufficient, Mister Spock.
147 | TRACEY No messages. Kirk, the savage in the cell with you. Did you set him free? You sent him, Kirk. You sent him to warn the tribes! The Yangs must've been warned. They sacrificed hundreds just to draw us out in the open. And then they came, and they came. We drained four of our phasers, and they still came. We killed thousands and they still came.
148 | MCCOY He'll live, but I'll have to get him to better facilities than this.
149 | TRACEY Impossible! You can't carry the disease up to the ship with you.
150 | MCCOY He's fully immunised now. We all are.
151 | KIRK We can beam up at any time. Any of us.
152 | TRACEY You've isolated the serum?
153 | KIRK There's no serum! There are no miracles! There's no immortality here! All this is for nothing!
154 | TRACEY Explain it to him, Doctor.
155 | MCCOY Leave medicine to medical men, Captain. You found no fountain of youth here. People live longer here now because it's natural for them to.
156 | TRACEY Outside. Or I'll burn down both your friends now.
157 | KIRK Do what you can for him, Doctor.
158 | KIRK Where is everybody?
159 | TRACEY Dead or in hiding. Now let's see how eager you are to die. Call your ship. I need your help, Kirk. They're going to attack the village. My phaser's almost drained. We need new, fresh ones. You're not just going to stand there and let them kill you, are you? If I put a weapon in your hand you'll fight, won't you?
160 | KIRK We can beam up, Tracey. All of us.
161 | TRACEY I want five phasers. No, ten. With three extra power packs each.
162 | KIRK All right. Kirk to Enterprise.
163 | UHURA Captain, are you all right now?
164 | KIRK Yes, quite all right. I'd like ten phasers beamed down with three extra power packs, please. Have you got that?
165 | TRACEY Say again.
166 | KIRK Enterprise, do you read me?
167 | SULU Captain, this is Sulu. We read you, but surely you know that can't be done
168 | SULU Without verification.
169 | KIRK Not even if we're in danger, Mister Sulu?
170 | SULU Captain, we have volunteers standing by to beam down. What is your situation?
171 | KIRK The situation is not immediately dangerous. Have the volunteers stand by. Kirk out.
172 | TRACEY You have a well-trained bridge crew, Captain. My compliments.
173 | KIRK Spock?
174 | SPOCK I'm weak, Captain, but not in difficulty.
175 | MCCOY He must have attention soon.
176 | SPOCK My need for attention is vital, Doctor, but our need for departure is even more immediate.
177 | KIRK If my ancestors were forced out of the cities into the deserts, the hills
178 | SPOCK Yes. I see, Captain. They would've learned to wear skins, adopted stoic mannerisms, learned the bow and the lance.
179 | KIRK Living like the Indians, and finally even looking like the American Indian. American. Yangs? Yanks? Spock, Yankees!
180 | SPOCK Kohms? Communists? The parallel is almost too close, Captain. It would mean they fought the war your Earth avoided, and in this case, the Asiatics won and took over this planet.
181 | KIRK But if it were true, all these generations of Yanks fighting to regain their land.
182 | MCCOY You're a romantic, Jim.
183 | CLOUD That which is ours is ours again. It will never be taken from us again.
184 | TRACEY They can be handled, Jim. Together it'll be easy. I caution you, gentlemen, don't fight me here. I'll win. Or at worst, I'll drag you down with me.
185 | CLOUD I am Cloud William, chief. Also son of chief. Guardian of the holies, speaker of the holy words, leader of warriors. Many have died, but this is the last of the Kohm places. What is ours is ours again.
186 | CLOUD Aypledgli ianectu flaggen tupep kile for stahn
187 | KIRK And to the republic for which it stands, one nation under God, indivisible, with liberty and justice for all.
188 | ELDER He spoke the holy word.
189 | CLOUD You know many of our high-worship words. How?
190 | KIRK In my land we have a tribe like you.
191 | CLOUD Where is your tribe?
192 | KIRK Up there. One of those points of light that you see at night.
193 | ELDER Why are you here? Were you cast out?
194 | KIRK You're confusing the stars with heaven.
195 | TRACEY He was cast out! Don't you recognise the Evil One? Who else would trick you with your own sacred words? Let your God strike me dead if I lie. But he won't, because I speak for him.
196 | CLOUD Yet you killed many Yangs.
197 | TRACEY You tried to kill me.
198 | KIRK We're not gods! We're not evil ones. We're men, like yourselves.
199 | TRACEY Would a man know your holy words? Would a man use them to trick you? See his servant? His face, his eyes, his ears? Do the Yang legends describe this servant of the evil one?
200 | KIRK Are your faces alike? Can you tell from them which of you is good and which of you is evil?
201 | TRACEY You command him. Everyone's seen that. You want more proof? He has no heart.
202 | MCCOY His heart is different! The internal organs of a Vulcan are
203 | CLOUD Bring him.
204 | CLOUD He has no heart.
205 | ELDER One of them lies.
206 | CLOUD But which? If we should kill the good, evil would be among us.
207 | ELDER There is a way.
208 | CLOUD Greatest of holies. Chiefs and sons of chiefs may speak the words, but the Evil One's tongue would surely turn to fire. I will begin. You shall finish. Ee'dplebnista norkohn forkohn perfectunun.
209 | KIRK Those words are familiar. Wait a moment.
210 | TRACEY He fears to speak them, for indeed his tongue would burn with fire. Force him! Kill his servant unless he speaks, so you may see if the words burn him.
211 | KIRK No, wait! There's a better way. Does not your sacred book promise that good is stronger than evil?
212 | SIRAH Yes, it is written. Good shall always destroy evil.
213 | ELDER It is written.
214 | CLOUD The fight is done when one is dead.
215 | MCCOY Spock, I've found that evil usually triumphs unless good is very, very careful.
216 | CLOUD Hoola!
217 | MCCOY Spock, we've got to do something!
218 | SPOCK I am open to suggestions, Doctor.
219 | MCCOY What are you doing?
220 | SPOCK I'm making a suggestion.
221 | CLOUD Kill him. It is written. Good must destroy evil.
222 | SULU Sir, we picked up communicator signals, but
223 | KIRK We'll discuss that later, Lieutenant. Leslie, free Doctor McCoy and Mister Spock. Put Captain Tracey under arrest.
224 | SULU Aye, sir.
225 | KIRK Now, Cloud William.
226 | CLOUD You are a great God servant. We are your slaves.
227 | KIRK Get up. Face me.
228 | CLOUD When you would not say the holy words, of the Ee'd Plebnista, I doubted you.
229 | KIRK I did not recognise those words, you said them so badly, Without meaning.
230 | ELDER No! No! Only the eyes of a chief may see the Ee'd Plebnista.
231 | KIRK This was not written for chiefs. Hear me! Hear this! Among my people, we carry many such words as this from many lands, many worlds. Many are equally good and are as well respected, but wherever we have gone, no words have said this thing of importance in quite this way. Look at these three words written larger than the rest, with a special pride never written before or since. Tall words proudly saying We the People. That which you call Ee'd Plebnista was not written for the chiefs or the kings or the warriors or the rich and powerful, but for all the people! Down the centuries, you have slurred the meaning of the words, 'We, the people of the United States, in order to form a more perfect union, establish justice, ensure domestic tranquillity, provide for the common defence, promote the general welfare, and secure the blessings of liberty to ourselves and our posterity, do ordain and establish this constitution.' These words and the words that follow were not written only for the Yangs, but for the Kohms as well!
232 | CLOUD The Kohms?
233 | KIRK They must apply to everyone or they mean nothing! Do you understand?
234 | CLOUD I do not fully understand, one named Kirk. But the holy words will be obeyed. I swear it.
235 | SPOCK There's no question about his guilt, Captain, but does our involvement here also constitute a violation of the Prime Directive?
236 | KIRK We merely showed them the meaning of what they were fighting for. Liberty and freedom have to be more than just words. Gentlemen, the fighting is over here. I suggest we leave them to discover their history and their liberty.
237 |
--------------------------------------------------------------------------------
/star_trek_tos/tos_transcript_9.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Prooffreader/Misc_ipynb/5a27a605f312e254a445b1f509915e174b745b09/star_trek_tos/tos_transcript_9.txt
--------------------------------------------------------------------------------
/tree_convert_mega_to_gexf.ipynb:
--------------------------------------------------------------------------------
1 | {
2 | "metadata": {
3 | "name": "parse_mega_to_gexf.ipynb"
4 | },
5 | "nbformat": 3,
6 | "nbformat_minor": 0,
7 | "worksheets": [
8 | {
9 | "cells": [
10 | {
11 | "cell_type": "code",
12 | "collapsed": false,
13 | "input": [
14 | "json_filename = 'x.json' # accidentally erased json part, re-integrate later\n",
15 | "gexf_filename = 'gh43.gexf'\n",
16 | "\n",
17 | "import os\n",
18 | "#os.chdir(\"C:/Users/David/Documents/Dropbox\")\n",
19 | "os.chdir(\"C:/_Dropbox/Dropbox\")\n",
20 | "\n",
21 | "import pandas as pd\n",
22 | "df = pd.read_csv(\"gh43treetable.txt\", dtype=str)\n",
23 | " "
24 | ],
25 | "language": "python",
26 | "metadata": {},
27 | "outputs": [],
28 | "prompt_number": 1
29 | },
30 | {
31 | "cell_type": "code",
32 | "collapsed": false,
33 | "input": [
34 | "df.columns = [['ancid', 'desc1', 'desc2', 'branchlength1', 'branchlength2']]"
35 | ],
36 | "language": "python",
37 | "metadata": {},
38 | "outputs": [],
39 | "prompt_number": 2
40 | },
41 | {
42 | "cell_type": "code",
43 | "collapsed": false,
44 | "input": [
45 | "# replace spaces with underscores, then make a list of all ids with duplicates included, then remove duplicates\n",
46 | "id_list = []\n",
47 | "for idx, row in df.iterrows():\n",
48 | " for field in ['ancid', 'desc1', 'desc2']:\n",
49 | " df[field][idx] = (df[field][idx].strip()).replace(\" \", \"_\")\n",
50 | " id_list.append(df[field][idx])\n",
51 | "print len(id_list)\n",
52 | "id_list = list(set(id_list))\n",
53 | "print len(id_list)"
54 | ],
55 | "language": "python",
56 | "metadata": {},
57 | "outputs": [
58 | {
59 | "output_type": "stream",
60 | "stream": "stdout",
61 | "text": [
62 | "639\n",
63 | "427\n"
64 | ]
65 | }
66 | ],
67 | "prompt_number": 3
68 | },
69 | {
70 | "cell_type": "code",
71 | "collapsed": false,
72 | "input": [
73 | "print df.iloc[2]\n",
74 | "print id_list[:10]"
75 | ],
76 | "language": "python",
77 | "metadata": {},
78 | "outputs": [
79 | {
80 | "output_type": "stream",
81 | "stream": "stdout",
82 | "text": [
83 | "ancid 217\n",
84 | "desc1 216\n",
85 | "desc2 ASPNI_A2QT85\n",
86 | "branchlength1 0.0000000000\n",
87 | "branchlength2 0.0000000000\n",
88 | "Name: 2, dtype: object\n",
89 | "['Paeby1p7_018872', 'Paeby1p7_018871', 'bri_CHGT_02150', 'ABN43C_PENCH', '344', '345', 'ABN43A_PENCH', 'CORTH_1_02834', '340', '341']\n"
90 | ]
91 | }
92 | ],
93 | "prompt_number": 4
94 | },
95 | {
96 | "cell_type": "code",
97 | "collapsed": false,
98 | "input": [
99 | "# make dicts of IDs and positions in id_list\n",
100 | "dict_pti = {}\n",
101 | "dict_itp = {}\n",
102 | "for pos in range(len(id_list)):\n",
103 | " dict_pti[pos] = id_list[pos]\n",
104 | " dict_itp[id_list[pos]] = pos"
105 | ],
106 | "language": "python",
107 | "metadata": {},
108 | "outputs": [],
109 | "prompt_number": 5
110 | },
111 | {
112 | "cell_type": "code",
113 | "collapsed": false,
114 | "input": [
115 | "#make link list\n",
116 | "link_list = []\n",
117 | "for idx, row in df.iterrows():\n",
118 | " for descnum in ['desc1', 'desc2']:\n",
119 | " templist = []\n",
120 | " templist.append(df.ancid[idx])\n",
121 | " templist.append(df[descnum][idx])\n",
122 | " link_list.append(templist)\n",
123 | "print link_list[:10]"
124 | ],
125 | "language": "python",
126 | "metadata": {},
127 | "outputs": [
128 | {
129 | "output_type": "stream",
130 | "stream": "stdout",
131 | "text": [
132 | "[['215', 'ABN43A_ASPNG'], ['215', 'ANIG203143G'], ['216', '215'], ['216', 'ASPNI_P42256'], ['217', '216'], ['217', 'ASPNI_A2QT85'], ['218', 'PENCH_Q5H7M8'], ['218', 'ABN43A_PENCH'], ['219', 'Paeby1p7_018872'], ['219', '218']]\n"
133 | ]
134 | }
135 | ],
136 | "prompt_number": 6
137 | },
138 | {
139 | "cell_type": "code",
140 | "collapsed": false,
141 | "input": [
142 | "# write gexf\n",
143 | "with open(gexf_filename, \"w\") as f:\n",
144 | " f.write('\\n \\n Gexf.net\\n')\n",
145 | "with open(gexf_filename, \"a\") as f:\n",
146 | " f.write(' ')\n",
147 | " f.write(gexf_filename)\n",
148 | " f.write('\\n \\n \\n')\n",
149 | " f.write(' \\n')\n",
150 | " for pos in range(len(id_list)):\n",
151 | " f.write(' \\n')\n",
156 | " f.write(' \\n')\n",
157 | " f.write(' \\n')\n",
158 | " for i in range(len(link_list)):\n",
159 | " f.write(' \\n')\n",
166 | " f.write(' \\n')\n",
167 | " f.write(' \\n')\n",
168 | " f.write('\\n')\n"
169 | ],
170 | "language": "python",
171 | "metadata": {},
172 | "outputs": [],
173 | "prompt_number": 8
174 | },
175 | {
176 | "cell_type": "code",
177 | "collapsed": false,
178 | "input": [],
179 | "language": "python",
180 | "metadata": {},
181 | "outputs": []
182 | }
183 | ],
184 | "metadata": {}
185 | }
186 | ]
187 | }
--------------------------------------------------------------------------------
/tree_convert_mega_to_json.ipynb:
--------------------------------------------------------------------------------
1 | {
2 | "metadata": {
3 | "name": "parse_mega_to_json.ipynb"
4 | },
5 | "nbformat": 3,
6 | "nbformat_minor": 0,
7 | "worksheets": [
8 | {
9 | "cells": [
10 | {
11 | "cell_type": "code",
12 | "collapsed": false,
13 | "input": [
14 | "json_filename = 'x.json'\n",
15 | "gexf_filename = 'x.gexf'\n",
16 | "\n",
17 | "import os\n",
18 | "#os.chdir(\"C:/Users/David/Documents/Dropbox\")\n",
19 | "os.chdir(\"C:/_Dropbox/Dropbox\")\n",
20 | "\n",
21 | "import pandas as pd\n",
22 | "df = pd.read_csv(\"gh43treetable.txt\", dtype=str)\n",
23 | " "
24 | ],
25 | "language": "python",
26 | "metadata": {},
27 | "outputs": [],
28 | "prompt_number": 26
29 | },
30 | {
31 | "cell_type": "code",
32 | "collapsed": false,
33 | "input": [
34 | "df.columns = [['ancid', 'desc1', 'desc2', 'branchlength1', 'branchlength2']]"
35 | ],
36 | "language": "python",
37 | "metadata": {},
38 | "outputs": [],
39 | "prompt_number": 27
40 | },
41 | {
42 | "cell_type": "code",
43 | "collapsed": false,
44 | "input": [
45 | "# replace spaces with underscores, then make a list of all ids with duplicates included, then remove duplicates\n",
46 | "id_list = []\n",
47 | "for idx, row in df.iterrows():\n",
48 | " for field in ['ancid', 'desc1', 'desc2']:\n",
49 | " df[field][idx] = (df[field][idx].strip()).replace(\" \", \"_\")\n",
50 | " id_list.append(df[field][idx])\n",
51 | "print len(id_list)\n",
52 | "id_list = list(set(id_list))\n",
53 | "print len(id_list)"
54 | ],
55 | "language": "python",
56 | "metadata": {},
57 | "outputs": [
58 | {
59 | "output_type": "stream",
60 | "stream": "stdout",
61 | "text": [
62 | "639\n",
63 | "427\n"
64 | ]
65 | }
66 | ],
67 | "prompt_number": 28
68 | },
69 | {
70 | "cell_type": "code",
71 | "collapsed": false,
72 | "input": [
73 | "print df.iloc[2]\n",
74 | "print id_list[:10]"
75 | ],
76 | "language": "python",
77 | "metadata": {},
78 | "outputs": [
79 | {
80 | "output_type": "stream",
81 | "stream": "stdout",
82 | "text": [
83 | "ancid 217\n",
84 | "desc1 216\n",
85 | "desc2 ASPNI_A2QT85\n",
86 | "branchlength1 0.0000000000\n",
87 | "branchlength2 0.0000000000\n",
88 | "Name: 2, dtype: object\n",
89 | "['Paeby1p7_018872', 'Paeby1p7_018871', 'bri_CHGT_02150', 'ABN43C_PENCH', '344', '345', 'ABN43A_PENCH', 'CORTH_1_02834', '340', '341']\n"
90 | ]
91 | }
92 | ],
93 | "prompt_number": 29
94 | },
95 | {
96 | "cell_type": "code",
97 | "collapsed": false,
98 | "input": [
99 | "# make dicts of IDs and positions in id_list\n",
100 | "dict_pti = {}\n",
101 | "dict_itp = {}\n",
102 | "for pos in range(len(id_list)):\n",
103 | " dict_pti[pos] = id_list[pos]\n",
104 | " dict_itp[id_list[pos]] = pos"
105 | ],
106 | "language": "python",
107 | "metadata": {},
108 | "outputs": [],
109 | "prompt_number": 31
110 | },
111 | {
112 | "cell_type": "code",
113 | "collapsed": false,
114 | "input": [
115 | "#make link list\n",
116 | "link_list = []\n",
117 | "for idx, row in df.iterrows():\n",
118 | " for descnum in ['desc1', 'desc2']:\n",
119 | " templist = []\n",
120 | " templist.append(df.ancid[idx])\n",
121 | " templist.append(df[descnum][idx])\n",
122 | " link_list.append(templist)\n",
123 | "print link_list[:10]"
124 | ],
125 | "language": "python",
126 | "metadata": {},
127 | "outputs": [
128 | {
129 | "output_type": "stream",
130 | "stream": "stdout",
131 | "text": [
132 | "[['215', 'ABN43A_ASPNG'], ['215', 'ANIG203143G'], ['216', '215'], ['216', 'ASPNI_P42256'], ['217', '216'], ['217', 'ASPNI_A2QT85'], ['218', 'PENCH_Q5H7M8'], ['218', 'ABN43A_PENCH'], ['219', 'Paeby1p7_018872'], ['219', '218']]\n"
133 | ]
134 | }
135 | ],
136 | "prompt_number": 36
137 | },
138 | {
139 | "cell_type": "code",
140 | "collapsed": false,
141 | "input": [
142 | "# write gexf\n",
143 | "with open(json_filename, \"w\") as f:\n",
144 | " f.write('\\n \\n Gexf.net\\n')\n",
145 | "with open(json_filename, \"a\") as f:\n",
146 | " f.write(' ')\n",
147 | " f.write(\n",
148 | " for pos in range(len(id_list)):\n",
149 | " f.write(' {\"name\": \"' + dict_pti[pos] + '\"}')\n",
150 | " if pos < len(id_list) - 1:\n",
151 | " f.write(',\\n')\n",
152 | " else:\n",
153 | " f.write('\\n')\n",
154 | " f.write(' ],\\n \"links\": [\\n')\n",
155 | " for pos in range(len(link_list)):\n",
156 | " f.write(' {\"source\": ' + str(dict_itp[link_list[pos][0]]) + ', \"target\": ' + str(dict_itp[link_list[pos][1]]) + '}')\n",
157 | " if pos < len(link_list) - 1:\n",
158 | " f.write(',\\n')\n",
159 | " else:\n",
160 | " f.write('\\n')\n",
161 | " f.write(' ]\\n}')\n"
162 | ],
163 | "language": "python",
164 | "metadata": {},
165 | "outputs": [],
166 | "prompt_number": 52
167 | },
168 | {
169 | "cell_type": "code",
170 | "collapsed": false,
171 | "input": [
172 | "# write gexf\n",
173 | "with open(gexf_filename, \"w\") as f:\n",
174 | " f.write("
175 | ],
176 | "language": "python",
177 | "metadata": {},
178 | "outputs": []
179 | }
180 | ],
181 | "metadata": {}
182 | }
183 | ]
184 | }
--------------------------------------------------------------------------------
/tree_convert_newick_to_json.py:
--------------------------------------------------------------------------------
1 | import sys
2 | from ete2 import Tree
3 | import random
4 |
5 | def get_json(node):
6 | # Read ETE tag for duplication or speciation events
7 | if not hasattr(node, 'evoltype'):
8 | dup = random.sample(['N','Y'], 1)[0]
9 | elif node.evoltype == "S":
10 | dup = "N"
11 | elif node.evoltype == "D":
12 | dup = "Y"
13 |
14 | node.name = node.name.replace("'", '')
15 |
16 | json = { "name": node.name,
17 | "display_label": node.name,
18 | "duplication": dup,
19 | "branch_length": str(node.dist),
20 | "common_name": node.name,
21 | "seq_length": 0,
22 | "type": "node" if node.children else "leaf",
23 | "uniprot_name": "Unknown",
24 | }
25 | if node.children:
26 | json["children"] = []
27 | for ch in node.children:
28 | json["children"].append(get_json(ch))
29 | return json
30 |
31 |
32 | if __name__ == '__main__':
33 | if len(sys.argv) > 1:
34 | t = Tree(sys.argv[1])
35 |
36 | else:
37 | # create a random example tree
38 | t = Tree()
39 |
40 | t.populate(100, random_branches=True)
41 |
42 | # TreeWidget seems to fail with simple quotes
43 | print str(get_json(t)).replace("'", '"')
44 |
--------------------------------------------------------------------------------